Description
Extract a text in the current user language based on the provided key.
Return Function
The text corresponding to the key provided.
Parameters
Name | Description | Type |
key | The key to extract. | String |
vars | Possible values to be replaced within the translated text so we can reuse the same key for multiple needs. | String |
Example
'Get the text from the local
ENTITYDATAFIELD.U123_INFOCLVO.DIAPAGAMENTO.TOOLTIP
Dim textFromLocal as string = SDK.Translation.getString("ENTITYDATAFIELD.U123_INFOCLVO.DIAPAGAMENTO.TOOLTIP")
Description
Extracts a text in a specific language based on the provided key.
Return Function
The text corresponding to the key provided in the specific language.
Parameters
Name | Description | Type |
key | The key to extract | String |
languageCode | The language code for translation (pt_PT, es_ES or en_US) | String |
vars | Possible values to be replaced within the translated text so we can reuse the same key for multiple needs | String() |
Example
'Get the text from U8882_EXTFT.SEND.MAIL.TO.CLIENT (Email enviado para o cliente {0} - {1})
Dim textES as string = sdk.translation.getStringByLanguage("U8882_EXTFT.SEND.MAIL.TO.CLIENT", "es_ES", New String() { "1","Albertino Maciel"})