All variables and properties that are initialized with multilingual string constant, will be reinitialized automatically after the language has changed.
Of course, if you have done the assignment by using your own method, Embedded Wizard does not generate code for doing a certain re-initialization.
In this case, you can implement a ReInit() re-constructor:
The definition of a re-constructor is similar to an ordinary method. A re-constructor always has the name 'ReInit', expects no arguments and may not return a value, for example
method void ReInit()
{
Caption = GetCaptionForCurrentLanguage();
}
The re-constructors are automatically invoked by the Chora Runtime Environment when the currently selected language changes to give the object the chance to request additional language dependent resources, etc. It is not necessary and, in fact, unadvisable to call the re-constructors directly from the Chora code!
Additionally, please set the attribute 'MultiLingual' to 'true', in order to get the ReInit() method called after the language has changed.
For more details, please see 'Chora User Manual', chapter 'ReInit re-constructors'.