projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
101d23f
)
GoogleTranslate.php
author
Chris
<chris@roojs.com>
Wed, 2 Apr 2014 13:03:45 +0000
(21:03 +0800)
committer
Chris
<chris@roojs.com>
Wed, 2 Apr 2014 13:03:45 +0000
(21:03 +0800)
GoogleTranslate.php
patch
|
blob
|
history
diff --git
a/GoogleTranslate.php
b/GoogleTranslate.php
index
3163de8
..
3126b08
100644
(file)
--- a/
GoogleTranslate.php
+++ b/
GoogleTranslate.php
@@
-58,7
+58,7
@@
class Pman_Core_GoogleTranslate extends Pman
}
// print_r($responseDecoded);
if(empty($responseDecoded->data->translations[0]->translatedText)){
}
// 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]);
}
$responseDecoded->data->translations[0]->translatedText = rawurldecode($responseDecoded->data->translations[0]->translatedText);
$this->jok($responseDecoded->data->translations[0]);