[TYPO3-mvc] Fluid variable in key of translate viewhelper?

Stefan Frömken firma at sfroemken.de
Fri Jul 27 09:19:26 CEST 2012


Am 27.07.2012 09:13, schrieb Tobias Liegl:
> Hi,
>
> is it possible to use a variable in the key of the translate viewhelper?
> Something like this?
>
> <f:translate key="tx_myext.month.{month}" />
>
> {month} is 01 or 02 in my case and tx_myext.month.01 is defined as
> January in the locallang file. But unluckily it doesn't work.
>
> Tobi

Hello Tobi,

you're right. Using variables within a key is not allowed. I solved it 
with my own ViewHelper but you also can use the VarViewHelper in the 
directory of the fed extension.

Stefan


More information about the TYPO3-project-typo3v4mvc mailing list