I want to get translated text in email script

chanken
Tera Contributor

Hi everyone,

I want to get translated text in email script.

Do I need to obtain translated text from sys_translated using GlideRecord?

Is there any other way?

regards.

7 REPLIES 7

ruzzty06
Tera Expert

You can do the translations in System UI>Messages then use


gs.getMessage('text to translate');


in your script


to get the translation.


Kishor kumar1
Mega Expert

There is no need to use glide function.



What ever you want to translate just call those like



find_real_file.png




gs.getMessage('<<key name of translated text>>');



Ex:



find_real_file.png



gs.getMessage('submit');



try this....



Regards,


Kishor


chanken
Tera Contributor

Hi Rusty & Kishor,



Thank you for reply.


Is it to register translations in "System UI> Messages" separately from "System Localization> Tranferd Text"?



regards.


Translated text is for Field labels and values I believe. Example for State field, the translations for that field is in Translated Text. Messages are   more for scripting, and other not field related translations.