i18n Taglib documentation

Version 1.0
Description Mashup internationalisation and localisation helpers

Tag getLang i18n:getLang(...)

Returns the current language code which will either be the empty string or a lowercase ISO 639 code.
Body Content: empty
Attribute nameRequiredRuntime Expression EvaluationType
varfalsefalsejava.lang.String
Name of the exported variable for the retrieved language code.

Tag language i18n:language(...)

Returns a localized displayed language name.
Body Content: scriptless
Attribute nameRequiredRuntime Expression EvaluationType
varfalsefalsejava.lang.String
Name of the exported variable for the escaped result.
languagetruetruejava.lang.String
The language to translate.
toLanguagefalsetruejava.lang.String
The language to use. Defaults to the current one.

Tag message i18n:message(...)

Retrieves the message with the given code, or text if code isn't resolvable.
Body Content: empty
Attribute nameRequiredRuntime Expression EvaluationType
codetruetrue
The code (key) to use when looking up the message.
argumentsfalsetrue
Set optional message arguments for this tag, as a (comma-)delimited String (each String argument can contain JSP EL), an Object array (used as argument array), or a single Object (used as single argument).
argumentSeparatorfalsetrue
The separator character to be used for splitting the arguments string value. Defaults to ','.
textfalsetrue
Default text to output when a message for the given code could not be found.
varfalsetrue
Name of the exported variable for the retrieved message.
htmlEscapefalsetrue
Set HTML escaping for this tag, as boolean value. Overrides the default HTML escaping setting for the current page.
javaScriptEscapefalsetrue
Set JavaScript escaping for this tag, as boolean value. Default is false.
widgetfalsetruecom.exalead.cv360.searchui.configuration.v10.Widget
Specifies the Widget to use for the code resolution. Defaults to the current widget.