Project

General

Profile

Actions

Bug #82794

closed

config.sys_language_mode = fallback;3,2 always falls back to "0"

Added by Benni Mack about 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Localization
Start date:
2017-10-17
Due date:
% Done:

100%

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

Description

If a translation (language UID 5) has a TypoScript configuration to `config.sys_language_mode = fallback;3,2` the definition is that if this page is not available in this translation (language=5) then check if a translation for 3 and after that "2" is set. However, if none of the page translations is available, the fallback to "0" always applies.

Imagine a set up like:
- language=0 is german
- language=2 is english-worldwide
- language=3 is english-EN
- language=5 is russian

You would not want to fall back to german AT ALL.

Actions #1

Updated by Benni Mack about 7 years ago

Example TypoScript:

config.sys_language_uid = 0
config.language = de

[globalVar = GP:L = 2]
config.sys_language_uid = 2
config.sys_language_mode = strict
config.language = en

[globalVar = GP:L = 3]
config.sys_language_uid = 3
config.sys_language_mode = content_fallback;2
config.language = en

[globalVar = GP:L = 5]
config.sys_language_uid = 5
config.sys_language_mode = content_fallback;3,2
config.language = en

Actions #2

Updated by Gerrit Code Review about 7 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54426

Actions #3

Updated by Gerrit Code Review about 7 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54426

Actions #4

Updated by Gerrit Code Review about 7 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54426

Actions #5

Updated by Gerrit Code Review about 7 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54426

Actions #6

Updated by Gerrit Code Review about 7 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54426

Actions #7

Updated by Gerrit Code Review about 7 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54426

Actions #8

Updated by Gerrit Code Review about 7 years ago

Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54464

Actions #9

Updated by Benni Mack about 7 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #10

Updated by Sebastian Schmal over 6 years ago

Benni Mack wrote:

Example TypoScript:

config.sys_language_uid = 0
config.language = de

[globalVar = GP:L = 2]
config.sys_language_uid = 2
config.sys_language_mode = strict
config.language = en

[globalVar = GP:L = 3]
config.sys_language_uid = 3
config.sys_language_mode = content_fallback;2
config.language = en

[globalVar = GP:L = 5]
config.sys_language_uid = 5
config.sys_language_mode = content_fallback;3,2
config.language = en

dont work for TYPO3 8 LTS !!! :/
only fix for TYPO3 9 ?

Actions #11

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF