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

2011-02-14 Thread Tomas Mrozek
Thanks Jigal and Andreas!
Your solution works like a charm!

Tomas Mrozek
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


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

2011-02-14 Thread Andreas Kiessling

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
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


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

2011-02-13 Thread Andreas Kiessling

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
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


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

2011-02-11 Thread Tomas Mrozek
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:

1. Modify labels using llxmltranslate. PROBLEM: it doesn't seem to be
possible to made a change for the default language by saving into an
external file (located in typo3conf/l10n/). That seems to be possible
only when editing other languages.

2. Modify labels by setting TCEFORM in PageTS config, e.g.
TCEFORM.pages.title.label.default = New Label. PROBLEM: this doesn't
work in the List module.

3. Modify TCA by editing typo3conf/extTables.php. PROBLEM(s): Apparently
it's not possible to change labels this way (I believe it was possible
in TYPO3 4.4.x), though other configuration can be modified just fine.
Also, it wouldn't be possible to make the change on language basis,
basically only setting one label for all the languages.

Does anyone have a tip on how to do it?

Thanks in advance for any suggestions!

Tomas Mrozek
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


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

2011-02-11 Thread 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

--
Kind regards / met vriendelijke groet,

Jigal van Hemert
skype:jigal.van.hemert
msn: ji...@xs4all.nl
http://twitter.com/jigalvh
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english