$ret[] = '**';
break;
}
+ if (!empty($cfg[$t]) && is_array($cfg[$t])) {
+ // then there is a filter. - we should include all of them, even if they are not relivatn??
+ return $cfg[$t]; //array_intersect($cfg[$t], $ret);
+
+ }
// why upper case everyting?!?!?
+
//foreach ($ret as $k=>$v) {
// $ret[$k] = ($t=='l') ? $ret[$k] : strtoupper($v);
//}
$ret = $cache[$lang][$type]->getName($k);
}
- if ($orig_lang == 'zh_HK') {
+ if ($orig_lang == 'zh_HK' || $orig_lang == 'zh_TW' ) {
// then translation is by default in simplified.
//print_r($ret);
$ret = @iconv("UTF-8", "GB2312//IGNORE", $ret);