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_po.py')
-rwxr-xr-xpo/update_po.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/po/update_po.py b/po/update_po.py
new file mode 100755
index 00000000000..8a2f61ba46f
--- /dev/null
+++ b/po/update_po.py
@@ -0,0 +1,17 @@
+#!/usr/bin/python
+
+#update all po files in the LANGS
+
+import os
+
+PO_DIR = "."
+DOMAIN = "blender"
+
+for po in os.listdir( PO_DIR ):
+ if po.endswith(".po"):
+ lang = po[:-3]
+ # update po file
+ cmd = "msgmerge --update --lang=%s %s.po %s.pot" % (lang, lang, DOMAIN)
+ print(cmd)
+ os.system( cmd )
+