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

User language preference for linkSwitchableField is not working

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • 5.7.1
    • dialogs

    Description

      Summary:

      For a dialog definition we use the MTK /mtk/includes/linkSwitchableField.yaml and use i18n property files for translation - also for the linkType options.
      Although we changed the language to English the linktype option label still occurs in German. So it seems, that the i18n preference of the admincentral user is not taken into consideration correctly, but overwritten by what language was chosen first.

       

      Steps to reproduce:

      Language change from EN to DE

      1. Restart Magnolia (language is set to EN)

      2. Open dialog with linkSwitchableField

      --> All field values are displayed correctly (en):

      fields.linkType.label=Link type
      fields.linkType.options.page=Internal
      fields.page.label=Internal link
      fields.linkType.options.external=External
      fields.external.label=External link
      

      3. Change user language preference to German, Logout, Login

      4. Open dialog with linkSwitchableField again

       --> Correct i18n values (de): 

      fields.linkType.label=Linktyp
      fields.page.label=Interner Link
      fields.external.label=Externer Link

      --> Wrong i18n values (en):

      fields.linkType.options.page=Internal
      fields.linkType.options.external=External

       

       

      If the user starts with German user language preference these labels won't change to English after switching user language preference from German (de) to English (en).

       

      This bug could be linked to https://jira.magnolia-cms.com/browse/MGNLUI-5083.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              mschulz Mareike Schulz
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD