How to do translation on "HTML widget" -service portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2019 03:21 AM
Hi all.
I knew that we can do translation on service portal using gs.getMessage();
Now I got struck on HTML out of the box widget(widget name: HTML)
How can I do translation for the highlighted text? where to write the "gs.getMessage()" scripe on this widget?
Please share some knowledge.
Thanks in advance!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2019 03:44 AM
I think you need to write a macro and print it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2019 01:24 AM
Hi,
When you write html in Service Portal, for translation use the syntax ${}. It is equivalent to gs.getMessage()
Example :
<a href="https://my.link.com">${Click here}</a>
The string "Click here" must be created in table sys_ui_message for each languages used.
More information here:
https://serviceportal.io/localization-service-portal/
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 07:12 AM
Hi! This worked for me!! Thank you!