diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-26 13:07:48 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-26 13:07:48 +0200 |
commit | 94f45c0fe81f7f18d65a3d701da1c8448027d8b7 (patch) | |
tree | a73127fcb7c84c9378f879a9720a3b7d4711a1aa /po | |
parent | 8352bfea5bc081c4fd42aa8dc9ad31e3887af08d (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-x | po/compile.py | 3 |
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 | ||
5 | import os, sys | 5 | import os, sys |
6 | 6 | ||
7 | BUILD_LANGS = ['en', 'fi', 'ru', 'zh_Hans'] | ||
7 | MODE = 'compile' | 8 | MODE = 'compile' |
8 | ESCAPES = { | 9 | ESCAPES = { |
9 | '\\': '\\', | 10 | '\\': '\\', |
@@ -82,7 +83,7 @@ def parse_po(src): | |||
82 | 83 | ||
83 | if MODE == 'compile': | 84 | if 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)): |