Update settings/personal.php

respect coding style
remotes/origin/stable45
Thomas Müller 12 years ago
parent 1063034e93
commit 7ab5256922
  1. 4
      settings/personal.php

@ -37,12 +37,12 @@ sort ($languageCodes);
//put the current language in the front
unset($languageCodes[array_search($lang, $languageCodes)]);
array_unshift($languageCodes,$lang);
array_unshift($languageCodes, $lang);
$languageNames=include 'languageCodes.php';
$languages=array();
foreach($languageCodes as $lang){
$l=OC_L10N::get('settings',$lang);
$l=OC_L10N::get('settings', $lang);
if(substr($l->t('__language_name__'), 0, 1)!='_') {//first check if the language name is in the translation file
$languages[]=array('code'=>$lang,'name'=>$l->t('__language_name__'));
}elseif(isset($languageNames[$lang])){

Loading…
Cancel
Save