Merge pull request #20346 from owncloud/show-language-code-for-unknown-languages
Show the language code in personal settings for unknown languages
This commit is contained in:
commit
6e7411fc4c
|
@ -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