Update settings/personal.php
respect coding style
This commit is contained in:
parent
1063034e93
commit
7ab5256922
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue