Translate messages
A globalized application should not have any language-specific text within the application code.
- Strings that the application displays or writes
Examples include error messages, informational messages, menu items, and button labels.
- Strings that the application uses internally
Examples include constants, file names, and literal characters or strings.
- Strings that an user is expected to enter
Examples include
yes
andno
responses.
- Translate all strings within the external files.
The new external files contain the translated versions of the strings that the application uses.
- Set the DBLANG environment variable to the
subdirectory within ONEDB_HOME that contains
the translated message files that the HCL OneDB™ products
use.
The ONEDB_HOME environment variable indicates the location where the HCL OneDB products are installed. You can use the rgetmsg( ) and rgetlmsg( ) functions to obtain HCL OneDB product messages. For more information about these functions, see the HCL OneDB ESQL/C Programmer's Manual.