[TYPO3-english] wrong $request->getControllerExtensionName()

Jan Bednarik info at bednarik.org
Tue Mar 17 14:55:16 CET 2015


f:translate has attribute extensionName where you can supply your 
extension name, so that powermail is not used.

Or you can reffer to the label like this: <f:translate 
key="LLL:EXT:myext/Resources/Private/Language/locallang.xlf:key1" />


Dne 17. 3. 2015 v 10:07 Sergio Catalá napsal(a):
> Hi list,
> I setup an extension that extends some models by powermail.
> I am trying to show a translated label through <f:translate key="blabla" />
> but, debugging, I realize:
> $request->getControllerExtensionName()
> returns "powermail", and not my extension name, so the label is not
> returned in the frontend.
> I don't want to add every time to my translate fluid tags the parameter
> "extensionName".
> Is there a way to setup the controller name?
> Thanks in advance,
> Sergio

More information about the TYPO3-english mailing list