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
path: root/po
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
parentaac6369e681d8d713264b2234ac30a5e90b07be0 (diff)
Add i18n support for C code, and most menu items can be translated, now
Diffstat (limited to 'po')
-rwxr-xr-xpo/POTFILES.in3
-rwxr-xr-xpo/update_all.py7
-rwxr-xr-xpo/update_mo.py40
-rwxr-xr-xpo/update_po.py (renamed from po/update-po.py)5
-rwxr-xr-xpo/update_pot.py (renamed from po/update-pot.py)0
5 files changed, 51 insertions, 4 deletions
diff --git a/po/POTFILES.in b/po/POTFILES.in
index fb0f96cc6ae..ac949ade10a 100755
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1 +1,4 @@
release/scripts/startup/bl_ui/space_info.py
+
+source/blender/editors/space_info/space_info.c
+source/blender/windowmanager/intern/wm_operators.c
diff --git a/po/update_all.py b/po/update_all.py
new file mode 100755
index 00000000000..c961cbd2503
--- /dev/null
+++ b/po/update_all.py
@@ -0,0 +1,7 @@
+#!/usr/bin/python
+
+#update all
+
+import update_pot
+import update_po
+import update_mo
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 )
diff --git a/po/update-po.py b/po/update_po.py
index c824b537a95..640b3a5f2d2 100755
--- a/po/update-po.py
+++ b/po/update_po.py
@@ -36,7 +36,4 @@ for lang in LANGS:
cmd = "msgmerge --update --lang=%s %s.po %s.pot" % (lang, lang, DOMAIN)
print(cmd)
os.system( cmd )
-
- # show stats
- cmd = "msgfmt --statistics %s.po" % lang
- os.system( cmd )
+
diff --git a/po/update-pot.py b/po/update_pot.py
index 4ba918d8de5..4ba918d8de5 100755
--- a/po/update-pot.py
+++ b/po/update_pot.py