[TYPO3-mvc] Locallang for Stand_Alone_View not working

Henjo Hoeksma me at henjohoeksma.nl
Fri Apr 15 13:34:16 CEST 2011


On 2011-04-15 12:14:22 +0200, Franz Koch said:

> Hey Henjo,
> 
>> $emailView = $this->objectManager->create('Tx_Fluid_View_StandaloneView');
> ...
>> $templatePathAndFilename
>> = $templateRootPath . 'Email/' .$templateName . '.html';
>> $emailView->setTemplatePathAndFilename($templatePathAndFilename);
>> $emailView->setLayoutRootPath($layoutRootPath);
>> $emailView->setPartialRootPath($partialRootPath);
>> $emailView->assignMultiple($variables);
>> $emailBody = $emailView->render();
> 
> The StandaloneView does neither know about your extension name nor the 
> plugin key - how should the translation know where to grab the labels 
> from? So I think you have to use the complete LLL path as key for the 
> translate viewHelper:
> 
> LLL:EXT:ext_key/Resources/Private/Language/locallang.xml:your.label

Why couldn't I think of that? ;-)

Thanks.

Henjo



More information about the TYPO3-project-typo3v4mvc mailing list