diff options
Diffstat (limited to 'po/update_mo.py')
-rwxr-xr-x | po/update_mo.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/po/update_mo.py b/po/update_mo.py new file mode 100755 index 00000000000..c0870f3fbb3 --- /dev/null +++ b/po/update_mo.py @@ -0,0 +1,17 @@ +#!/usr/bin/python + +#update all mo files in the LANGS + +import os + +LOCALE_DIR="../release/bin/.blender/locale" +PO_DIR = "." +DOMAIN = "blender" + +for po in os.listdir( PO_DIR ): + if po.endswith(".po"): + lang = po[:-3] + # show stats + cmd = "msgfmt --statistics %s.po -o %s/%s/LC_MESSAGES/%s.mo" % ( lang, LOCALE_DIR, lang, DOMAIN ) + print cmd + os.system( cmd ) |