projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
56c2a2c
)
GoogleTranslate.php
author
Chris
<chris@roojs.com>
Wed, 2 Apr 2014 13:09:30 +0000
(21:09 +0800)
committer
Chris
<chris@roojs.com>
Wed, 2 Apr 2014 13:09:30 +0000
(21:09 +0800)
GoogleTranslate.php
patch
|
blob
|
history
diff --git
a/GoogleTranslate.php
b/GoogleTranslate.php
index
4a47f3f
..
9df1f3d
100644
(file)
--- a/
GoogleTranslate.php
+++ b/
GoogleTranslate.php
@@
-62,7
+62,7
@@
class Pman_Core_GoogleTranslate extends Pman
if(empty($responseDecoded->data->translations[0]->translatedText)){
$this->jerr('does not have translated text.', print_r($responseDecoded, true));
}
if(empty($responseDecoded->data->translations[0]->translatedText)){
$this->jerr('does not have translated text.', print_r($responseDecoded, true));
}
-
+ var_dump($responseDecoded->data->translations[0]->translatedText);
$responseDecoded->data->translations[0]->translatedText = rawurldecode($responseDecoded->data->translations[0]->translatedText);
$this->jok($responseDecoded->data->translations[0]);
$responseDecoded->data->translations[0]->translatedText = rawurldecode($responseDecoded->data->translations[0]->translatedText);
$this->jok($responseDecoded->data->translations[0]);