GoogleTranslate.php
[Pman.Core] / GoogleTranslate.php
index 746a324..58174b5 100644 (file)
@@ -60,6 +60,9 @@ class Pman_Core_GoogleTranslate extends Pman
 //        print_r($responseDecoded->data->data->translations[0]->translatedText);
         
         print_r($responseDecoded);
+        if(!empty($responseDecoded->error->message)){
+            $this->jerr()
+        }
         $responseDecoded->data->data->translations[0]->translatedText = rawurldecode($responseDecoded->data->data->translations[0]->translatedText);
         $this->jok($responseDecoded->data->data->translations[0]);