Uploaded image for project: 'Magnolia Form Module'
  1. Magnolia Form Module
  2. MGNLFORM-219

i18n: Collected form configNodes are not i18n aware in MultiStepForm component -> required&confirmation text is not returned i18nized.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • 1.4.x, 2.2.x
    • 1.4.9, 2.0.2, 2.2.1
    • i18n

    Description

      Behavior:
      When defining a required and confirmation text in different languages, it works fine on the form component, but not on the formStep component.

      Reason:
      The form.ftl gets the required text from the model class.
      The FormModel "allocates" the StartStepFormEngine with the 'content' node. The 'content' node is i18n wrapped be the renderer.

      The SubStepFormModel "allocates" the SubStepFormEngine and gets the component nodes by this helper method:
      info.magnolia.module.form.templates.components.multistep.NavigationUtils.findParagraphOfType(Node, Class<?>)

      This method does not wrap the found nodes with the i18nNodeWrapper (see patch).

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              cringele Christian Ringele
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD