projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0eb0d65
)
GoogleTranslate.php
author
Chris
<chris@roojs.com>
Wed, 2 Apr 2014 12:56:37 +0000
(20:56 +0800)
committer
Chris
<chris@roojs.com>
Wed, 2 Apr 2014 12:56:37 +0000
(20:56 +0800)
GoogleTranslate.php
patch
|
blob
|
history
diff --git
a/GoogleTranslate.php
b/GoogleTranslate.php
index
58174b5
..
fb324dc
100644
(file)
--- a/
GoogleTranslate.php
+++ b/
GoogleTranslate.php
@@
-59,9
+59,9
@@
class Pman_Core_GoogleTranslate extends Pman
curl_close($handle);
// print_r($responseDecoded->data->data->translations[0]->translatedText);
curl_close($handle);
// print_r($responseDecoded->data->data->translations[0]->translatedText);
- print_r($responseDecoded);
- if(!empty($responseDecoded->error
->message
)){
- $this->jerr(
)
+
//
print_r($responseDecoded);
+ if(!empty($responseDecoded->error)){
+ $this->jerr(
$responseDecoded->error->message);
}
$responseDecoded->data->data->translations[0]->translatedText = rawurldecode($responseDecoded->data->data->translations[0]->translatedText);
$this->jok($responseDecoded->data->data->translations[0]);
}
$responseDecoded->data->data->translations[0]->translatedText = rawurldecode($responseDecoded->data->data->translations[0]->translatedText);
$this->jok($responseDecoded->data->data->translations[0]);