The default language selected during install results in the default promsgs file being copied from $DLC/prolang/
xxx/ to $DLC/promsgs.
note: "
xxx" indicates the 3-alpha-character language abbreviation, for example:
eng = english
The default language can be changed in a number of ways, depending on the need for the "progress messages" being displayed in one or many languages.
To change Progress messages for all sessions:Reset the 'default' selected during install time by simply copying the relevant $DLC/prolang/xxx/promsgs.xxx to $DLC/promsgs.
To change Progress messages per user:The PROMSGS environment variable can be used to refer to the necessary promsgs.xxx file under $DLC/prolang/xxx/ directory.
Example:
For Brazilian Portuguese, use:
PROMSGS=%DLC%/prolang/brz/promsgs.brzTo change the PROMSGS dynamically:The ABL PROMSGS function can be used to direct to the necessary promsgs.xxx file under $DLC/prolang/xxx/ directory
Example:
/* this script assumes that the default installation language is ENGLISH */
DEFINE VARIABLE newmsg AS CHARACTER FORMAT "x(16)"
LABEL "My MSSGS" NO-UNDO.
DEFINE VARIABLE filemsg AS CHARACTER.
SET newmsg HELP "Enter the new language for messages.".
IF newmsg = "English"
THEN ASSIGN filemsg = "promsgs".
ELSE ASSIGN filemsg = "prolang/promsgs." +
LC(SUBSTRING(newmsg, 1, 3)).
IF SEARCH(filemsg) < > ?
THEN DO:
PROMSGS = filemsg.
MESSAGE "Messages will now be taken from" PROMSGS.
END.
ELSE DO:
MESSAGE "Cannot find" filemsg.
UNDO, RETRY.
END.