RtLanguage - property of the Pm object
Description:
The language version of the runtime application.
This property is obsolete (but functional) and it is better to use the
Pm.RtLang property.
Values:
The property returns or sets a numeric identifier (LCID) of the language:
5 - (cs) Czech
27 - (sk) Slovak
9 - (en) English
10 - (es) Spanish
21 - (pl) Polish
7 - (de) German
25 - (ru) Russian
12 - (fr) French
14 - (hu) Hungarian
Note:
Property access
for read and write.
The default value of this property is defined in the "
Main language of runtime" configurator of the
PmaRoot object.
The value of this property influences selecting the text by
Macro expression $.text.
If the language version is changed in runtime by writing into this property, then the change should be made in the
PmaRoot.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 fonts in the next opening.
This property
is not functional in
Web panels
Example1:
JavaScriptVBScriptSelect and copy to clipboard
Pm.Debug("Language=" + Pm.RtLanguage);
Pm.Debug "Language=" & Pm.RtLanguage
Example2:
The command in the
PmaRoot.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
RtLanguage.
JavaScriptVBScriptSelect and copy to clipboard
Pm.RtLanguage = Pm.IniFileRead("#cfg:config.ini", "runtime", "rtlanguage", 5, 3);
// 3=Long, 8=String, ...
Pm.RtLanguage = Pm.IniFileRead("#cfg:config.ini", "runtime", "rtlanguage", 5, 3)
' 3=Long, 8=String, ...