aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Include
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application/Include')
-rw-r--r--h-source/Application/Include/languages.php17
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
(