Uploaded image for project: 'LDAP Connector'
  1. LDAP Connector
  2. MGNLLDAP-116

Language Culture Name (IETF language tag) is not supported

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 1.10.3
    • 1.9.2
    • Maintenance 5, Maintenance 6
    • 1

      • In following up with SUPPORT-7940, we recognize that in term of 'integration' of Magnolia with the rest of the world, we still not very well supported Locale which using IETF language tag - usually adopted by .NET/Microsoft systems.
      • This could be easily fix by rewrite UserContextImpl, this section:
        protected void setLocaleFor(User user) {
                // despite this property being called "language", it sometimes contains the country (i.e. fr_CH), so we need to parse it
                final String userLanguage = user.getLanguage();
                setLocale(LocaleUtils.toLocale(userLanguage));
            }
        

        As flangelier investigated:

        After a little digging we found out that the Language Culture Name (IETF language tag) is not supported by Apache common Lang (ex: fr-CA, fr-FR). From what I understand we can only set Language with Java Locale format (ex: fr_CA, fr_FR).

        --> Then please use this instead:

        Locale.forLanguageTag("fr-CA")
        

        Worked for me as attached image.

        Acceptance criteria

              mdivilek Milan Divilek
              viet.nguyen Viet Nguyen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - 2.5h
                    2.5h
                    Remaining:
                    Time Spent - 0.5h Remaining Estimate - 0.25d
                    0.25d
                    Logged:
                    Time Spent - 0.5h Remaining Estimate - 0.25d
                    0.5h