X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman.GoogleTranslate.js;h=4a137ef6e37ad5043d4aad14ee294845afe33c12;hb=08ea3b423c45059c97cbb76a11454c48963939d5;hp=089bb7a1e11a972da646d7ecb4929c87f76983a8;hpb=bc507484de717eedbf7847639b3beccf0d6c618e;p=Pman.Core diff --git a/Pman.GoogleTranslate.js b/Pman.GoogleTranslate.js index 089bb7a1..4a137ef6 100644 --- 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';