Hi @ralfilab
You can see the code that does it in:
\Composite.Workflows\C1Console\Users\Workflows\ChangeOwnActiveLocaleWorkflow.cs
To change the language use the following line:
You can see the code that does it in:
\Composite.Workflows\C1Console\Users\Workflows\ChangeOwnActiveLocaleWorkflow.cs
To change the language use the following line:
UserSettings.ActiveLocaleCultureInfo = cultureInfo;
Since our console UI supports only one active language at a time, one should either send a message to opened instances of the console to switch its language (which will be confusing to the user), or at least check if there're no opened consoles, and then change the language only in that case: var cultureInfo = new CultureInfo("uk-UA");
if (UserValidationFacade.IsLoggedIn())
{
if (!ConsoleFacade.GetConsoleIdsByUsername(UserSettings.Username).Any())
{
UserSettings.ActiveLocaleCultureInfo = cultureInfo;
}
}