Issue
When using a Norwegian locale and browser setting, date control properties display as "undefined" instead of displaying date values.
Symptoms and Impact
Every user session has a locale setting that can affect the language presented by the Pega Platform user interface when displaying or entering dates, times, and monetary values.
When a Norwegian locale is used, a date control is displayed as "undefined" instead of showing date values.
Steps to Reproduce
1. In the navigation pane of Dev Studio, click
.2. Expand the Organization category, and then click .
3. Open the
record that you want to edit.4. On the Operator tab, in the Localization section, in the field, enter the target language ISO code no_NO.
5. Click
.6. Set the chrome language settings to Norwegian.
7. Log in as the user and create any case which needs data input.
Root Cause
This is due to a mismatch between the Java Development Kit (JDK) version and the ICU library being used, specifically in handling Norwegian locales.
The issue arises because the JDK's default locale handling differs from ICU, and the no_NO locale was not consistently handled in earlier versions of the JDK.
The International Components for Unicode (ICU) library, which is often used by applications for localization, has specific rules for handling locales, especially for languages like Norwegian which have multiple dialects (Bokmål and Nynorsk).
Pega Platform determines the initial locale by first examining the browser's language settings. When Chrome is set to Norwegian, it sends locale codes that are not recognized, causing the calendar control's date formatting functions to fail.
Java 11 update causes regression as some undefined locales like no_NO are no longer supported by default, and an explicit locale has to be specified.
Solution
-
Change from using Locale no_ NO to using Locale nb_NO
-
Update to Pega Platform 24.2.2.
This version includes the Norwegian locale support ('nb', 'nb_NO'). This will resolve the calendar control issue when the browser is set to Norwegian language.
See Pega Platform 24.2.2 Patch Resolved Issues for more information.
References
Norwegian locales changes in v39