[TYPO3-core] REMINDER#3 RFC #8564: Result of t3lib_BEfunc::getProcessedValue is hardcoded and therefore cannot be translated

Steffen Kamper steffen at sk-typo3.de
Fri Jul 11 01:31:36 CEST 2008


Dmitry Dulepov [typo3] schrieb:
> Hi!
> 
> Steffen Kamper wrote:
>> Dmitry Dulepov [typo3] schrieb:
>>> I have a question about it. $GLOBALS['LANG'] sometimes unavailable in 
>>> BE, especially if user is not admin. Have you checked this case?
>>>
>>> This variable is created only for classes that use typo3/template.php 
>>> or typo3/ajax.php. If any BE module uses 
>>> t3lib_BEfunc::getProcessedValue() without template.php or ajax.php, 
>>> there will be a PHP error.
>>
>> :o ist that really so?
>> I think $GLOBALS['LANG'] is one of the most important in BE and should 
>> be available all the time.
> 
> I agree that it should be always available (created after BE_USER 
> initialization due to language settings). But:
> 
> ----------------
> $ grep "\$LANG =" typo3/*
> 
> $ grep "'LANG'] =" typo3/*
> typo3/ajax.php:40:$GLOBALS['LANG'] = t3lib_div::makeInstance('language');
> typo3/template.php:2035:$GLOBALS['LANG'] = 
> t3lib_div::makeInstance('language');
> 
> $
> ----------------
> 
> It is created only in these two places.
> 
>> Do you remember where this isn't (which module) ?
> 
> I know one for sure: TemplaVoila page module. Or take any other module, 
> which does not use template.php.
> 
Hi Dmitry,

ah yes. Then the proper place would be in ajax.php / backend.php / 
alt_main.php

These places should be executed all the time.

vg Steffen


More information about the TYPO3-team-core mailing list