Project

General

Profile

Actions

Bug #21279

closed

Improve locallangXMLOverride feature

Added by Steffen Gebert about 15 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2009-10-15
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

12244.diff (1.28 KB) 12244.diff Administrator Admin, 2009-10-15 16:34
T3X_langtest2-0_0_0-z-200910151625.t3x (1.38 KB) T3X_langtest2-0_0_0-z-200910151625.t3x Administrator Admin, 2009-10-15 16:34
LLoverride.xml (327 Bytes) LLoverride.xml Administrator Admin, 2009-10-15 16:35
12244_v2.diff (2.98 KB) 12244_v2.diff Administrator Admin, 2009-10-30 17:17
T3X_langtest2-0_1_0-z-200910301718.t3x (1.38 KB) T3X_langtest2-0_1_0-z-200910301718.t3x Administrator Admin, 2009-10-30 17:18
Actions #1

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';
Actions #2

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';
Actions

Also available in: Atom PDF