diff options
Diffstat (limited to 'po/update_pot.py')
-rwxr-xr-x | po/update_pot.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/po/update_pot.py b/po/update_pot.py new file mode 100755 index 00000000000..5b5fe35ae35 --- /dev/null +++ b/po/update_pot.py @@ -0,0 +1,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=N_ --directory=%s --output=%s/po/%s.pot --from-code=utf-8" % ( + GETTEXT_XGETTEXT_EXECUTABLE, SOURCE_DIR, SOURCE_DIR, SOURCE_DIR, DOMAIN) + +os.system( cmd ) |