[TYPO3-mvc] f:translate in BE module

"Christian Müller (FLOW3 Team)" christian.mueller at typo3.org
Sat Sep 15 16:55:24 CEST 2012


Didn't check if backend modules load any locallang by default but you 
can always reference a specific label with the full file path:

<f:translate 
key="LLL:EXT:myext/Resources/Private/Language/locallang.xml:key" />

Cheers,
Christian

On 15/09/12 16:49, Stephen Bungert wrote:
> Can you use the translate vh in BE modules... every example of a BE 
> module I have seen has hard coded labels. I tried using the translate 
> VH to see if that would work but it didn't seem to:
> ---
> <f:layout name="Default" />
>
> <f:section name="content">
> <h1>{f:translate(key: 'spb2_be_import')}</h1>
> </f:section>
> ---
>
> The above results in an empty H1 tag. I put my language spb2_be_import 
> in my BE modules language file, is this the right place?
>
> Thanks,
>
> Stephen




More information about the TYPO3-project-typo3v4mvc mailing list