Changing the locale at runtime does not reflect in portal
Changing the locale at runtime does not reflect in portal.
User is provided an option to update the locale at runtime. But even if the locale is updated, some of the values still display values as per the locale.
For instance, user is trying to change the locale from 'Japanese' to 'English', but most of the values still display in Japanese.
Values displayed are not as per the locale
Steps to Reproduce
1. Set the language setting in the browser as Japanese
2. Use custom dropbox, which calls thread.setLocaleName(PRThread.LOCALE_DEFAULT, strDefaultLocale) through Code-Pega-Requestor.UpdateLocaleSettings, change from Japanese to English
3. Update Locale of Operator Record
4. Log out and log in
5. Check language in portal, check localized ruleset and it remains as Japanese
An issue is in the custom application code.
The dropbox "Change Locale", uses thread.setLocaleName(PRThread.LOCALE_DEFAULT, strDefaultLocale); and also updates Operator Record.
Whenever it switches between locale, the specific parameter is passed, JA for Japanese, EN for English.
The issue here is that the parameter passed when switched to English, was BLANK.
The Operator Record locale was also set to blank.
Whenever the user logs out and logs in again, Pega defaults to browser setting.
Set the action and activity to explicitly pass EN instead of BLANK, when language is changed to English.
0% found this useful