view MoinMoin/i18n/ @ 0:77665d8e2254

tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0 (automatically generated log message) imported from: moin--main--1.5--base-0
author Thomas Waldmann <>
date Thu, 22 Sep 2005 15:09:50 +0000
children be33ecd58d4e
line wrap: on
line source

    prepend some processing instructions to a .po file to be able to put it
    onto moinmaster wiki, letting it get processed by gettext parser

    for f in *.po; do ./ $f; done
import sys, codecs
fname = sys.argv[1]

lang = fname.replace('.po_', '').replace('.po', '')
lang = lang.replace('_', '-') # module names use _ instead of -

f =, 'r', 'utf-8')
data =

data = u"""\
## Please edit system and help pages ONLY in the moinmaster wiki! For more
## information, please see MoinMaster:MoinPagesEditorGroup.
#acl MoinPagesEditorGroup:read,write,delete,revert All:read
#format gettext
#language %s

%s""" % (lang, data)

f =, 'w', 'utf-8')