Browse Source

i18n workaround, #8

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/branches/evo@150 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
master
pzinovkin 15 years ago
parent
commit
05997815e6
  1. 12
      i18n/I18N.php

12
i18n/I18N.php

@ -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;
}
}
}
Loading…
Cancel
Save