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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Xiangquan <xiaoxiangquan@gmail.com>2011-06-10 08:36:51 +0400
committerXiao Xiangquan <xiaoxiangquan@gmail.com>2011-06-10 08:36:51 +0400
commit34a22b3b78b6c577fdb048751f58cce89f68a2d9 (patch)
tree7568693b918cdaf882b4830ace931f00403bd6c3 /po/update_pot.py
parentaac6369e681d8d713264b2234ac30a5e90b07be0 (diff)
Add i18n support for C code, and most menu items can be translated, now
Diffstat (limited to 'po/update_pot.py')
-rwxr-xr-xpo/update_pot.py14
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 )