diff options
author | Thomas Schmidt <tschmidt@suse.de> | 2012-02-01 15:00:38 +0400 |
---|---|---|
committer | Thomas Schmidt <tschmidt@suse.de> | 2012-02-01 15:00:38 +0400 |
commit | 4145e3b2651312b5949de3aae4f34c1be5332eb8 (patch) | |
tree | 4a38106b1b55ebb5e100c29324add75a744cc4f6 /settings/personal.php | |
parent | 1f718d31e1e433aa803f6f26a7b660dde343eaee (diff) |
pre-select current language, sort available languages
Diffstat (limited to 'settings/personal.php')
-rwxr-xr-x | settings/personal.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/settings/personal.php b/settings/personal.php index 787957f246f..3b90827ed99 100755 --- a/settings/personal.php +++ b/settings/personal.php @@ -23,8 +23,10 @@ $relative=round(($used/$total)*10000)/100; $email=OC_Preferences::getValue(OC_User::getUser(), 'settings','email',''); -$lang=OC_Preferences::getValue( OC_User::getUser(), 'core', 'lang', 'en' ); +$lang=OC_Preferences::getValue( OC_User::getUser(), 'core', 'lang', OC_L10N::findLanguage() ); $languageCodes=OC_L10N::findAvailableLanguages(); +sort ($languageCodes); + //put the current language in the front unset($languageCodes[array_search($lang,$languageCodes)]); array_unshift($languageCodes,$lang); |