comparison MoinMoin/i18n/tools/wiki2po.py @ 3051:b1e7d968330d

i18n tools: fix small bugs (ported from 1.6)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 19 Feb 2008 23:30:04 +0100
parents b551fc405222
children cd6cfc715261
comparison
equal deleted inserted replaced
3050:f0250b5a6982 3051:b1e7d968330d
17 17
18 pagename = "MoinI18n/%s" % lang 18 pagename = "MoinI18n/%s" % lang
19 print pagename 19 print pagename
20 pagedata = wiki.getPage(pagename).encode('utf-8').replace("\n", "\r\n") 20 pagedata = wiki.getPage(pagename).encode('utf-8').replace("\n", "\r\n")
21 21
22 f = open("%s.%s.po" % (langfname, DOMAIN), "w") 22 f = open("%s.%s.po" % (lang, DOMAIN), "w")
23 f.write(pagedata) 23 f.write(pagedata)
24 f.close() 24 f.close()
25 25
26 if __name__ == "__main__": 26 if __name__ == "__main__":
27 run() 27 run()