summaryrefslogtreecommitdiff
path: root/po/compile.py
diff options
context:
space:
mode:
Diffstat (limited to 'po/compile.py')
-rwxr-xr-xpo/compile.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/po/compile.py b/po/compile.py
index 6416ea0e..58aa5220 100755
--- a/po/compile.py
+++ b/po/compile.py
@@ -4,6 +4,7 @@
4 4
5import os, sys 5import os, sys
6 6
7BUILD_LANGS = ['en', 'fi', 'ru', 'zh_Hans']
7MODE = 'compile' 8MODE = 'compile'
8ESCAPES = { 9ESCAPES = {
9 '\\': '\\', 10 '\\': '\\',
@@ -82,7 +83,7 @@ def parse_po(src):
82 83
83if MODE == 'compile': 84if MODE == 'compile':
84 for src in os.listdir('.'): 85 for src in os.listdir('.'):
85 if src.endswith('.po'): 86 if src.endswith('.po') and src.split('.')[0] in BUILD_LANGS:
86 # Make a binary blob with strings sorted by ID. 87 # Make a binary blob with strings sorted by ID.
87 compiled = bytes() 88 compiled = bytes()
88 for msg in sorted(parse_po(src)): 89 for msg in sorted(parse_po(src)):