Bug #88045
closedalternativeLanguageKeys is overridden as string
100%
Description
The function getLanguageKeys in the Extbase LocalizationUtility resolves the dependency of a language as "alternativeLanguageKeys". However, the empty array is overwritten by a string instead of supplementing it.
The following error is thrown in the frontend:
Argument 3 passed to TYPO3\CMS\Extbase\Utility\LocalizationUtility::initializeLocalization() must be of the type array, string given, called in [...]/typo3/sysext/extbase/Classes/Utility/LocalizationUtility.php on line 96
See typo3conf/sysext/extbase/Classes/Utility/LocalizationUtility.php:210
As example language you can use Brazilian Portuguese
Updated by Gerrit Code Review over 5 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/c/Packages/TYPO3.CMS/+/60356
Updated by Jan Delius over 5 years ago
- Subject changed from alternativeLanguageKeys is overriden as string to alternativeLanguageKeys is overridden as string
Updated by Jan Delius over 5 years ago
- Has duplicate Bug #88405: LocalizationUtility requires array for alternative Languages added
Updated by Gerrit Code Review over 5 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/c/Packages/TYPO3.CMS/+/60356
Updated by Gerrit Code Review over 5 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/c/Packages/TYPO3.CMS/+/60356
Updated by Georg Ringer over 5 years ago
How to reproduce:
- Create a sys_language record
PT
. - Create a site language and select
pt_BR
at the field Language Key for XLF Files - Create a new page and translate it to
PT
. - Open up your page template and insert something like
<f:translate key="LLL:EXT:about/Resources/Private/Language/Modules/about.xlf:mlang_labels_tablabel" />
- Open page in frontend and see the exception
- Apply patch and see translation in PT
Updated by Jan Delius over 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset e58f47f77855f8082ea19e4c0dd7aad1f02e08cb.
Updated by Gerrit Code Review over 5 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/c/Packages/TYPO3.CMS/+/61406
Updated by Georg Ringer over 5 years ago
- Status changed from Under Review to Resolved
Applied in changeset 7d0ed02e19b3b19ae6ed1a5615d0dbbf5090d8be.
Updated by Oliver Bartsch over 5 years ago
- Related to Task #88976: Add ReST file for Bugfix added
Updated by Benni Mack almost 5 years ago
- Status changed from Resolved to Closed