Project

General

Profile

Actions

Bug #46525

closed

locallangXMLOverride not working with all expected paths

Added by Francois Suter about 11 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Category:
Localization
Target version:
-
Start date:
2013-03-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.7
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

The locallangXMLOverride makes it possible to override any translation in TYPO3. Having worked on real case, I found out that it worked only if the localization file was located inside an extension.

The following works:

$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['fr']['EXT:lang/locallang_general.xlf'][] = 'EXT:custom_config/Resources/Private/Language/fr.locallang_general_override.xlf';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['fr']['EXT:lang/locallang_general.xlf'][] = PATH_typo3conf . 'custom_config/Resources/Private/Language/fr.locallang_general_override.xlf';

but that doesn't:

$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['fr']['EXT:lang/locallang_general.xlf'][] = 'fileadmin/custom/fr.locallang_general_override.xlf';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['fr']['EXT:lang/locallang_general.xlf'][] = PATH_typo3conf . 'l10n/custom/fr.locallang_general_override.xlf';

I couldn't track where this goes wrong. The l10n code is somewhat convoluted, calling itself recursively (with flags to prevent that), so I gave up after a while.

Actions

Also available in: Atom PDF