changeset 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 f0250b5a6982
children 067a87029064
files MoinMoin/i18n/tools/markup15to16.py MoinMoin/i18n/tools/wiki2po.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/i18n/tools/markup15to16.py	Tue Feb 19 23:27:28 2008 +0100
+++ b/MoinMoin/i18n/tools/markup15to16.py	Tue Feb 19 23:30:04 2008 +0100
@@ -13,7 +13,7 @@
 
     lang = sys.argv[1]
 
-    f = codecs.open("%s.%s.po" % (langfname, DOMAIN), "r", "utf-8")
+    f = codecs.open("%s.%s.po" % (lang, DOMAIN), "r", "utf-8")
     text = f.read()
     f.close()
 
@@ -25,7 +25,7 @@
 
     #print repr(text)
 
-    f = codecs.open("%s.%s.po" % (langfname, DOMAIN), "w", "utf-8")
+    f = codecs.open("%s.%s.po" % (lang, DOMAIN), "w", "utf-8")
     f.write(text)
     f.close()
 
--- a/MoinMoin/i18n/tools/wiki2po.py	Tue Feb 19 23:27:28 2008 +0100
+++ b/MoinMoin/i18n/tools/wiki2po.py	Tue Feb 19 23:30:04 2008 +0100
@@ -19,7 +19,7 @@
         print pagename
         pagedata = wiki.getPage(pagename).encode('utf-8').replace("\n", "\r\n")
 
-        f = open("%s.%s.po" % (langfname, DOMAIN), "w")
+        f = open("%s.%s.po" % (lang, DOMAIN), "w")
         f.write(pagedata)
         f.close()