[Typo3-dev] $LANG is always NULL
Thorsten Kahler
thorsten.kahler at dkd.de
Fri Aug 5 10:51:58 CEST 2005
Hi Franz,
Joey had the same problem in June, see thread [1].
I suggested to use
$GLOBALS['TSFE']->sL('LLL:EXT:some_extension/locallang_db.php:label_key');
which would mean
$GLOBALS['TSFE']->sL('LLL:EXT:sr_feuser_register/pi1/locallang.php:missing_'.$check);
in your case.
Regards
Thorsten
[1]
http://typo3.org/documentation/mailing-lists/dev-list-archive/thread/110128172/#childUid110128236
Franz Holzinger schrieb:
> Hello
>
>>>> I have a problem with the $LANG and $GLOBALS['LANG'] variables.
> I need it for this:
>
> $label =
> $LANG->sL('LLL:EXT:sr_feuser_register/pi1/locallang.php:missing_'.$check);
>
>
> This extension has error messages for feuser which are needed also in
> tt_prodcuts to diplay a text message for the fe_user field which has not
> been filled in.
>
>
> Franz
>
>
More information about the TYPO3-dev
mailing list