[TYPO3-mvc] f:translate in BE module
Stephen Bungert
stephenbungert at yahoo.de
Sun Sep 16 12:36:20 CEST 2012
Hi Christian, this works, but it makes the templates un readable if you have
lots of labels. Also I assume the xml file would get read just once, and
after that it would just keep all the labels in memory and access them, or
does the xml file get parsed for every single label?
""Christian Müller (FLOW3 Team)"" <christian.mueller at typo3.org> schrieb im
Newsbeitrag
news:mailman.1.1347720920.32624.typo3-project-typo3v4mvc at lists.typo3.org...
> 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