i18n workaround, #8
git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/branches/evo@150 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
@ -110,4 +110,16 @@ class I18N
|
||||
{
|
||||
return self::$langs;
|
||||
}
|
||||
|
||||
static public function getLangName($code = false)
|
||||
{
|
||||
if (!$code) {
|
||||
$code = self::$lang;
|
||||
}
|
||||
if (isset(self::$langs[$code])) {
|
||||
return self::$langs[$code];
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user