[TYPO3-dev] Setting config.sys_language_uid from PHP script

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Mon Mar 26 17:42:38 CEST 2007


Martin Koch Andersen schrieb:
> Martin Kutschker skrev:
> 
>> Martin Koch Andersen schrieb:
>>
>>>
>>> But this has no effect. Any clues why setting the 
>>> config.sys_language_uid like this from a PHP script does not work?
>>
>>
>> Because the TS config setting is turned into a property of the TSFE 
>> object (see tslib_fe).
> 
> I did try $GLOBALS['TSFE']->sys_language_uid also. Still no effect.

Is the content language set in $TSFE? If so, you must change that too. I 
see that you use TV, so you maybe have to set the ISO code for the language 
somewhere as well.

And what does not work? I have changed the language locally and 
successfully within a plugin.

Masi




More information about the TYPO3-dev mailing list