[TYPO3-mvc] Translate in controller

Jochen Rau jochen.rau at typoplanet.de
Tue Jan 5 12:51:54 CET 2010


Hi.

On 05.01.10 12:23, Pascal Jungblut wrote:
> just a short question: what would be the correct way to translate something in an action of a controller (using the locallang.xml in Resources/Private/Language)? Do I have to do all the things i.e. the TranslateViewHelper does or is there a simpler approach?

Have a look at Tx_Extbase_Utility_Localization::translate()

Regards
Jochen


More information about the TYPO3-project-typo3v4mvc mailing list