Child pages
  • How do I add I18N to a UI tag, like the textfield tag
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

<ww:textfield label="%{getText('i18n.label')}" name="label1" />

Thihs will get the localized text message for the key "i18n.key" and put it in the label.

Alternatively, portion of controlheader-core.ftl in /template/xhtml could be modified (if xhtml theme is being used), as follows :-

${parameters.label?html}:<#t/>
<#assign mm="getText('"+parameters.label?html+"')" /><#t/>
${stack.findValue(mm)}:<#t/>

or

${stack.findValue("getText('"+parameters.label?html+"')")}

such that using text tag like following will work as well (such that the label printed will be i18n).

<ww:textfield label="i18n.label" name="label1" />
  • No labels