[TYPO3-english] TYPO3 4.5 - modification of default core labels

Andreas Kiessling kiessling at pluspol.info
Sun Feb 13 22:18:36 CET 2011


Hi,

Am 11.02.11 23:18, schrieb Jigal van Hemert:
> Hi,
>
> On 11-2-2011 16:54, Tomas Mrozek wrote:
>> I would like to modify some default core labels, mainly of the "pages"
>> table, and I'm looking for some clean way of doing it. The following
>> already came to my mind and didn't seem appropriate:
>
> http://typo3.org/documentation/document-library/core-documentation/doc_core_inside/4.2.0/view/2/8/#id4218935
>
>
> or short url: http://goo.gl/GpLAu
>

unfortunately, doc_core_inside is a bit outdated here (4.2).
-> 
$TYPO3_CONF_VARS['BE']['XLLfile']['EXT:lang/locallang_core.php']='typo3conf/llor_test.php';

XLLfile is deprecated since 4.3 and it should read:

$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:lang/locallang_tca.xml'][] 
= 'PATH_TO_YOUR_XML_FILE/locallang_override_tca.xml';

Important: "EXT:lang/locallang_tca.xml" must be the string how the file 
is referenced in TCA, so look that up in the configuration module.

-> Create a locallang.xml file with the usual structure and put that 
line to your localconf.php or an ext_localconf.php


If you want to override labels in 4.3 or 4.4, please be aware of 
http://bugs.typo3.org/bug_view_advanced_page.php?bug_id=15942
Though the labels are stored in xml files, they were (some still are) 
referenced as php files.
So you probably have to add:
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:lang/locallang_tca.php'][] 
= 'PATH_TO_YOUR_XML_FILE/locallang_override_tca.xml';

HTH,
Andreas


More information about the TYPO3-english mailing list