Pman.GoogleTranslate.js
[Pman.Core] / Pman.GoogleTranslate.js
index 72bf43c..efa5da9 100644 (file)
@@ -118,6 +118,12 @@ Pman.GoogleTranslate = function(str, src, dest, cb, force) {
             
             
         });
+        switch (src) {
+           case 'zh_CN' : dest = 'zh-CN'; break;
+           case 'zh_HK' : dest = 'zh-TW'; break;
+            case 'zh_TW' : dest = 'zh-TW'; break;
+                   
+        }
         /// fix some of the languages..
         //switch (dest) {
         //        case 'zh-CN' : dest = 'zh-CN'; break;
@@ -141,7 +147,8 @@ Pman.GoogleTranslate = function(str, src, dest, cb, force) {
                     if (!o.data) {
                         return o;
                     }
-                    return escapeDecode(o.data.translations[0].translatedText);
+                    return o.data.translations[0].translatedText;
+                    //return escapeDecode(o.data.translations[0].translatedText);
                 }
             }, 
             function (result) {