(text) and (${text}) in <a> tag in html for a widget on service portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2022 09:51 AM
What is the difference when we write (text) and (${text}) in <a> tag in html for a widget on service portal
Is this a variable?
Below is the code html on widget
<p style="font-family: arial, helvetica, sans-serif;"><img src="/call.png" width="10" height="9" /><span style="text-decoration:none;color:#6e6e78;margin-left:5px;"><a href="tel:8888"><strong>8888 </strong></a>(${text})</span><span style="text-decoration: underline;"></span></p>
Appears as
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2022 09:54 AM
If the text is surrounded by ${}, the sys_ui_message table is checked to see if the text equals a key value for dynamic translation to other languages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2022 09:54 AM
It's best practice to put pretty much everything within ${} so you can easily translate it in the future if required.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2022 01:30 AM
exactly this ^^
as I documented on my blog here a little while ago,
Many thanks,
Kind regards
Director of Globalization Deployment, Internationalization