DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

EXT: abz_eff_labels

Author:Kasper Skårhøj
Created:2002-11-01T00:32:00
Changed by:Sebastian Müller
Changed:2011-08-08T11:59:37.610000000
Author:Author Name
Email:your@email.com
Info 3:
Info 4:

Override Labels

Extension Key: abz_eff_labels

Copyright 2008-20011, Franz Ripfel, Sebastian Müller, <sebastian.mueller@elementare-teilchen.de>

This document is published under the Open Content License

available from http://www.opencontent.org/opl.shtml

The content of this document is related to TYPO3

- a GNU/GPL CMS/Framework available from www.typo3.com

Table of Contents

Override Labels 1

Introduction 1

What does it do? 1

Users manual 1

Introduction

What does it do?

This extension give you the working examples to override already existing labels of third party extensions and the Core. Adding new labels is also possible. There is no new fancy trick, just consequently used possibilities of TYPO3.

If you override existing labels in abz_eff_labels you can update the extensions or the core without worriying about loosing your label changes.

Mind:Nothing will happen just by installing the extension. You will have to uncomment and modify the examples to your needs. This extension is made to be adapted individually to every project.

Users manual

  • Download and install the extension.
  • Have a look into the files ext_localconf.php, locallang_db.php and ext_typoscript_setup.txt. There you follow the given examples and change whatever existing label you want to. If you want to change labels for the frontend, just add your TypoScript code into ext_typoscript_setup.txt. If changes are needed for the backend, find the correct locallang file (probably with a global search in files) and use the configuration options with $TYPO3_CONF_VARS['BE']['XLLfile'] like the examples you can see in ext_localconf.php.If you want, you can alternatively use Page TypoScript to modify labels for dropdowns modified in TCA.
  • Clear the cache and you should see your modified labels.

Frontend Labels

If you have any label in an frontend plugin you want to edit, do it in ext_typoscript_setup.txt. Just enter the plugin TypoScript path right to the label and insert the value you want.

For example the value of the more link in tt_news is by default [more]. If you want it without the [ ] enter

*plugin.tt_news ._LOCAL_LANG.default.more = more*

in ext_typoscript_setup.txt. There is the another more detailed example already there since you often want to edit labels in various languages.

Backend Labels

backend labels (core and former extensions)

If you want to change the value of a label in the backend you have to find out in which xml file your label is definied. If you know that, insert a line in our ext_localconf.php like

$TYPO3_CONF_VARS['SYS']['locallangXMLOverride']['EXT:lang/locallang_core.xml'][] ='EXT:abz_eff_labels/locallang_db.xml';

There you add the locallang_db.xml file of our abz_eff_labels to the overriding files for an already used translation file (here EXT:lang/locallang_core.xml). Now just add you label in locallang_db.xml and override its value. See the already existing examples.

Clear your cache and enjoy your changed labels =)

list elements labels

If you want to edit labels in list elements ie. page doktypes you can also define them via page Tsconfig. Just include the tsconfig_page.txt in ext_localconf.php and change your labels in abz_eff_labels/tsconfig_page.txt.

For more information take a view in the TSconfig dokumentation →TCEFORM →TCEFORM_confObj →altLabels,

http://typo3.org/documentation/document-library/core- documentation/doc_core_tsconfig/4.2.0/view/1/3/#id4155235

another way for labels of already installed extensions

If you want to edit backend labels from already installed extensions you can also define addLLrefForTCAdescr in ext_tables.php of our extensions. Example is existing. If you use this, you just have to know how the label is named and in which extension it is, there is no need for the full path of the xml file where this label is defined first.

backend.description

You know the descriptions and details of fields in the TYPO3 Backend? In previous versions it was the img-1 image. By hover or click on a field name, there will be a description and/or detailed informations displayed. If you want to edit them, you have to know how the field is named and in which table it is.

We prefer doing the overriding in an extra file so normal backend labels and backend descriptions are seperated. Since there can be a description for every table and every field, you may want different descriptions for title of page and title of tt_news. So it would be good using various files. E.g. locallang_pages_descriptions.xml and locallang_tt_news_descriptions.xml

Override the descriptions in this files like the example in locallang_pages_descriptions.xml and include it with addLLrefForTCAdescr in ext_tables.php of our extension. Example is existing.

Upgarde Introductionsfor TYPO3 4.5

If you are already using this extension in a project, you must not simply upgrade this extension using the extension manager. The reason therefore is that you may have inserted labels in the locallang files of this extension and if you upgrade, your changes are lost.

The best practice is downloading the new version extension, inserting your labels again, include the XML files in localconf.php and ext_tables.php again, and replace this extension with the old abz_eff_labels. Note that the former .php files are now TYPO3 language XML files and therefore must be inserted as XML tag.

img-2 EXT: abz_eff_labels - 2