Pman.GoogleTranslate.js
authorChris <chris@roojs.com>
Wed, 2 Apr 2014 12:28:00 +0000 (20:28 +0800)
committerChris <chris@roojs.com>
Wed, 2 Apr 2014 12:28:00 +0000 (20:28 +0800)
Pman.GoogleTranslate.js

index bdd59d0..6b2f4b3 100644 (file)
@@ -153,7 +153,7 @@ Pman.GoogleTranslate = function(str, src, dest, cb, force) {
                     return;
                 }
 //                Roo.MessageBox.alert("Success", "We logged in OK")
-                str = o.data.data.translations[0].translatedText;
+                return o.translatedText;
             },
             failure: function (res) {
                 Roo.log(res);