[BUGFIX] tcaTree Interface is not localized
authorSteffen Ritter <info@rs-websystems.de>
Wed, 2 Mar 2011 12:46:27 +0000 (13:46 +0100)
committerJigal van Hemert <jigal@xs4all.nl>
Fri, 8 Apr 2011 04:59:12 +0000 (06:59 +0200)
The TCA tree introduced to 4.5 is not localized by now.
Change it

Change-Id: Ifb713ca7194c1ac0e37f939b4af267fad4acb107
Resolves: #M17818
Reviewed-on: http://review.typo3.org/971
Reviewed-by: Björn Pedersen
Reviewed-by: Steffen Kamper
Tested-by: Steffen Kamper
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
t3lib/js/extjs/tree/tree.js
t3lib/tceforms/class.t3lib_tceforms_tree.php
typo3/sysext/lang/locallang_csh_corebe.xml

index 4508ae3..b19cfdb 100644 (file)
@@ -51,7 +51,7 @@ TYPO3.Components.Tree.StandardTree = function(config) {
                        clearOnLoad: false
                }),
                root: new Ext.tree.AsyncTreeNode({
-                       text: 'TYPO3 StandardTree',
+                       text: TYPO3.lang.tcatree,
                        id: 'root',
                        expanded: true,
                        children: TYPO3.Components.Tree.StandardTreeItemData[config.id]
@@ -117,7 +117,7 @@ TYPO3.Components.Tree.Toolbar = function(items, scope) {
                        menu: {
                                items: [
                                        {
-                                               text: 'starts with',
+                                               text: TYPO3.lang['tcatree.filter.startsWith'],
                                                checked: true,
                                                group: 'searchStartsWith',
                                                handler: function(item) {
@@ -127,7 +127,7 @@ TYPO3.Components.Tree.Toolbar = function(items, scope) {
                                                scope: scope
                                        },
                                        {
-                                               text: 'contains',
+                                               text: TYPO3.lang['tcatree.filter.contains'],
                                                checked: false,
                                                group: 'searchStartsWith',
                                                handler: function(item) {
@@ -141,7 +141,7 @@ TYPO3.Components.Tree.Toolbar = function(items, scope) {
                },
                new Ext.form.TextField({
                        width: 150,
-                       emptyText:'Find item',
+                       emptyText: TYPO3.lang['tcatree.findItem'],
                        enableKeyEvents: true,
                        itemId: 'filterText',
                        listeners:{
@@ -162,14 +162,14 @@ TYPO3.Components.Tree.Toolbar = function(items, scope) {
                '->',
                {
                        iconCls: 'icon-expand-all',
-                       tooltip: 'Expand All',
+                       tooltip: TYPO3.lang['tcatree.expandAll'],
                        handler: function() {
                                        this.root.expand(true);
                        },
                        scope: scope
                }, {
                        iconCls: 'icon-collapse-all',
-                       tooltip: 'Collapse All',
+                       tooltip: TYPO3.lang['tcatree.collapseAll'],
                        handler: function() {
                                this.root.collapse(true);
                        },
index 6443da1..c836a7b 100644 (file)
@@ -151,6 +151,7 @@ class t3lib_TCEforms_Tree {
                $pageRenderer = $GLOBALS['SOBE']->doc->getPageRenderer();
                $pageRenderer->loadExtJs();
                $pageRenderer->addJsFile('../t3lib/js/extjs/tree/tree.js');
+               $pageRenderer->addInlineLanguageLabelFile(t3lib_extMgm::extPath('lang') . 'locallang_csh_corebe.xml', 'tcatree');
                $pageRenderer->addExtOnReadyCode('
                        TYPO3.Components.Tree.StandardTreeItemData["' . $id . '"] = ' . $treeData . ';
                        var tree' . $id . ' = new TYPO3.Components.Tree.StandardTree({
@@ -211,4 +212,4 @@ if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLA
        include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['classes/t3lib/tceforms/class.t3lib_tceforms_tree.php']);
 }
 
-?>
\ No newline at end of file
+?>
index 003462f..d7855af 100755 (executable)
@@ -91,6 +91,12 @@ EXT:lang/cshimages/core_10.png</label>
                        <label index="filetree.image_descr">The Folder Tree of the &quot;fileadmin/&quot; folder. This is mounted by default for &quot;Admin&quot;-users. Other users will have to have a file mount configured for them first.
 Clicking the icon of a folder displays the context menu of the folder.
 If you click the folder title in the Folder Tree you will see the sub-module loaded in the right frame. Here it is the File &gt; Filelist module that will display files and folders inside. Clicking the icon of a file will display a context menu for the file.</label>
+                       <label index="tcatree.collapseAll">Collapse All</label>
+                       <label index="tcatree">TYPO3 TCA tree</label>
+                       <label index="tcatree.expandAll">Expand All</label>
+                       <label index="tcatree.findItem">Find Item</label>
+                       <label index="tcatree.filter.startsWith">starts with</label>
+                       <label index="tcatree.filter.contains">contains</label>
                        <label index="list_module.alttitle">The Web&gt;List module</label>
                        <label index="list_module.description">Listing records located on a page. From here you can copy/cut/paste records around in the system. You can edit records, access the change history of elements etc.</label>
                        <label index="list_module.details">The list module is like the file manager in an Operating System; it provides basic access to all &quot;elements&quot; available in the system. In TYPO3 almost all information is stored in the database and managed after the same principles internally. For instance Content Elements representing page content are database records just like backend users are. The Web&gt;List module allows us to create, modify and delete both kinds of records after the same principles.