[TYPO3-english] Get localization labels in FE without piBase->getLL

Andreas Kiessling kiessling at pluspol.info
Mon Sep 3 21:04:40 CEST 2012


Hi,

Am 03.09.12 19:12, schrieb Markus Klein:
> Hi!
> 
> You could use LocalizationUtility from extbase.
> 

Which just calls
$GLOBALS['TSFE']->sL($key);
or
$GLOBALS['LANG']->sL($key);
if you pass it a complete path, e.g.
LLL:EXT:lang/locallang_general.xml:LGL.error

So this should work:
$GLOBALS['TSFE']->sL('LLL:EXT:lang/locallang_general.xml:LGL.error');

HTH,
Andreas



More information about the TYPO3-english mailing list