[TYPO3-mvc] translate-ViewHelper question

Bastian Waidelich bastian at typo3.org
Wed Jul 22 13:05:20 CEST 2009


Joerg Schoppet wrote:

Hi,

> try it this way
> 
> <f:form.submit value="<f:translate key='update'>Update</f:translate>">

Or use the more elegant "inline notation":

<f:form.submit value="{f:translate('Update' key= 'update')}</f:translate>">

the syntax is:

{f:viewHelper(<childnodes> attribute1="value1", attribute2="value2")}

so e.g.:

{f:format.date('{post.date}' format='Y-m-d H:i:s')}

Bastian


More information about the TYPO3-project-typo3v4mvc mailing list