[Typo3] Using locallang labels from sr_feuserregister in another frontend plugin
kay stenschke
kay at stenschke.com
Fri Apr 15 23:03:37 CEST 2005
Hi Christoph,
i had a very similar problem, thanks to a hint from bernhard kraft on the dev list
i found out about the $LANG->sl function, after this seemed not to work always, i added
a check to find out wether the function is available and instantiate the $LANG-object if it's not callable yet. here the code:
// *** instantiate LANG if not available:
if (!is_callable($this->sL)) {
require_once(t3lib_extMgm::extPath('lang').'lang.php');
$GLOBALS['LANG'] = t3lib_div::makeInstance('language');
}
// ****
$output = $GLOBALS['LANG']->sL('LLL:EXT:extensionkey/pi1/locallang.php:languagelable');
regards,
kay
More information about the TYPO3-english
mailing list