[gtk-doc-cn] r167 committed - 修复调用google翻译时生成po文件错误的bug

1 view
Skip to first unread message

gtk-d...@googlecode.com

unread,
Oct 28, 2009, 10:28:56 AM10/28/09
to gtk-d...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages