Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Can't translate my widget titles

vanessaheux
Tera Contributor

Hello

I have cloned my portal homepage as I needed to add new widgets in it.

On the cloned page, I integrated again the widgets I use to have in the old one (in another place). These ones were translated correctly in the old page.

But I noticed that I lost all translations done on them in the new page.

For some of them it is easy to get translations but for others I can’t succeed to have the translations.

Example

My approvals” title is easy to translate as in the widget HTML editor I found the panel titel with at the end ${My approvals}

But for these widgets I can’t find where to ${…}

 

“Announcements “ widget

HTML model :    <h2 class="h4 panel-title" aria-label="{{::c.options.title}}"><span ng-if="c.options.glyph" aria-label="{{::c.getCleanGlyphName()}} glyph"><fa name="{{::c.options.glyph}}"/></span>${{{::c.options.title}}}</h2>

 

Server script   : options.title = options.title || 'Announcements';

 

“Simple List” widget

HTML model: <h2 class="h4 panel-title">

      <span ng-if="c.options.glyph">

        <fa name="{{::c.options.glyph}}" />

      </span>{{::c.options.title}}</h2>

 

Server script : options.title = options.title || gr.getPlural();

 

 

What I don’t understand is that it is working for the old page whereas it has exactly the same HTML code and server script.

 

Can someone help me on how to translate these 2 widgets (simple list and annouvements) as I could put something like ${…} in order to translate in sys_ui_message table the titles I want ?

Regards

Vanessa Heux

2 REPLIES 2

Yes I saw that but that did not help me.