view MoinMoin/i18n/tools/ @ 3080:7dcd8b937fd0

small fixes to i18n maintainer mailings script and text (ported from 1.6 and updated for 1.7)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 22 Feb 2008 22:46:10 +0100
parents b551fc405222
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
def run():
    import sys, codecs
    fname = sys.argv[1]

    lang = fname.replace('.po_', '').replace('.po', '')

    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')

if __name__ == "__main__":