Project

General

Profile

Actions

Bug #63684

closed

sys_language_uid and sys_language_content are always the same

Added by Karsten Nowak (undkonsorten) over 9 years ago. Updated almost 7 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Localization
Target version:
-
Start date:
2014-12-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

I'm trying to use content_fallback on a page with 3 languages. The lang uid's are 0,1 and 2.

The requested page exists in all languages. The content is only available in langUid 0 and langUid 1. Not in langUid 2.

My TS setup:

sys_language_mode = content_fallback:1,0
sys_language_overlay is not set.

On "Frontend Localization Guide" it says for "content_fallback : 1,0" the following:

If sys_language_uid(set by &L) = 2 then

TSFE->sys_language_uid = 2
TSFE->sys_language_content = 1

But on my site TSFE->sys_language_content is 2. Whatever i try in content_fallback (0 or 1) the TSFE->sys_language_content is never the fallback language uid. Every time the same like the sys_language_uid.

I tested this in TYPO3 6.2.6 and 6.2.8.

PHP is 5.5.18


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #48673: Changed language overlay behaviour in TYPO3 6.*Closed2013-05-30

Actions
Actions #2

Updated by Markus Klein almost 9 years ago

Known to be broken, see also #48673

https://review.typo3.org/9937

Actions #3

Updated by Riccardo De Contardi almost 8 years ago

  • Category set to Localization
Actions #4

Updated by Tymoteusz Motylewski almost 7 years ago

  • Status changed from New to Rejected

Hi
If a page is translated then:
- setting sys_language_mode to different values does NOT influence the rendering
- both TSFE->sys_language_uid and TSFE->sys_language_content should have the same value, equals to &L

sys_language_mode is only evaluated when sys_language_uid > 0, and the requested page translation is NOT available.
This setting decides if "pageNotFound" (strict), "content_fallback" with a fallback chain ($TSFE->sys_language_content is set to that value) or "ignore" (just render the page and the content as this translation would exist). When set to "0" or not set "", this means that the page request is using the default language for content and page properties.

Content fallback is evaluated on page level, not on the CE level. So it only makes a difference when the pages_language_overlay for the requested language does not exist.

Whatever i try in content_fallback (0 or 1) the TSFE->sys_language_content is never the fallback language uid. Every time the same like the sys_language_uid.

That's correct. TYPO3 does not have a possibility to configure CE overlay chains. It is possible only for determining a page record.

Please let me know if you have more questions. For now I'm closing the issue.

Actions

Also available in: Atom PDF