diff options
author | Xiao Xiangquan <xiaoxiangquan@gmail.com> | 2011-06-10 08:36:51 +0400 |
---|---|---|
committer | Xiao Xiangquan <xiaoxiangquan@gmail.com> | 2011-06-10 08:36:51 +0400 |
commit | 34a22b3b78b6c577fdb048751f58cce89f68a2d9 (patch) | |
tree | 7568693b918cdaf882b4830ace931f00403bd6c3 /po/update_pot.py | |
parent | aac6369e681d8d713264b2234ac30a5e90b07be0 (diff) |
Add i18n support for C code, and most menu items can be translated, now
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..4ba918d8de5 --- /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=gettext --directory=%s --output=%s/po/%s.pot" % ( + GETTEXT_XGETTEXT_EXECUTABLE, SOURCE_DIR, SOURCE_DIR, SOURCE_DIR, DOMAIN) + +os.system( cmd ) |