[Typo3-dev] $LANG is always NULL

Franz Holzinger franz at fholzinger.com
Thu Aug 4 17:49:09 CEST 2005


Hello
>>
>>>at the site  http://81.223.48.238/sbmp.at/Monitore.28.0.html
>>> I have a problem with the $LANG and $GLOBALS['LANG'] variables.
>>
>>
>>I just want to add that it is _not_ null when I am logged in as a
>>Backend User...
> 
> 
> ... which perhaps could tell you, that $GLOBALS['LANG'] is only available in BE.
> 
> In class tx_ttproducts the localization functions of tslib_pibase should be
> used. If additional functions are needed, there are some in tslib_fe (take a
> look at the last section "Localization and character set conversion").
> 
> @Franz: tell us, what you want to achieve, so we could give more distinctive
> help

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