]> source.dussan.org Git - nextcloud-server.git/commitdiff
add more language names
authorRobin Appelman <icewind@owncloud.com>
Sat, 28 Jan 2012 14:13:27 +0000 (15:13 +0100)
committerRobin Appelman <icewind@owncloud.com>
Sat, 28 Jan 2012 14:13:37 +0000 (15:13 +0100)
settings/languageCodes.php
settings/personal.php

index 81177e0a25845f13f8f622f9f48d9885c6bfd4ac..621ee5ab55c69b6b5708ba033584b541fc506fd1 100644 (file)
@@ -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',
 );
index 44b4c2f594d5c0af0db31e3bc9fa5a332cb567c9..787957f246f9248e2b705433c82d0e878a318af2 100755 (executable)
@@ -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]);