Hello!
We have MII work centers on the manufacturing floor that run under "dummy" accounts (ex: workcenter1 login). That login is set to use a language setting of "es" (Spanish). We have many different users throughout the day who clock in and out of the MII application, but the single dummy account is who is actually logged in. Meaning: each workcenter user does not login / logout throughout the day. The application stays running under the dummy account.
I have a requirement to allow users to change the language setting within the application as they see the need. In the example above - the default setting is Spanish, but maybe that particular user is more comfortable reading English. They need to be able to, on the fly, set the new language and have the page render correctly.
I have defined 2 bundle files: MII_en.properties and MII_es.properties and placed a few label names inside each. If I change the dummy user's language preference in their account and log out and log back in under that dummy account, the new language takes affect as I'd expect. The labels are read from the correct bundle file.
However, if I try to programmatically, within the MII application, set the session variables for Language, Country, locale and Locale - it has absolutely no effect on the page or resource bundle that's chosen! I always see the labels as they were when the user logged in.
In "normal", non MII, web development (think: Java/Spring/JSP stack), I can create a dropdown list for the user to choose their session language dynamically and refresh the page. The correct resource bundle gets picked up and the language renders correctly. I don't need the user to log out and log back in.
Is this same functionality not available in MII? Am I required to have the user log out and log back in?