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