DataObjects/core.sql
[Pman.Core] / DataObjects / I18n.php
index 8d9ad58..79d7d18 100644 (file)
@@ -216,7 +216,7 @@ class Pman_Core_DataObjects_I18n extends DB_DataObject
                 break;
         }
         if (!empty($cfg[$t]) && is_array($cfg[$t])) {
-            // then there is a filter.
+            // 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);
             
         }
@@ -346,7 +346,7 @@ class Pman_Core_DataObjects_I18n extends DB_DataObject
             $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);