National language support is given in the form of text files which map
tokens to phrases. Message files are organized in the
source code tree
in a directory per each language, and are formatted using a simple
token, blanks or tabs, text scheme.
Comments are marked by a pound (#
) sign.
For the time being there is no provision for multiple line messages.
file |
ctxtl.4gl |
declaration |
function txt_fetch(fname, code)
define fname char(14),
code char(8)
|
returns |
description, char(80), retrieved text
|
purpose |
retrieves a line of text from a file
|
example |
none |
notes |
- Should any error occur while loading the file, an error is written to the
log, and depending on the error trapping routine behaviour, a message given to
the user. Subsequent accesses to the same file trigger no action.
- Text identifiers not found in the file cause the routine to return the
value of code, followed by a question mark.
|