RtLang - property of object Pm

The language version of the runtime application.
RtLang As String
s = Pm.RtLang
Returns/sets a text identifier of the language (e.g. "en", "cs" ...). See How to create an application using different national languages.
Property access for read and write. The preset value of this property is defined in the "Main language of runtime" configurator of the PmRoot object.

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. When 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 for read only.
Pm.Debug "Language=" & Pm.RtLang
The command in the PmRoot.onAppStartBegin event that reads the language in the runtime from the config.ini file, runtime section, rtlanguage item and then the read value writes into RtLang.
Pm.RtLang = Pm.IniFileRead("config.ini", "runtime", "rtlanguage", "en", vbString)
PROMOTIC 8.3.19 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
- Pm
- Abs
- Cos
- E
- Exp
- LN2
- PI
- Pow
- RtLang
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice