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:
pzinovkin
2010-08-08 11:33:06 +00:00
parent 8a6f6097bf
commit 05997815e6

View File

@ -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;
}
}
}