Skip to content

ZMI/portal_controlpanel/manage_editActionsForm brakes translations #4344

Description

@szakitibi

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:

  1. 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).
  2. Registered translations for the configlet title.
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions