diff MoinMoin/i18n/tools/wiki2po.py @ 896:9dcd18a790ab

i18n: no .mo files anymore, we directly read .po and cache the result
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 07 Jul 2006 12:29:58 +0200
parents f2debe9be4e0
children 324a20dad828
line wrap: on
line diff
--- a/MoinMoin/i18n/tools/wiki2po.py	Thu Jul 06 21:33:27 2006 +0200
+++ b/MoinMoin/i18n/tools/wiki2po.py	Fri Jul 07 12:29:58 2006 +0200
@@ -2,6 +2,8 @@
 """
     get latest translation page content from the wiki and write it to *.po
 """
+DOMAIN = "MoinMoin"
+
 def run():
     import sys, xmlrpclib
     sys.path.insert(0, '../../..')
@@ -15,9 +17,10 @@
         wiki = xmlrpclib.ServerProxy("http://moinmaster.wikiwikiweb.de/?action=xmlrpc2")
 
         pagename = "MoinI18n/%s" % lang
+        print pagename
         pagedata = wiki.getPage(pagename).encode('utf-8').replace("\n","\r\n")
 
-        f = open("%s.po" % langfname, "w")
+        f = open("%s.%s.po" % (langfname, DOMAIN), "w")
         f.write(pagedata)
         f.close()