Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

%LNG_Translate function


Function
Function translates the text using the dictionary in relation to the Language Identifier.
Declaration


Blok kódu
languageesl
themeConfluence
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


Blok kódu
languageesl
themeRDark
TEXT _txt  
 INT _lngIdx
 _lngIdx := 1     ; language index can be acquired by HI_LNG_GetCurrLngIdx in ESL active scheme script 


Blok kódu
languageesl
themeRDark
  _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.