Validity: Rule, Task
This predefined variable contains the system language set (see RTE: configuration chapter "System: System Language" for more information).
Syntax |
I32 language |
---|---|
Value |
•0 = Neutral •4 = Chinese •7 = German •9 = English •10 = Spanish •12 = French •16 = Italian •18 = Korean •22 = Portuguese •25 = Russian |
Attributes |
Read only. From RTE 34.24.0 also write |
It is written at switch on by RTE based on the configuration entered in the project configurator -> settings -> general -> system -> system language.
NOTE: From RTE 34.24.0 you also have write access to the variable, so you can change the system language runtime. If you specify a language whose files have not been loaded or not managed, the Neutral language is used.
Example
; based on the selected language ; I store in the string register sr(1) ; the appropriate string SELECT(language) CASE 9 sr(1) = "Selected language: English" BREAK CASE 16 sr(1) = "Selected language: Italian" BREAK ... DEFAULT sr(1) = "No language selected" END_SELECT |