
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2018 04:20 AM
Hi,
I'm translating Service Portal Widgets and I'm searching the HTML bodies for references to UI Messages which I then can create translation entries for.
Normally I take the text from a reference, ex. "show less" from ${show less} and add it as the key in my sys_ui_message entry, select language and then add the translation which works like a charm.
But in some cases the HTML references have variables within them. Ex: ${show all ({{teamMembers.length}})}.
How do I translate these kind of messages?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2019 03:12 AM
I recently translated the pagination text in the widget 'Widget Data Table'. Below is the HTML-code which is translated.
${Rows {​{data.window_start + 1}} - {​{ mathMin(data.window_end,data.row_count) }} of {​{data.row_count}}}
Surprisingly the key for this bit, was
Key: Rows {​{data.window_start + 1}} - {​{ mathMin(data.window_end,data.row_count) }} of {​{data.row_count}}
Message: Rader {{data.window_start + 1}} - {{ mathMin(data.window_end,data.row_count) }} av {{data.row_count}}
In your case the key is probably
Show all ({{teamMembers.length}})
I found a property you can set to auto detect missing translations. 'glide.translate.learn'. One caveat about this is it will generate thousands of translations ending with [lang code], in my case my instance was filled with a ton of [no].

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2018 07:24 AM
If it works like most other message translation constructs, the parameters will be replaced with whatever is inside the message field's numbered parameters.
Example:
Save ({0})
will be translated as
Save (4)
Haven't tried this in Service Portal, but that's how it works in the other places I use messages.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2018 12:28 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2018 06:49 AM
One set of curly braces.
show all ({0})
and
visa alla ({0})
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2019 03:12 AM
I recently translated the pagination text in the widget 'Widget Data Table'. Below is the HTML-code which is translated.
${Rows {​{data.window_start + 1}} - {​{ mathMin(data.window_end,data.row_count) }} of {​{data.row_count}}}
Surprisingly the key for this bit, was
Key: Rows {​{data.window_start + 1}} - {​{ mathMin(data.window_end,data.row_count) }} of {​{data.row_count}}
Message: Rader {{data.window_start + 1}} - {{ mathMin(data.window_end,data.row_count) }} av {{data.row_count}}
In your case the key is probably
Show all ({{teamMembers.length}})
I found a property you can set to auto detect missing translations. 'glide.translate.learn'. One caveat about this is it will generate thousands of translations ending with [lang code], in my case my instance was filled with a ton of [no].