RtLang - property of object Pm
The language version of the runtime application.
Property access for read and write
. The preset value of this property is defined in the "Main language of runtime
" configurator of the PmRoot
The value of this property influences selecting the text by Macro expression $.text.
If the language version is changed in the runtime by writing into this property, then the change should be made in the PmRoot.onAppStartBegin event. If it is written into the property later while starting or running the application, then some parts of PROMOTIC needn't reflect the change of the language. For example the panel that is already open will not refresh the displayed texts - it is necessary to reopen it. The font palette is automatically created again when the language is changed so that the panel uses the new font in the next opening.
This property is also functional for Web panels
. It is not functional in InternetExplorer8
and lower. For Web panels
this property is read only
The command in the PmRoot.onAppStartBegin
event that reads the language in the runtime from the config.ini
item and then the read value writes into RtLang
Pm.RtLang = Pm.IniFileRead("config.ini", "runtime", "rtlanguage", "en", vbString)