Bug #21279
closedImprove locallangXMLOverride feature
0%
Description
#20955 introduced a new way to override LL-XML files.
Unfortunately it's as unflexible as the old XLLfile style, which was only usable for BE.
With both, it's only possible to register one (1) file, which overrides another.
Let's improve this new feature to let a LL file be overridden by several files (e.g. by several extensions and user-defined labels).
This is the same principle like XCLASS (only one) vs. Hooks (multiple), where first is "bad", second is better.
I set the severity to important as this is an API change. As long we do this before 4.3 release, it wouldn't break anything!
(issue imported from #M12244)
Files
Updated by Steffen Gebert about 15 years ago
How to test:
- Install the attached langtest2 extension.
It renames the logout button and the title of the shortcuts menu - Place the LLoverride.xml file in typo3conf/
- Add the following lines to typo3conf/extTables.php
$TYPO3_CONF_VARS['EXT']['locallangXMLOverride']['EXT:lang/locallang_core.php']['extTables.php'] = 'typo3conf/LLoverride.xml';
$TYPO3_CONF_VARS['EXT']['locallangXMLOverride']['EXT:lang/locallang_core.xml']['extTables.php'] = 'typo3conf/LLoverride.xml';
Updated by Steffen Gebert about 15 years ago
New patch - new place for the config: It's moved from $TYPO3_CONF_VARS['EXT']['locallangXMLOverride'] to $TYPO3_CONF_VARS['SYS]['XLLfile']
So last step is:- Add the following lines to typo3conf/extTables.php
$TYPO3_CONF_VARS['SYS']['XLLfile']['EXT:lang/locallang_core.php']['extTables.php'] = 'typo3conf/LLoverride.xml';
$TYPO3_CONF_VARS['SYS']['XLLfile]['EXT:lang/locallang_core.xml']['extTables.php'] = 'typo3conf/LLoverride.xml';