From 62bc16f9631986d8f4268e80aacb94741db478e0 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Wed, 7 Jan 2026 09:20:37 +0100 Subject: [PATCH] Translation status: Properly account for plurals --- src/pretix/helpers/i18n.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pretix/helpers/i18n.py b/src/pretix/helpers/i18n.py index 04edcf2ba..dd72f9fca 100644 --- a/src/pretix/helpers/i18n.py +++ b/src/pretix/helpers/i18n.py @@ -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