MX_LANGUAGE

New MIAMEX function MX_LANGUAGE (190) retrieves or sets the current language:

xcall MIAMEX, MX_LANGUAGE, opcode, lang {,status}

opcode  (Num)  [in]

Operation: 0=get, 1=set

lang  (Str)  [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 filename, like "ENGLSH" (in which case it will look for DSK0:lang.LDF[1,6]), or a complete filespec. Note that although the status parameter will indicate if the file was found, the only to really evaluate the success of the operation is to use GTLANG.SBR to retrieve all the attributes of the new language.

status  (Num)  [out]

If specified, returns 0 for success, else -1 if the specified LDF is not found.