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

Display country code as well as selector in Language chooser in dialogs

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Neutral
    • 5.2.7, 5.3.2
    • 5.0
    • None

    Description

      Right now if one specifies 2 language variants for his site such as Swiss German (de_ch) and High German (de_de) both are shown in language selector in dialog as "German" only.
      This is because info.magnolia.ui.dialog.formdialog.ItemFormView uses only language part of locale to display users what language they can choose from at

      public void setAvailableLocales(List<Locale> locales) {
      ...
      languageSelector.setItemCaption(locale, locale.getDisplayLanguage(MgnlContext.getLocale()));
      ...
      }
      

      The solution would be to include country code in the caption as well.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                efochr Evzen Fochr
                had Jan Haderka
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD