GoogleTranslate.php
[Pman.Core] / GoogleTranslate.php
index 4a47f3f..a2d7a91 100644 (file)
@@ -62,8 +62,8 @@ class Pman_Core_GoogleTranslate extends Pman
         if(empty($responseDecoded->data->translations[0]->translatedText)){
             $this->jerr('does not have translated text.', print_r($responseDecoded, true));
         }
-        
-        $responseDecoded->data->translations[0]->translatedText = rawurldecode($responseDecoded->data->translations[0]->translatedText);
+        var_dump($responseDecoded->data->translations[0]->translatedText);
+        $responseDecoded->data->translations[0]->translatedText = rawurldecode(str_replace(' ', '', $responseDecoded->data->translations[0]->translatedText));
         $this->jok($responseDecoded->data->translations[0]);
         
     }