Pman.GoogleTranslate.js
authorChris <chris@roojs.com>
Wed, 2 Apr 2014 10:17:01 +0000 (18:17 +0800)
committerChris <chris@roojs.com>
Wed, 2 Apr 2014 10:17:01 +0000 (18:17 +0800)
Pman.GoogleTranslate.js

index 2778ee2..5727f77 100644 (file)
@@ -153,32 +153,32 @@ Pman.GoogleTranslate = function(str, src, dest, cb, force) {
                 Roo.MessageBox.alert("Failure", "Failed?")
             }
         });
-        
-        x.load(
-            {
-                key :  Pman.GoogleTranslate.key,
-              //  v: '1.0',
-                q : str,
-                source : src,
-                target : dest
-                //langpair : src + '|' +dest
-            }, // end params.
-            { // reader
-                readRecords : function (o) {
-                    Roo.log(o);
-                    if (!o.data) {
-                        return o;
-                    }
-                    return o.data.translations[0].translatedText;
-                    //return escapeDecode(o.data.translations[0].translatedText);
-                }
-            }, 
-            function (result) {
-                cb(result);
-            },
-            this,
-            []
-        );
+//        
+//        x.load(
+//            {
+//                key :  Pman.GoogleTranslate.key,
+//              //  v: '1.0',
+//                q : str,
+//                source : src,
+//                target : dest
+//                //langpair : src + '|' +dest
+//            }, // end params.
+//            { // reader
+//                readRecords : function (o) {
+//                    Roo.log(o);
+//                    if (!o.data) {
+//                        return o;
+//                    }
+//                    return o.data.translations[0].translatedText;
+//                    //return escapeDecode(o.data.translations[0].translatedText);
+//                }
+//            }, 
+//            function (result) {
+//                cb(result);
+//            },
+//            this,
+//            []
+//        );