Project

General

Profile

Actions

Bug #23697

closed

locallangXMLOverride should not distinguish between paths ending with php and xml (like readLLfile does)

Added by Andreas Kießling about 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-10-09
Due date:
% Done:

0%

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

Description

With locallangXMLOverride you are able to override any label. A lot of backend labels are still configured like this:

'title' => 'LLL:EXT:lang/locallang_tca.php:pages',

To override such a label, you have to use
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:lang/locallang_tca.php'][] = 'PATH_TO_MY_XML';
whereas the label is stored in an locallang_tca.xml file.

readLLfile removes the file extension when it is called with a filepath, checks if there is a xml file and uses that one. If there is no xml, it checks for a php file.

When you use locallangXMLOverride however, you need to set the filepath not to the actual path of the xml file, but to the path with which readLLfile is called. This is inconsistent and so you have to include two override statements to make sure to catch all labels.

Solution: check if there are overrides set for php and xml paths

Note: patch is for current trunk, but applies to 4.4 with some offset

(issue imported from #M15942)


Files

15942.patch (1.35 KB) 15942.patch Administrator Admin, 2010-10-09 18:47
15942_v2.patch (1.34 KB) 15942_v2.patch Administrator Admin, 2010-10-11 20:55

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #20955: Override FE labels with XML filesClosedChristian Kuhn2009-08-30

Actions
Actions

Also available in: Atom PDF