Check system language

Hello

In my program I create a few messages for the user like “Can I go home?”, “Continue the process?” etc., and I’d like to create this messages for the few different languages and change it automatically depending on system language. Can I check the language of the system in RAPID to choose the correct message to show?

IRC5, RobotWare 6.12.00.00

Hello,
you can use the function “GetSysInfo” to get the active language.

Example:

stLanguage := GetSysInfo(\CtrlLang);

The language is represented by two characters, [e.g. en (English), de (German), se (swedish), fr (France), etc.]

Thanks!