-
Bug
-
Resolution: Fixed
-
Neutral
-
1.9.2
-
-
Empty show more show less
-
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