%LNG_Translate function


Function
Function translates the text using the dictionary in relation to the Language Identifier.
Declaration
TEXT %LNG_Translate(
   TEXT in str[,
   INT in lngIdx = -1 | TEXT in lngName]
 )
Parameters
strText for translation.
lngIdx Language Identifier. The current language will be used if the identifier is not set or its value is -1.
lngNameText identifier of language - name of the language.
Example
TEXT _txt  
 INT _lngIdx
 _lngIdx := 1     ; language index can be acquired by HI_LNG_GetCurrLngIdx in ESL active scheme script 
  _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 the D2000 Event Handler process the language is set by called script in RPC procedure execution. In other case the language is undefined.
Napíšte komentár