Translation status: Properly account for plurals

This commit is contained in:
Raphael Michel
2026-01-07 09:20:37 +01:00
parent 3332fc818a
commit 62bc16f963

View File

@@ -229,7 +229,8 @@ def get_language_score(locale):
if not catalog:
score = 1
else:
score = len(list(catalog.items())) or 1
source_strings = [k[1] if isinstance(k, tuple) else k for k in catalog.keys()]
score = len(set(source_strings)) or 1
return score