Welcome to mirror list, hosted at ThFree Co, Russian Federation.

update_po.py « po - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 50459c2b14b4a56c29e9698e8445345c56a7f9b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 )