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: 8a2f61ba46f84918e1a3e0ee3bdbb352c24bf7f9 (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 )