[BUGFIX] Regression in language handling
authorNils Seinschedt <n.seinschedt@neusta.de>
Mon, 16 Jan 2012 18:09:46 +0000 (19:09 +0100)
committerXavier Perseguers <xavier@typo3.org>
Sun, 22 Jan 2012 21:45:06 +0000 (22:45 +0100)
commita0da123da38d6b1e41598947eea2dc5fec834762
tree105f4df795f6c014b638511d2a6ac33d8e4db043
parentf4b46a10cec1a1b99b30d1a45c03a53ceeb1feb9
[BUGFIX] Regression in language handling

If you request a translated string in a
language where no translation is available
you used to get the default language
labels in the [target] array attribute of
the LOCAL_LANG array for that language.
After the fix of #32573 you only get the
[source] element filled. Which breaks
extensions (like extbase/fluid) that rely on
always having the [target] attribute filled.

Change-Id: I750cd3a7385ed0ff0449f0478a1170251abd41f8
Resolves: #33227
Releases: 4.6, 4.7
Reviewed-on: http://review.typo3.org/8611
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
t3lib/l10n/parser/class.t3lib_l10n_parser_llxml.php
tests/t3lib/l10n/parser/class.t3lib_l10n_parser_llxmlTest.php
tests/t3lib/l10n/parser/fixtures/locallangOnlyDefaultLanguage.xml [new file with mode: 0644]