Commit fa24d92e authored by Morris Jobke's avatar Morris Jobke
Browse files

Show the language code in personal settings for unknown languages

Steps to reproduce:
* having an unknown language set in oc_preferences
* browse the personal settings
* only get listed the first letter of this language in the language chooser
parent f2b19333
......@@ -93,6 +93,14 @@ foreach($languageCodes as $lang) {
}
}
// if user language is not available but set somehow: show the actual code as name
if (!is_array($userLang)) {
$userLang = [
'code' => $userLang,
'name' => $userLang,
];
}
ksort($commonlanguages);
// sort now by displayed language not the iso-code
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment