Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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:

{panel} <p>Harcoded
No Format
Panel

<p>Harcoded string</p>

{panel}

with:

{panel} <p><span
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.

{panel} <p
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

...