read language name from the right resource
This commit is contained in:
parent
37c0b97b3c
commit
63d9c1a817
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ array_unshift($languageCodes,$lang);
|
|||
$languageNames=include 'languageCodes.php';
|
||||
$languages=array();
|
||||
foreach($languageCodes as $lang){
|
||||
$l=new OC_L10N('core',$lang);
|
||||
$l=new OC_L10N('settings',$lang);
|
||||
if($l->t('__language_name__')!='__language_name__'){//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