Best practise to dynamically set session language in RAP [message #1851549] |
Fri, 08 April 2022 04:25  |
Eclipse User |
|
|
|
We have an RAP application that dynamically switches from the browser language to the user language after login.
This is done via
RWT.setLocale(userLocale);
After that the application starts by calling PlatformUI.createAndRunWorkbench.
However bundles are not loaded with the userLocale but instead with the osgi language (osgi.nl).
The workaround we came up with consits of manually setting this property in combination with RWT.setLocale before creating the Workbench. However this is a global adjusment and could lead to unexcpected behaviour when multible users are logged in simultaneously.
Therefore the question: Is there a more elegant way to switch the language before starting the workbench?
Thanks for the support,
Sebastian
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02814 seconds