diff --git a/wxPython/distrib/makemo.py b/wxPython/distrib/makemo.py new file mode 100644 index 0000000000..cbdc1e2865 --- /dev/null +++ b/wxPython/distrib/makemo.py @@ -0,0 +1,16 @@ +import sys, os, glob +from distutils.dep_util import newer +from distutils.spawn import spawn + +poFiles = glob.glob("*.po") + +for po in poFiles: + mo = os.path.splitext(po)[0] + '.mo' + if mo != 'wxstd.mo': + if newer(po, mo): + cmd = 'msgfmt --verbose -o %s %s' % (mo, po) + print cmd + spawn(cmd.split()) + print + else: + print "%s is up to date" % mo