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:
Diffstat (limited to 'po/update_mo.py')
-rwxr-xr-xpo/update_mo.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/po/update_mo.py b/po/update_mo.py
new file mode 100755
index 00000000000..c0870f3fbb3
--- /dev/null
+++ b/po/update_mo.py
@@ -0,0 +1,17 @@
+#!/usr/bin/python
+
+#update all mo files in the LANGS
+
+import os
+
+LOCALE_DIR="../release/bin/.blender/locale"
+PO_DIR = "."
+DOMAIN = "blender"
+
+for po in os.listdir( PO_DIR ):
+ if po.endswith(".po"):
+ lang = po[:-3]
+ # show stats
+ cmd = "msgfmt --statistics %s.po -o %s/%s/LC_MESSAGES/%s.mo" % ( lang, LOCALE_DIR, lang, DOMAIN )
+ print cmd
+ os.system( cmd )