(text) and (${text}) in <a> tag in html for a widget on service portal

Neha8
Tera Contributor

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 

find_real_file.png

 

3 REPLIES 3

David Arbour
Tera Guru

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.

David Arbour
Tera Guru

It's best practice to put pretty much everything within ${} so you can easily translate it in the future if required.

exactly this ^^

as I documented on my blog here a little while ago,

Many thanks,
Kind regards

--------------------------------------------------------------------
Director of Globalization Deployment, Internationalization