Project

General

Profile

Actions

Bug #14665

closed

Conditional branch not working with sys_language_uid

Added by old_chihoang over 19 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2005-04-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.7.0
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If switching language with HTTP_HOST (Domain-switching) without &L Parameter:

###################
#Language Detection # ###################

[globalString = HTTP_HOST = www.mydomain.com]
config.sys_language_uid = 1
config.language = en
config.locale_all = en_EN
[global]

and conditional branch with this:

[globalVar = TSFE:sys_language_uid = 1]
mycode
[end]

is not working, because $TSFE->sys_language is not yet updated.

I found out that $TSFE->config['config']['sys_language'] is always updated with the correct language setting.

So I tried to this condition:

[globalVar = TSFE:config|config|sys_language_uid = 1]
mycode
[end]

I noticed that the first call is not working but the following calls are working. So I was forced to triple check all language with conditional branches like this:

1. english setting without &L-Parameter
2. german with &L-Parameter
3. english setting with &L-Parameter

in this order and for all language setting in my page. I couldn't found a solution yet. Altough I was digging really deep into the codes. :)

(issue imported from #M973)

Actions

Also available in: Atom PDF