From 7bda3432520d07d31220fc66b3e552e1eed46f82 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Tue, 27 Dec 2011 07:27:36 +0000 Subject: mobile: added language dialog --- h-source/Application/Include/languages.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'h-source/Application/Include/languages.php') 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 ( -- cgit v1.2.3