]> source.dussan.org Git - nextcloud-server.git/commitdiff
read language name from the right resource
authorRobin Appelman <icewind@owncloud.com>
Sun, 15 Jan 2012 14:30:08 +0000 (15:30 +0100)
committerRobin Appelman <icewind@owncloud.com>
Sun, 15 Jan 2012 14:30:08 +0000 (15:30 +0100)
settings/personal.php

index 8d05b14a353124e6346f96f7f38af606087407a8..44b4c2f594d5c0af0db31e3bc9fa5a332cb567c9 100755 (executable)
@@ -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])){