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

David Prévot taffit at moszumanska.debian.org
Wed Nov 11 02:04:06 UTC 2015


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

taffit pushed a commit to branch stable8
in repository owncloud.

commit 774d9b76433df8f85a8326b964d211213b994c3e
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 8cbcf92..bc12166 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

-- 
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