[TYPO3-english] TYPO3 4.5 - modification of default core labels
Andreas Kiessling
kiessling at pluspol.info
Mon Feb 14 17:38:17 CET 2011
Hi,
i just needed that function today to change some labels in a DAM backend
module, and IMHO the implementation for backend modules isn't very good...
So maybe someone will find this useful:
// for regular calls to the locallang file
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:dam/mod_cmd/locallang.xml'][]
=
'EXT:abc/Resources/Private/Language/locallang_override_dam_mod_cmd_locallang.xml';
// for the backend module
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride'][t3lib_extMgm::extPath('dam',
'mod_cmd/locallang.php')][] =
'EXT:abc/Resources/Private/Language/locallang_override_dam_mod_cmd_locallang.xml';
The backend module is extends t3lib_extobjbase which automatically
includes any locallang.php or locallang.xml file in the module
directory. But it always uses .php as extension and the full path in the
file system. Took me quite some time to figure that out and i think i
will file a bugreport for that, at least for the .php inclusion.
HTH,
Andreas
More information about the TYPO3-english
mailing list