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_mo.py
parentaac6369e681d8d713264b2234ac30a5e90b07be0 (diff)
Add i18n support for C code, and most menu items can be translated, now
Diffstat (limited to 'po/update_mo.py')
-rwxr-xr-xpo/update_mo.py40
1 files changed, 40 insertions, 0 deletions
diff --git a/po/update_mo.py b/po/update_mo.py
new file mode 100755
index 00000000000..840d2ff0fea
--- /dev/null
+++ b/po/update_mo.py
@@ -0,0 +1,40 @@
+#!/usr/bin/python
+
+#update all mo files in the LANGS
+
+import os
+
+LOCALE_DIR="../release/bin/.blender/locale"
+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:
+ # show stats
+ cmd = "msgfmt --statistics %s.po -o %s/%s/LC_MESSAGES/%s.mo" % ( lang, LOCALE_DIR, lang, DOMAIN )
+ print cmd
+ os.system( cmd )