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