xInfo.language Method

Gets or sets the language for the GUI.

Syntax

public str language([str languageCode])

Run On

Called

Parameters

  • languageCode
    Type: str
    A string that contains the language code to set.

Return Value

Type: str
A string that contains the current language code.

Remarks

To set the language for the documentation, use the xInfo.documentationLanguage Method.

To set the GUI language for a particular session, use the xSession.interfaceLanguage Method.

Examples

The following example prints the code for the language that is currently set. For example, if the interface was in US English, it would print "en-us".

{ 
  
    print infolog.language(); 
    pause; 
}

See Also

Reference

xInfo Class