Do not clear non unique help translation

The help translations may be composed of partitioned strings.

Closes #13978
(grafted from 0cbf346b9ea5c1c25e3c97482b3d296432e441aa)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier committed 2025-04-23 18:32:04 +02:00
1 parent beeef130fb
commit 87647dfebd
1 file changed
+1 -2
+1 -2
View File
@@ -1354,8 +1354,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: