Function translates the text using the dictionaryin relation to the Language Identifier.
Declaration
Blok kódu
language
esl
theme
Confluence
TEXT %LNG_Translate(
TEXT in str[,
INT in lngIdx = -1 | TEXT in lngName]
)
Parameters
str
Text for translation.
lngIdx
Language Identifier. The current language will be used if the identifier is not set or its value is -1.
lngName
Text identifier of language - name of the language.
Example
Blok kódu
language
esl
theme
RDark
TEXT _txt
INT _lngIdx
_lngIdx := 1 ; language index can be acquired by HI_LNG_GetCurrLngIdx in ESL active scheme script
Blok kódu
language
esl
theme
RDark
_txt := %LNG_Translate("Text in brackets is substituted by the translation from vocabulary: {!Key}. Language is identified by its name.", "SK")
Description
A current language is set by a registered user in context of the D2000 HI process. In context of D2000 the D2000 Event Handler process the language is set by called script in RPC procedure execution. In other case the language is undefined.