[TYPO3] same locallang for different pi's
Lars Haendler
typo3 at larshaendler.com
Wed Sep 17 16:42:44 CEST 2008
Hi Xavier,
Xavier Perseguers wrote:
> Hi,
>
>> while working on a new extension with different pi's I realized that
>> each pi has its own locallang.xml file. Is there a way to use only on
>> locallang.xml - say from pi1 - for all pi's?
>
> For sure! Specify
>
> LLL:EXT:your_extension/pi1/locallang.xml
>
> as prefix to the call to $GLOBALS['TSFE']->sL();
>
I just don't know where I have to place it in my class.tx_whatever_pi1.php.
I normally user $this->pi_loadLL() in each pi or other class. I've never
used $GLOBALS['TSFE']->sL() before.
Regards
Lars
More information about the TYPO3-english
mailing list