ViewHelper Documentation
translate
Translate a key from locallang. The files are loaded from the folder "Resources/Private/Language/".
== Examples ==
<f:translate key="key1" />
<f:translate key="htmlKey" htmlEscape="false" />
<f:translate key="LLL:EXT:myext/Resources/Private/Language/locallang.xlf:key1" />
{f:translate(key: 'argumentsKey', arguments: {0: 'dog', 1: 'fox'}, default: 'default value')}
{f:translate(key: 'someKey', extensionName: 'SomeExtensionName')}
<f:translate id="key1" />
Arguments
key string
Translation Key
id string
Translation Key compatible to TYPO3 Flow
default string
If the given locallang key could not be found, this value is used. If this argument is not set, child nodes will be used to render the default
htmlEscape boolean
TRUE if the result should be htmlescaped. This won't have an effect for the default value
arguments anySimpleType
Arguments to be replaced in the resulting string
extensionName string
UpperCamelCased extension key (for example BlogExample)