Do not clear non unique help translation

The help translations may be composed of partitioned strings.

Closes #13978
This commit is contained in:
Cédric Krier
2025-04-23 18:32:04 +02:00
parent dedbd6df06
commit 8b1c044274
+1 -2
View File
@@ -1431,8 +1431,7 @@ class TranslationClean(Wizard):
for translation in translations:
if getattr(self, '_clean_%s' % translation.type)(translation):
to_delete.append(translation.id)
elif translation.type in ('field', 'model', 'wizard_button',
'help'):
elif translation.type in {'field', 'model', 'wizard_button'}:
key = (translation.module, translation.lang, translation.type,
translation.name, translation.res_id)
if key in keys: