Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-11-06 15:36:42 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2015-11-06 15:36:42 +0300
commit6e7411fc4c6cf8f05d9937bcf112728285a42f50 (patch)
tree29c2fa2f1f6765781253604a1000e30c3b9dd9c1
parent75ff6c34ca6a19ff6e8f371550130e2cb4fff4ab (diff)
parentfa24d92eea194869f80252d50e6de9181f99fd27 (diff)
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.php8
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