Bug #47996
closedIssue with locallangXMLOverride and XML-localization files
0%
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
Updated by Mathias Schreiber almost 10 years ago
- Target version set to 7.2 (Frontend)
- Is Regression set to No
Updated by Benni Mack over 9 years ago
- Target version changed from 7.2 (Frontend) to 7.4 (Backend)
Updated by Susanne Moog about 9 years ago
- Target version changed from 7.4 (Backend) to 7.5
Updated by Benni Mack about 9 years ago
- Target version changed from 7.5 to 7 LTS
Updated by Mathias Schreiber almost 9 years ago
- Target version changed from 7 LTS to 8 LTS
Updated by Benni Mack over 7 years ago
- Status changed from New to Needs Feedback
- Target version changed from 8 LTS to Candidate for patchlevel
Can you please test if this still happens with v7 or v8?
Updated by Alexander Opitz about 7 years ago
- Status changed from Needs Feedback to Closed
- Target version deleted (
Candidate for patchlevel)
No feedback within the last 90 days => closing this issue.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.