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_po.py
parentaac6369e681d8d713264b2234ac30a5e90b07be0 (diff)
Add i18n support for C code, and most menu items can be translated, now
Diffstat (limited to 'po/update_po.py')
-rwxr-xr-xpo/update_po.py39
1 files changed, 39 insertions, 0 deletions
diff --git a/po/update_po.py b/po/update_po.py
new file mode 100755
index 00000000000..640b3a5f2d2
--- /dev/null
+++ b/po/update_po.py
@@ -0,0 +1,39 @@
+#!/usr/bin/python
+
+#update all po files in the LANGS
+
+import os
+
+DOMAIN = "blender"
+LANGS = (
+ "ar",
+ "bg",
+ "ca",
+ "cs",
+ "de",
+ "el",
+ "es",
+ "fi",
+ "fr",
+ "hr",
+ "it",
+ "ja",
+ "ko",
+ "nl",
+ "pl",
+ "pt_BR",
+ "ro",
+ "ru",
+ "sr@Latn",
+ "sr",
+ "sv",
+ "uk",
+ "zh_CN"
+)
+#-o %s.new.po
+for lang in LANGS:
+ # update po file
+ cmd = "msgmerge --update --lang=%s %s.po %s.pot" % (lang, lang, DOMAIN)
+ print(cmd)
+ os.system( cmd )
+