[BUGFIX] Regression in language handling
authorNils Seinschedt <n.seinschedt@neusta.de>
Mon, 16 Jan 2012 18:09:46 +0000 (19:09 +0100)
committerSusanne Moog <typo3@susannemoog.de>
Fri, 20 Jan 2012 19:13:09 +0000 (20:13 +0100)
commit593a48e72df473d13d71f200dc24ffc50d9e63d9
tree56c677ab844a69f319ea2c83547236b59546af77
parent4b2eec1fe8b2aa91c6250f4a4de9c9a6587f5933
[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: I53edac0298e3415a7503259f25870e8dd92cddab
Resolves: #33227
Releases: 4.6, 4.7
Reviewed-on: http://review.typo3.org/7820
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
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]