[TYPO3-english] xlf file for BE module

Tomasz Krawczyk tomkrawc at gmail.com
Fri Nov 7 16:58:00 CET 2014


W dniu 2014-11-06 13:52, bernd wilke pisze:
> Am 04.11.14 20:49, schrieb Tomasz Krawczyk:
>> Isn't really possible to tell fluid template to use specific xlf file
>> for all labels?
>>
>> In case of my BE module I would have to use such instructions
>>
>> <f:translate
>> key="LLL:EXT:MyExtension/Resources/Private/Language/locallang_mod.xlf:some_label"
>>
>> />
>>
>
> maybe you can use a fluid variable to determine the language file and
> shorten the translation tag?
>
> <f:translate key="{langfile}:some_label" />
>
> where you set langfile like
> LLL:EXT:MyExtension/Resources/Private/Language/locallang_mod.xlf
> or
> LLL:EXT:MyExtension/Resources/Private/Language/locallang.xlf
> depending on BE/FE context.
>
>
> bernd

@Romain: My file is OK.

@Bernd: I'll try to use variable.

Actually I was expecting that field "labels" from last parametrer of 
\ExtensionUtility::registerModule() will be enough to poing my 
locallang_mod.xlf file...

regards
Tomek


More information about the TYPO3-english mailing list