KCML_Language_LookupString

Purpose

Lookup up the string in the translation file

Definition

DEFSUB 'KCML_Language_LookupString(Text$, BYREF Translated$, Context$ = "", LangCode = KLANG_DEFAULT) AS Bool

Parameters

TextString to translate
TranslatedTranslated string (or original string if none is found)
ContextOptional. Optional Context$ to determine correct translation when more than translation is available
LangCodeOptional. Optional language to allow lookup in a different language to the current language being used.

Return

Returns TRUE if a translation is found

Description

Looks up the string in the translation file and returns the translated string (or the original string if no translation is found). Optionally Context$ may be passed as a hint when multiple translations for the same string are found. Normally the current language will be used for the translation but this can be specified as well. Programming multi-lingual strings and Language numbers

See also

Internal KCML Functions, Internally defined structures and Internally defined enumerations and constants.