#47996Issue with locallangXMLOverride and XML-localization files
Description
If you use the locallangXMLOverride mechanism with xml-localization files, locallangXMLOverride fails with the fallback to default language if the needed language is not available.
Example:
original_translations.xml:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<T3locallang>
<meta type="array">
<type>database</type>
</meta>
<data type="array">
<languageKey index="default" type="array">
<label index="label1">English</label>
</languageKey>
<languageKey index="de" type="array">
<label index="label1">German</label>
</languageKey>
</data>
</T3locallang>
override_translations.xml (no default-tree available!!!):
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<T3locallang>
<meta type="array">
<type>database</type>
</meta>
<data type="array">
<languageKey index="de" type="array">
<label index="label1">German OVERRIDE</label>
</languageKey>
</data>
</T3locallang>
Inside any localconf-file you register the override_translations.xml:
$TYPO3_CONF_VARS['SYS']['locallangXMLOverride']['fileadmin/original_translations'][] = 'fileadmin/override_translations.xml';
To test the output i use TS:
page.10 = TEXT page.10.data = LLL:fileadmin/original_translations:label1
Output with L=0 (config.language = en):
German OVERRIDE
Output with L=1 (config.language = de):
German OVERRIDE
The problem is the parsing-process of the locallangXMLOverride-file in class t3lib_l10n_parser_Llxml.
Tested with TYPO3 4.7.11
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.