GoogleTranslate.php
authorChris <chris@roojs.com>
Wed, 2 Apr 2014 13:03:45 +0000 (21:03 +0800)
committerChris <chris@roojs.com>
Wed, 2 Apr 2014 13:03:45 +0000 (21:03 +0800)
GoogleTranslate.php

index 3163de8..3126b08 100644 (file)
@@ -58,7 +58,7 @@ class Pman_Core_GoogleTranslate extends Pman
         }
 //        print_r($responseDecoded);
         if(empty($responseDecoded->data->translations[0]->translatedText)){
-            $this->jerr('does not have translated text.');
+            $this->jerr('does not have translated text.', print_r($responseDecoded, true));
         }
         $responseDecoded->data->translations[0]->translatedText = rawurldecode($responseDecoded->data->translations[0]->translatedText);
         $this->jok($responseDecoded->data->translations[0]);