summaryrefslogtreecommitdiff
path: root/ci/txstats.py
diff options
context:
space:
mode:
authorAdriaan de Groot <groot@kde.org>2019-08-02 09:32:31 +0200
committerAdriaan de Groot <groot@kde.org>2019-08-02 09:32:31 +0200
commitf4034f629aa42b243acf1ee54c0908d09a031e46 (patch)
treeb115c65c63b915ca84d7786c0a0c5bd0a76ff32a /ci/txstats.py
parentdab841df0224ddf6b03a447cfe05b2a5edde9acc (diff)
CI: keep Esperanto in the "incomplete" list
- Since QLocale does not support Esperanto, we can't effectively load it.
Diffstat (limited to 'ci/txstats.py')
-rw-r--r--ci/txstats.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ci/txstats.py b/ci/txstats.py
index d29e7dc75..2edf1dd5b 100644
--- a/ci/txstats.py
+++ b/ci/txstats.py
@@ -56,6 +56,11 @@ def get_tx_stats(token):
return 1
suppressed_languages = ( "es_ES", ) # In Transifex, but not used
+ # Some languages go into the "incomplete" list by definition,
+ # regardless of their completion status: this can have various reasons.
+ incomplete_languages = (
+ "eo", # Not supported by QLocale
+ )
all_langs = []
@@ -66,6 +71,8 @@ def get_tx_stats(token):
if lang_name in suppressed_languages:
continue
stats = languages[lang_name]["translated"]["percentage"]
+ if lang_name in incomplete_languages:
+ stats = 0.0
all_langs.append((stats, lang_name))
output_langs(all_langs, "complete", lambda s : s == 1.0)