{
static $cache;
+
+
$cfg = $this->cfg();
if (empty($k)) {
return '??';
if ($k == '**') {
return 'Other / Unknown';
}
- $ret = $cache[$lang][$type]->getName($k);
+
// for languages if we get zh_HK then we write out Chinese ( HK )
- if ($type == 'l') {
+ if ($type == 'l' && strpos($k, '_') > -1) {
$tolang = explode('_', $k);
-
- $ret = $cache[$lang][$type]->getName(strtolower($tolang[0]));
- if (count($tolang) > 1) {
- $ret.= '('.$tolang[1].')';
+ $ret = $cache[$lang][$type]->getName(strtolower($tolang[0])) . '('.$tolang[1].')';
}
+ } else {
+ $ret = $cache[$lang][$type]->getName($k);
}
if ($orig_lang == 'zh_HK') {
return $cfg['add_' . $type][$k];
}
+ if ()
return $ret;