diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-11-06 13:36:42 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-11-06 13:36:42 +0100 |
commit | 6e7411fc4c6cf8f05d9937bcf112728285a42f50 (patch) | |
tree | 29c2fa2f1f6765781253604a1000e30c3b9dd9c1 | |
parent | 75ff6c34ca6a19ff6e8f371550130e2cb4fff4ab (diff) | |
parent | fa24d92eea194869f80252d50e6de9181f99fd27 (diff) | |
download | nextcloud-server-6e7411fc4c6cf8f05d9937bcf112728285a42f50.tar.gz nextcloud-server-6e7411fc4c6cf8f05d9937bcf112728285a42f50.zip |
Merge pull request #20346 from owncloud/show-language-code-for-unknown-languages
Show the language code in personal settings for unknown languages
-rw-r--r-- | settings/personal.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/settings/personal.php b/settings/personal.php index d6d016c6545..bf1e1ad8793 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -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 |