[BUGFIX] Numeric translation keys aren't translated right in XML files 15/17615/6
authorReinhard Führicht <rf@typoheads.at>
Mon, 21 Jan 2013 08:52:35 +0000 (09:52 +0100)
committerAndreas Wolf <andreas.wolf@typo3.org>
Sat, 9 Feb 2013 22:11:54 +0000 (23:11 +0100)
commit699f4a68ccbecaf2ec9aa22c290a225ddde1fee5
treef24e69ed7cfd807e6bb1c219eb4609b708d193f6
parent5fa08ba520a3ee2484ae67d50226c34d0c0fdf90
[BUGFIX] Numeric translation keys aren't translated right in XML files

When working with the "old" XML based translation files,
numeric keys aren't translated properly.
The reason is, that LocallangXmlParser uses array_merge to combine the
translation arrays of the default language and the current language.
array_merge renumbers numeric keys. Therefore, numeric key in
translation files result in wrong translations in Frontend.

Fixes: #44626
Releases: 6.0, 6.1
Change-Id: I8fdff385f681428b4cb5a3e994828a4a29305c98
Reviewed-on: https://review.typo3.org/17615
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
typo3/sysext/core/Classes/Localization/Parser/LocallangXmlParser.php
typo3/sysext/core/Tests/Unit/Localization/Parser/Fixtures/locallangNumericKeys.xml [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Localization/Parser/LocallangXmlParserTest.php