Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-5083

Resource bundle ignored on switchable field's option labels

    XMLWordPrintable

Details

    • Bug
    • Resolution: Outdated
    • Major
    • None
    • 6.0
    • dialogs
    • None

    Description

      I have created a dialog inside a content app that uses a switchable field. This is a PoC for a client that needs a multi-lingual UI so I am using a resource bundle to load the field labels.

      The rest of the bundle is is working fine but the labels on the switchable field's options are not. Whichever language is first used to view the field after restarting the server becomes "stuck" as the label for these options.

       - name: department
        class: info.magnolia.ui.form.field.definition.SwitchableFieldDefinition
        transformerClass: info.magnolia.ui.form.field.transformer.composite.DelegatingCompositeFieldTransformer
        options:
          - name: myDepartment
            selected: true
            value: myDepartment
          - name: entireUniversity
            value: entireUniversity
          - name: anotherDepartment
            value: anotherDepartment
      events.audience.department.options.myDepartment = min avdelning
      events.audience.department.options.entireUniversity = hela universitetet
      events.audience.department.options.anotherDepartment = en annan avdelning
      events.audience.department.options.myDepartment = My department
      events.audience.department.myDepartment.myDepartmentName.label = Your department
      events.audience.department.options.anotherDepartment = Another department

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                chris.jennings Chris Jennings
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD