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

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

#update the pot file according the POTFILES.in

import os

GETTEXT_XGETTEXT_EXECUTABLE="xgettext"
SOURCE_DIR=".."
DOMAIN="blender"

cmd = "%s --files-from=%s/po/POTFILES.in --keyword=_ --keyword=gettext --directory=%s --output=%s/po/%s.pot --from-code=utf-8" % (
    GETTEXT_XGETTEXT_EXECUTABLE, SOURCE_DIR, SOURCE_DIR, SOURCE_DIR, DOMAIN)

os.system( cmd )