[TYPO3-core] RFC #12244: Improve locallangXMLOverride feature
Steffen Gebert
steffen at steffen-gebert.de
Thu Oct 15 16:41:13 CEST 2009
Hi,
this is a SVN patch request.
Type: Feature improvement (of a new 4.3 feature)
Bugtracker references:
http://bugs.typo3.org/view.php?id=12244
Branches: trunk
Problem:
#11825 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.
Solution
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) by looping over
the array.
Note:
This is the same principle like XCLASS (only one) vs. Hooks (multiple),
where first is "bad", second is better.
* 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';
If you place it to localconf.php, extension would "win", as it's loaded
afterwards. So it's important to put this into extTables.php.
Hope you are happy and share my opinion that this new feature mustn't be
as unflexible as the old one (regarding Backend label overriding).
Thanks
STeffen
More information about the TYPO3-team-core
mailing list