if (!empty($cfg['add_c'])) {
$ret = array_merge($ret, array_keys($cfg['add_c']));
}
+
+
+
$ret[] = '**';
break;
$ret[] = '**';
break;
}
-
- foreach ($ret as $k=>$v) {
- $ret[$k] = ($t=='l') ? $ret[$k] : strtoupper($v);
+ 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);
+ //}
return $ret;
}
$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);