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
This commit is contained in:
parent
f2b19333b9
commit
fa24d92eea
|
@ -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);
|
ksort($commonlanguages);
|
||||||
|
|
||||||
// sort now by displayed language not the iso-code
|
// sort now by displayed language not the iso-code
|
||||||
|
|
Loading…
Reference in New Issue