Translate of language in customize service portal

U_verma
Tera Expert

Hello we are using language internationalization through language picker in the service portal.

But most of the fields and labels in the portal are customize,So when we are changing the instance language the fields and labels are still in the same lang.(English)

Can someone suggest from where I can change the language or enter the recordfor those fields so that it reflect when we select any other language

4 REPLIES 4

Chuck Tomasi
Tera Patron

The same rules apply for portals as they do for the standard UI. You need to create the appropriate translated records in sys_ui_message, sys_translated_text, sys_documentation, and sys_choice.



Additionally, your portal needs to be language aware, using function calls instead of hard coded text.



Translate the interface


Thanks Chuck that works



But their was one more issue I am not able to translate the Link which I have scripted in HTML format in the service portal.


I have Tried translating the code in the "sys_translated_text" but its is still not reflecting.


find_real_file.png


The way I do translated text in Service Portal is to get the text during the server script (which runs first) and use it in the HTML. Something like this:



var data.msg_more = gs.getMessage('my_app_more_message');



then in the HTML...



{{data.msg_more}}


If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.



If you are viewing this from the community inbox you will not see the correct answer button.   If so, please review How to Mark Answers Correct From Inbox View.



Thank you