From 94f45c0fe81f7f18d65a3d701da1c8448027d8b7 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 26 Mar 2021 13:07:48 +0200 Subject: Cleanup: Omit partially translated "de" Only show the languages that are currently (more or less) fully translated. IssueID #192 --- po/compile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'po') 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 @@ import os, sys +BUILD_LANGS = ['en', 'fi', 'ru', 'zh_Hans'] MODE = 'compile' ESCAPES = { '\\': '\\', @@ -82,7 +83,7 @@ def parse_po(src): if MODE == 'compile': for src in os.listdir('.'): - if src.endswith('.po'): + if src.endswith('.po') and src.split('.')[0] in BUILD_LANGS: # Make a binary blob with strings sorted by ID. compiled = bytes() for msg in sorted(parse_po(src)): -- cgit v1.2.3