Samya Ganguly (SamyaGanguly)
Capgemini Netherlands BV

Capgemini Netherlands BV
SamyaGanguly Member since 2012 4 posts
Capgemini Netherlands BV
Posted: February 12, 2016
Last activity: October 4, 2018
Posted: 12 Feb 2016 9:02 EST
Last activity: 4 Oct 2018 13:54 EDT

How to switch language without having to log off and re-log in


My application is bi-lingual (English and Dutch). If I change locale in my operator record  from en_NL to nl_NL, and log off and re-log in then all texts are properly translated. Now, for the requirement mentioned in subject line, I'm writing an activity which has the following java code :


  tools.getThread().setLocaleName(PRThread.LOCALE_DEFAULT, LangCode);

}catch(Throwable t){

  oLog.infoForced("Exception thrown while trying to change locale: "+t.toString());


Where ‘LangCode’ is a local variable which at runtime will be either EN or NL.

On execution of this activity, I see only STANDARD thread's pxSecuritySnapshot.pxUserRulesetLocalized is being updated with all the '_nl' rulesets. But all other threads remain unchanged. As a result, only few texts in designer studio are being translated, but not my user portal. (Even in designer studio, other tabs (if any is opened) are not translated)

If anyone has implemented this before, kindly let me know the solution.

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

User Experience
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.