Question

16
Replies
3840
Views
SamyaGanguly Member since 2012 4 posts
Capgemini Netherlands BV
Posted: 4 years ago
Last activity: 2 years 7 months ago
Closed
Solved

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

Hello,

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 :

try{

  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 Interface
Moderation Team has archived post
Share this page LinkedIn