%LNG_Translate function


Function
Function translates the text using dictionary in relation to the Language Identifier.
Declaration
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 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 D2000 HI process.
In context of D2000 Event Handler process the language is set by called script in RPC procedure execution. In other case the language is undefined.

0 komentárov

Nie ste prihlásený. Akékoľvek zmeny, ktoré vykonáte, sa označia ako anonymné. Ak už máte svoj účet, pravdepodobne sa budete chcieť prihlásiť .