Bug #86888
closedPseudoSiteFinder: All found languages have iso en
100%
Description
The PseudoSiteFinder aggregates all languages defined in sys_languages and builds from this an array in following form
$languageRecords[$uid] = [ 'languageId' => $uid, 'title' => $row['title'], 'iso' => $row['language_isocode'] ?? '', 'flag' => 'flags-' . $row['flag'], ];
The NullSite class takes this array and creates for every Language an instance of SiteLanguage and gives the per language array as $attributes to the constructor. But SiteLanguage handles following array form
$attributes[ 'title' => , 'navigationTitle' => , 'flag' => , 'typo3Language' => , 'iso-639-1' => , 'hreflang' => , 'direction' => , 'fallbackType' => , 'fallbacks' => , 'enabled' => , ];
Also hidden sys_languages are inside array, but the enabled field isn't set in the array.
Updated by Gerrit Code Review about 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/58874
Updated by Gerrit Code Review about 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/58874
Updated by Alexander Opitz about 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset d702b0918c930303d98a785a80b1e9ae475dddf3.