xInfo.language Method [AX 2012]

Gets or sets the language for the GUI.

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.

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.

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; 
}

Community Additions

ADD
Show: