Bug #87712
closedstdWrap.lang does not use Site Handling
100%
Description
If you do
10 = TEXT
10.value = English
10.lang.de = German
this does not work, as this still relies on ugly TypoScript settings.
Updated by Gerrit Code Review almost 6 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/59698
Updated by Gerrit Code Review almost 6 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/59698
Updated by Gerrit Code Review almost 6 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/59698
Updated by Sven Juergens almost 6 years ago
Hi Benni,
your Patch ist not working with this example:
10 = TEXT
10.value = german
10.lang.en = english
In your patch you use
$currentLanguageCode = $siteLanguage->getTypo3Language();
but for "en" this code give back "default"
maybe you can use
"$siteLanguage->getTwoLetterIsoCode()"
?
Best Regards
Sven
Updated by Benni Mack almost 6 years ago
hey Sven,
good question. Before, this TypoScript option was set to config.language = default (= loading XLF files with "default" language), so config.language = en was wrong actually as "en" never existed, so it "fell back" to default.
Updated by Benni Mack almost 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset b898fc08404b942ea10fbf30b094241e3cd7dd51.
Updated by Gerrit Code Review almost 6 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/59704
Updated by Benni Mack almost 6 years ago
- Status changed from Under Review to Resolved
Applied in changeset 91898b9df13dc23fb8f52f75475cc51c8ba315cb.
Updated by Christoph Lehmann over 4 years ago
- Related to Bug #91721: stdWrap.lang does not support fallbacks of custom languages added