blender/po/update_po.py
2011-07-25 17:05:43 +00:00

18 lines
312 B
Python
Executable File

#!/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 )