From: Robin Appelman Date: Sat, 28 Jan 2012 14:13:27 +0000 (+0100) Subject: add more language names X-Git-Tag: v3.0~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=57f2bf596935ced0f6cbda93ada19acaf1c13ffb;p=nextcloud-server.git add more language names --- diff --git a/settings/languageCodes.php b/settings/languageCodes.php index 81177e0a258..621ee5ab55c 100644 --- a/settings/languageCodes.php +++ b/settings/languageCodes.php @@ -29,5 +29,17 @@ return array( 'sr'=>'Српски', 'sr@latin'=>'Srpski', 'sv'=>'Svenska', -'zh_CN'=>'中文' +'zh_CN'=>'中文', +'sk_SK'=>'Slovenčina', +'hu_HU'=>'Magyar', +'eu'=>'Euskara', +'lt_LT'=>'Lietuvių', +'eo'=>'Esperanto', +'tr'=>'Türkçe', +'hr'=>'Hrvatski', +'ar'=>'العربية', +'he'=>'עִבְרִית,', +'ia'=>'Interlingua', +'sl'=>'Slovenski', +'nn_NO'=>'Nynorsk', ); diff --git a/settings/personal.php b/settings/personal.php index 44b4c2f594d..787957f246f 100755 --- a/settings/personal.php +++ b/settings/personal.php @@ -33,7 +33,7 @@ $languageNames=include 'languageCodes.php'; $languages=array(); foreach($languageCodes as $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 + 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])){ $languages[]=array('code'=>$lang,'name'=>$languageNames[$lang]);