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

    • Type: Improvement
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.2.7, 5.3.2
    • Component/s: None
    • Labels:
    • Template:

      Error rendering 'issue-templates-customfield'. Please contact your Jira administrators.

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: