Hi,
Since we migrate to v9, I cannot use System user to log in the System.
Before that, I was using 2 browsers :
#1 was dedicated to "real" tenants, with preferences login = SuperUser ; Language = French
#2 was dedicated to System tenant, with preferences login = System ; Language = English (I think English is better in System - no translation issue)
Now, I have to use SuperUser in both browsers and preferences are shared.
So, when I need to enter in a tenant which is different that the one in the preferences, I have to write the password, change the language and then I can log, which is a bit frustrating (as it is done several times a day).
So my idea (until I can migrate to v10 and be able to use System user again) is to "force" the language for SuperUser, according to the tenant.
In my plugin, I've added this piece of code
if (topic.equals(IEventTopics.PREF_AFTER_LOAD)) {
if (Env.getAD_User_ID(Env.getCtx()) == USER_SUPERUSER && MSysConfig.getBooleanValue("XXA_FORCE_LANGUAGE_AT_LOGIN", false)) {
Language.setLoginLanguage(Env.getAD_Client_ID(Env.getCtx()) == 0 ? Language.getBaseLanguage() : Language.getLanguage("fr-FR"));
return;
}
}
which seems to work fine locally.
Do you see any issue deploying in a production instance?
Thanks,
Nicolas