Promotic
WikipediaLinkedInYoutubeTwitterFacebook

RtLang - property of object Pm

Description:
The language version of the runtime application.
Syntax:
RtLang As String
Calling:
s = Pm.RtLang
Values:
Returns/sets a text identifier of the language (e.g. "en", "cs" ...). See How to create an application using different national languages.
Note:
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.
Example1:
Pm.Debug "Language=" & Pm.RtLang
Example2:
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)
Navigation:
 
- 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