ClassMethod way to set a language for a session is:
Do ##class(%MessageDictionary).SetSessionLanguage(lang)
The interesting case would be $$$Text("englishtext") macros getting compiled on a new instance under a session in other language. Under these conditions the ^CacheMsg global would be written with "englishtext" values under session language. Which would be set as a default language for this domain (Messages in $$$Text are presumed to be written in domain default language, unless specified otherwise).
To prevent that set domain default language or change session language before the compilation.
As far as I remember importing message dictionary does not set default language for the domain itself.
- Log in to post comments