diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-12-27 07:27:36 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-12-27 07:27:36 +0000 |
commit | 7bda3432520d07d31220fc66b3e552e1eed46f82 (patch) | |
tree | 5d9381cd3eb10999db4088ffa931a334f8bd4dcc /h-source/Application/Include/languages.php | |
parent | b5d776bc5c8261ac75a74ed3070ca13a6eb741ca (diff) |
mobile: added language dialog
Diffstat (limited to 'h-source/Application/Include/languages.php')
-rw-r--r-- | h-source/Application/Include/languages.php | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/h-source/Application/Include/languages.php b/h-source/Application/Include/languages.php index b47f1b2..3757009 100644 --- a/h-source/Application/Include/languages.php +++ b/h-source/Application/Include/languages.php @@ -33,16 +33,27 @@ class Lang 'de' => 'de.png,Deutsch', ); - public static function getLabel($langCode) + //$pos=0: icon, $pos=1:lang name + public static function getLangInfo($langCode,$pos) { if (array_key_exists($langCode,self::$complete)) { $all = explode(',',self::$complete[$langCode]); - return $all[1]; + return $all[$pos]; } return $langCode; } + public static function getLabel($langCode) + { + return self::getLangInfo($langCode,1); + } + + public static function getIcon($langCode) + { + return self::getLangInfo($langCode,0); + } + public static $i18n = array( 'it' => array ( @@ -358,6 +369,8 @@ class Lang /*0310*/"does_not_work" => "non funziona", /*0311*/"works_without_3D" => "funziona senza 3D", /*0312*/"works_with_3D" => "funziona con 3D", + /*0313*/"list of languages" => "elenco delle lingue", + /*0314*/"Choose the language" => "Scegli la lingua", ), 'es' => array ( |