Supported KCM output languages
The language_code function accepts both the KCM and RFC 1766 language codes presented in the following table. The language_code function always returns the KCM language code for the selected language.
The RFC 1766 language codes are case-insensitive.
KCM |
RFC 1766 |
Language |
Country |
DAN |
da-DK |
Danish |
Denmark |
DES |
de-CH |
German |
Switzerland |
DEU |
de-DE |
German |
Germany |
ENG |
en-GB |
English |
Great Britain |
ENU |
en-US |
English |
United States |
ESP |
es-ES |
Spanish |
Spain |
FRA |
fr-FR |
French |
France |
FRB |
fr-BE |
French |
Belgium |
FRS |
fr-CH |
French |
Switzerland |
HUN |
hu-HU |
Hungarian |
Hungary |
ITS |
it-CH |
Italian |
Italy |
NLB |
nl-BE |
Dutch |
Belgium |
NLD |
nl-NL |
Dutch |
The Netherlands |
POL |
pl-PL |
Polish |
Poland |
PTG |
pt-PT |
Portuguese |
Portugal |
SVE |
sv-SE |
Swedish |
Sweden |
If support for the requested language could not be found, the current language is not changed, and the old language setting is returned.
Examples are provided here.
ASSIGN language := language_code( "ENG" )
ASSIGN language := language_code( "en-GB" )
Both calls to the language_code function select the English (Great Britain) language support. Both calls return the Template scripting language code ENG.
ASSIGN language := language_code ( "X-Query")
The below call retrieves the currently active language code by attempting to switch to a non-existing language.
The Polish and Hungarian languages use characters that are not present in the latin-1 character set. Therefore, the functions uppercases, uppercase2, and lowercase2 may not always result in the desired output. If the language_code is set to HUN or POL, you should use the function compare_characters (see compare_characters) to compare two TEXTs, the function fragment_of_characters (see number_of_characters) to separate a fragment from a TEXT, and the function number_of_characters (see number_of_characters) to calculate the length of a string.
The function date_in_words (see date_in_words) is not supported for the Polish language.
The function area_in_words (see area_in_words) is not supported for the Hungarian language.