Revision: 167
Author: yetist
Date: Wed Oct 28 07:27:51 2009
Log: 修复调用google翻译时生成po文件错误的bug
http://code.google.com/p/gtk-doc-cn/source/detail?r=167
Modified:
/trunk/tools/gadt-autotrans
=======================================
--- /trunk/tools/gadt-autotrans Tue Oct 13 20:51:21 2009
+++ /trunk/tools/gadt-autotrans Wed Oct 28 07:27:51 2009
@@ -50,7 +50,7 @@
params['q'] = text
resp = json.load(urllib.urlopen('%s' % (baseUrl), data =
urllib.urlencode(params)))
try:
- retText += resp['responseData']['translatedText']
+ retText +=
resp['responseData']['translatedText'].replace("\n","")
except:
return ""
return retText