[Pkg-owncloud-commits] [owncloud] 15/86: Show the language code in personal settings for unknown languages

David Prévot taffit at moszumanska.debian.org
Tue Dec 22 16:51:52 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v8.1.5
in repository owncloud.

commit bdeff3530c4e968cb8e148a7cf980283303e8fc7
Author: Morris Jobke <hey at morrisjobke.de>
Date:   Fri Nov 6 09:48:05 2015 +0100

    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
---
 settings/personal.php | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/settings/personal.php b/settings/personal.php
index 203c9f6..92ce355 100644
--- a/settings/personal.php
+++ b/settings/personal.php
@@ -90,6 +90,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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list