BUG
GenericSetup controlpanel.xml allows configlets to be registered with translated titles (i18n:attributes="title"). This works in multilingual sites and Site Setup on classic UI show translated configlets.
However using ZMI/portal_controlpanel/manage_editActionsForm breaks translations here:
|
name = str(properties.get("name_%d" % index, "")) |
The zope.i18n.message.Message is replaced with a plain str.
What I did:
Steps:
- Registered a custom configlet with GenericSetup
controlpanel.xml having a translated title using the products domain name (e.g. https://github.com/collective/pas.plugins.ldap/blob/main/src/pas/plugins/ldap/plonecontrolpanel/profiles/default/controlpanel.xml#L14).
- Registered translations for the configlet title.
- Used portal_controlpanel/manage_editActionsForm to make changes
What I expect to happen:
Translated titles keep working
What actually happened:
The i18n Message gets replaced with plain str translated, defaulting to plone domain - see here.
What version of Plone/ Addons I am using:
Plone 6.2.0
BUG
GenericSetup
controlpanel.xmlallows configlets to be registered with translated titles (i18n:attributes="title"). This works in multilingual sites and Site Setup on classic UI show translated configlets.However using ZMI/portal_controlpanel/manage_editActionsForm breaks translations here:
Products.CMFPlone/src/Products/CMFPlone/PloneControlPanel.py
Line 174 in 6212f6f
The
zope.i18n.message.Messageis replaced with a plainstr.What I did:
Steps:
controlpanel.xmlhaving a translated title using the products domain name (e.g. https://github.com/collective/pas.plugins.ldap/blob/main/src/pas/plugins/ldap/plonecontrolpanel/profiles/default/controlpanel.xml#L14).What I expect to happen:
Translated titles keep working
What actually happened:
The i18n
Messagegets replaced with plainstrtranslated, defaulting toplonedomain - see here.What version of Plone/ Addons I am using:
Plone 6.2.0