KI_SET_LANGUAGES
Argument | Enumeration | Purpose |
---|---|---|
connection | Current database connection | |
SYM(lang()) | Language array | |
status | KDB_ERROR_ENUM | Return status |
KI_SET_LANGUAGES
Allows configuration of the languages that the SQL database should support. For example:
MAT REDIM langs(2) langs(1) = _KLANG_DE langs(2) = _KLANG_ZH_MOD CALL KI_SET_LANGUAGES connection, SYM(langs()) TO status
Configures the database for German and Simplified Chinese.
This provides an abstraction layer to a multi-lingual SQL database. We specify what languages the database should support then KCML will carry out the database specific operation required. On Oracle this may result in creating an index for each language. Where that index contains a column marked as a LANGUAGE column in the CREATE TABLE statement. If you add a language then all indexes must be recreated.
English(UK) is always included no matter what you specify. This function only has an affect on Oracle.
KI_GET_LANGUAGES can be used to retrieve the list of configured languages.
Use the KI_SET_LANGUAGE call to configure the current operating language.