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