Bug #82794
closedconfig.sys_language_mode = fallback;3,2 always falls back to "0"
100%
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.
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
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
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
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
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
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
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
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
Updated by Benni Mack about 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 113943c6d0d29a51ad2d3b13b4850b001fde1829.
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 ?