Bug #44626
closedNumeric translation keys aren't translated right in XML files
100%
Description
When working with the "old" XML based translation files, numeric keys aren't translated properly.
Example:
<languageKey index="default" type="array"> <label index="1">1</label> <label index="2">2</label> <label index="3">3</label> <label index="11">11</label> <label index="22">22</label> <label index="33">33</label> </languageKey>
Output:
2 3 11 33
I investigated this issue and found out that "LocallangXmlParser" in typo3/sysext/core/Classes/Localization/Parser uses array_merge to combine the translation arrays of the default language and the current language.
Problem¶
array_merge renumbers numeric keys. Therefore, numeric key in translation files result in wrong translations in Frontend.
Updated by Gerrit Code Review almost 12 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/17615
Updated by Gerrit Code Review almost 12 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/17615
Updated by Gerrit Code Review almost 12 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/17615
Updated by Gerrit Code Review almost 12 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/17615
Updated by Gerrit Code Review almost 12 years ago
Patch set 5 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/17615
Updated by Reinhard Führicht almost 12 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 699f4a68ccbecaf2ec9aa22c290a225ddde1fee5.
Updated by Gerrit Code Review almost 12 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/18211
Updated by Gerrit Code Review over 11 years ago
Patch set 1 for branch master_new has been pushed to the review server.
It is available at https://review.typo3.org/18637
Updated by Christian Kuhn over 11 years ago
- Status changed from Under Review to Resolved
Updated by Oliver Hader over 11 years ago
- Target version changed from 6.1.0 to 6.1.0-alpha1
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed