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

Best Answer

  • Micky
    Micky Germany ✭✭✭
    Accepted Answer
    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.]

Answers

  • Dzmitry
    Dzmitry Poland
    Micky said:
    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!