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 |
|
file | ctxtl.4gl |
declaration | function txt_retrieve(code) define code char(14) |
returns | description, char(80), retrieved text |
purpose |
txt_retrieve serves a similar purpose to
txt_fetch , but gathers the output
text from different places depending on the format of code:
|
example | none |
notes | see txt_fetch |
file | ctxtl.4gl |
declaration | function txt_validate(fname, codes) define fname char(14), codes char(80) |
returns |
true or false |
purpose | Determines whether file fname defines all the texts specified in codes |
example | none |
notes |
|