forked from CGM_Public/pretix_original
Translation status: Properly account for plurals
This commit is contained in:
@@ -229,7 +229,8 @@ def get_language_score(locale):
|
|||||||
if not catalog:
|
if not catalog:
|
||||||
score = 1
|
score = 1
|
||||||
else:
|
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
|
return score
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user