ViewHelper Documentation
translate
Returns translated message using source message or key ID.
Also replaces all placeholders with formatted versions of provided values.
= Examples =
<f:translate id="user.unregistered">Unregistered User</f:translate>
{f:translate(id: 'some.label.id', value: 'fallback result')}
<f:translate id="some.label.id" source="LabelsCatalog" locale="de_DE"/>
<f:translate id="some.label.id" source="LabelsCatalog" package="OtherPackage"/>
<f:translate arguments="{0: 'foo', 1: '99.9'}"><![CDATA[Untranslated {0} and {1,number}]]></f:translate>
<f:translate>Untranslated label</f:translate>
Arguments
id string, required
Id to use for finding translation (trans-unit id in XLIFF)
value string, required
If $key is not specified or could not be resolved, this value is used. If this argument is not set, child nodes will be used to render the default
arguments anySimpleType, required
Numerically indexed array of values to be inserted into placeholders
source string, required
Name of file with translations (use / as a directory separator)
package string, required
Target package key. If not set, the current package key will be used
quantity anySimpleType, required
A number to find plural form for (float or int), NULL to not use plural forms
locale string, required
An identifier of locale to use (NULL for use the default locale)