how to Translations of widgets in self service portal - English to Spanish

surya9
Tera Contributor

Whenever the user logged into service portal and   navigated to profile section and tries to change the language preference  from English to Spanish . Then on refresh of the page  , all the widgets , placeholders , items , categories should get translated form English to Spanish 

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi Surya,

Translation of content in Service Portal Widgets works best using the message functionality. This is also available when editing the HTML in the widget editor. Just put your text into the HTML like in the example below (english, if the base system language). 

<div class="panel-body">
   <p>${Some french text}</p>
   <p>${Some more french text}</p>
</div>

When a user looks at the widget with another language selected, the system looks for a matching translation in the messages table in your instance.

See here for more on the sys_ui_messages table:

https://docs.servicenow.com/bundle/rome-platform-administration/page/administer/localization/referen...

Also, https://docs.servicenow.com/bundle/rome-servicenow-platform/page/build/service-portal/concept/c_Widg...

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

View solution in original post

4 REPLIES 4

Community Alums
Not applicable

Hi Surya,

Translation of content in Service Portal Widgets works best using the message functionality. This is also available when editing the HTML in the widget editor. Just put your text into the HTML like in the example below (english, if the base system language). 

<div class="panel-body">
   <p>${Some french text}</p>
   <p>${Some more french text}</p>
</div>

When a user looks at the widget with another language selected, the system looks for a matching translation in the messages table in your instance.

See here for more on the sys_ui_messages table:

https://docs.servicenow.com/bundle/rome-platform-administration/page/administer/localization/referen...

Also, https://docs.servicenow.com/bundle/rome-servicenow-platform/page/build/service-portal/concept/c_Widg...

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

Community Alums
Not applicable

Hi Surya,

Glad to see my answer helped you, Kindly mark the answer as Correct & Helpful both such that others can get help.

Thanks,
Sandeep

@Community Alums I wanted to let you know that the docs you added led me to help complete translations for my platform. Thank you!

Community Alums
Not applicable

Glad to see i could hep you @opurpura 😉