[TYPO3-mvc] Locallang for Stand_Alone_View not working

Franz Koch typo3.RemoveForMessage at elements-net.de
Fri Apr 15 12:14:22 CEST 2011


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

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list