[TYPO3-mvc] How to render labels in specific language

Philipp Wrann philippwrann at gmail.com
Tue Aug 19 10:26:08 CEST 2014


My current task is to make a website internationalized, so i have to exchange many static outputs by labels etc. But in some specific cases i do need to render a different language that the configured sys_language.

I got a contact-extension, where you can write mails to configured contact entities for objects, afterwards 2 mails are generated, one is sended to the contact and the other (confirm. mail) is sended to the client.

The client needs to recieve a mail in the configured sys_language, this is no problem its simply done with f:translate viewhelpers in the views.

But the configured contact could have a different language configured, so no matter what language the fe user is using, the labels in the generated mail should be printed in the contacts language.

I didnt find a possibility to configure the TranslationUtility, nor did i find an argument for f:translate viewhelper
Do i have to write my own viewhelper for that case, that uses some core-utility?


More information about the TYPO3-project-typo3v4mvc mailing list