Dashboard > WebWork > ... > FAQ > How do I add I18N to a UI tag, like the textfield tag
  WebWork Log In View a printable version of the current page.  
  How do I add I18N to a UI tag, like the textfield tag
Added by Onyeje Bose, last edited by MK Tan on Mar 06, 2006  (view change)
Labels: 
(None)

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

This 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" />

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators