...
All hardcoded string need to be replaced with the references to named properties (keys). For example to replace Harcoded string in the markup below you need to replace:
No Format |
---|
Panel |
<p>Harcoded string</p> {panel} |
with:
No Format |
---|
Panel |
<p><span key="myKey">this will get replaced by value read from .properties</span></p> {panel} |
and add myKey to the .properties file:
...
If you want to instert a localized text that with HTML markup in it use @Insert component instead of span method.
No Format |
---|
Panel |
<p jwcid="@Insert" value="message:myKey" raw="ognl:true" element="p"/> {panel} |
With this method you can use HTML tags in your properties file
...