summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--settings/languageCodes.php14
-rwxr-xr-xsettings/personal.php2
2 files changed, 14 insertions, 2 deletions
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]);