blender/po/update_po.py

18 lines
312 B
Python
Raw Normal View History

#!/usr/bin/python
#update all po files in the LANGS
import os
2011-07-25 17:05:43 +00:00
PO_DIR = "."
DOMAIN = "blender"
2011-07-25 17:05:43 +00:00
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 )