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.py33
1 files changed, 5 insertions, 28 deletions
diff --git a/po/update_po.py b/po/update_po.py
index c01c4bdc32d..8a2f61ba46f 100755
--- a/po/update_po.py
+++ b/po/update_po.py
@@ -4,35 +4,12 @@
import os
+PO_DIR = "."
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",
- "zh_TW"
-)
-#-o %s.new.po
-for lang in LANGS:
+
+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)