# MX\_LANGUAGE

> [HTML Version](mx_language.htm)

_Added February 2017_

**xcall MIAMEX, MX\_LANGUAGE, opcode, lang \{,status\}**

MX\_LANGUAGE (MIAMEX 190) retrieves or sets the current language.

**Parameters**

_opcode_  ([Num](num.md))  \[in\] 

0 (mxop\_get) to retrieve, 1 (mxop\_set) to set

_lang_  ([String](string.md))  \[in/out\] 

For the get operation, returns the current language name. Note that this is the name defined within the LDF file, not the name OF the LDF file. For example, the englsh.ldf file contains the name "ENGLISH."

For the set operation, must specify the name of the LDF file to load. This can be either an unadorned name, like "ENGLSH" (in which case it will look for dsk0:name.ldf\[1,6\]), or a complete filespec. Note that although the status parameter will indicate if the file was found, the only way to really evaluate the success of the operation is to use [GTLANG](gtlangsbr.md) to retrieve all the attributes of the new language.

_status_  (Signed [Num](num.md))  \[out\] 

If specified, returns 0 for success, else -1 if the specified LDF is not found.

**History**

2017 February, A-Shell 6.4.1543:  Function added to A-Shell. 