projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc50748
)
Pman.GoogleTranslate.js
author
Chris
<chris@roojs.com>
Wed, 2 Apr 2014 13:17:55 +0000
(21:17 +0800)
committer
Chris
<chris@roojs.com>
Wed, 2 Apr 2014 13:17:55 +0000
(21:17 +0800)
Pman.GoogleTranslate.js
patch
|
blob
|
history
diff --git
a/Pman.GoogleTranslate.js
b/Pman.GoogleTranslate.js
index
089bb7a
..
4a137ef
100644
(file)
--- a/
Pman.GoogleTranslate.js
+++ b/
Pman.GoogleTranslate.js
@@
-128,6
+128,7
@@
Pman.GoogleTranslate = function(str, src, dest, cb, force) {
dest = dest.replace('_','-');
// google does not recognize HK...
if (src == 'zh') src = 'zh-CN';
+ if (dest == 'zh') dest = 'zh-CN';
if (src == 'zh-HK') src = 'zh-TW';
if (dest == 'zh-HK') dest = 'zh-TW';