2011-06-01 07:57:09 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
|
|
|
#update the pot file according the POTFILES.in
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
|
|
|
GETTEXT_XGETTEXT_EXECUTABLE="xgettext"
|
|
|
|
SOURCE_DIR=".."
|
|
|
|
DOMAIN="blender"
|
|
|
|
|
2011-06-20 10:07:46 +00:00
|
|
|
cmd = "%s --files-from=%s/po/POTFILES.in --keyword=_ --keyword=N_ --directory=%s --output=%s/po/%s.pot --from-code=utf-8" % (
|
2011-06-01 07:57:09 +00:00
|
|
|
GETTEXT_XGETTEXT_EXECUTABLE, SOURCE_DIR, SOURCE_DIR, SOURCE_DIR, DOMAIN)
|
|
|
|
|
|
|
|
os.system( cmd )
|