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

update_mo.py « po - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4effdc655411c661a05b0b44b8730ad8bee8c724 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/python

# update all mo files in the LANGS

import os

LOCALE_DIR="../release/bin/.blender/locale"
PO_DIR = "."
DOMAIN = "blender"

for po in os.listdir( PO_DIR ):
  if po.endswith(".po"):
    lang = po[:-3]
    # show stats
    cmd = "msgfmt --statistics %s.po -o %s/%s/LC_MESSAGES/%s.mo" % ( lang, LOCALE_DIR, lang, DOMAIN )
    print cmd
    os.system( cmd )