summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-26 13:07:48 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-26 13:07:48 +0200
commit94f45c0fe81f7f18d65a3d701da1c8448027d8b7 (patch)
treea73127fcb7c84c9378f879a9720a3b7d4711a1aa /po
parent8352bfea5bc081c4fd42aa8dc9ad31e3887af08d (diff)
Cleanup: Omit partially translated "de"
Only show the languages that are currently (more or less) fully translated. IssueID #192
Diffstat (limited to 'po')
-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)):