Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

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.


Error Messages

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

Root Cause

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.


Published January 31, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us