[BUGFIX] tcaTree Interface is not localized
authorSteffen Ritter <info@rs-websystems.de>
Wed, 2 Mar 2011 12:46:27 +0000 (13:46 +0100)
committerSteffen Ritter <info@rs-websystems.de>
Tue, 8 Mar 2011 16:25:02 +0000 (17:25 +0100)
The TCA tree introduced to 4.5 is not localized by now.
Change it.

Change-Id: I4c360a3ef327c8268e92e4f701875e4a7cc6a394
Resolves: #M17818
Reviewed-on: http://review.typo3.org/970
Reviewed-by: Steffen Ritter <info@rs-websystems.de>
Tested-by: Steffen Ritter <info@rs-websystems.de>
t3lib/js/extjs/tree/tree.js
t3lib/tceforms/class.t3lib_tceforms_tree.php
typo3/sysext/lang/locallang_csh_corebe.xml

index 0180a36..6e45634 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 303e787..9668582 100644 (file)
@@ -148,6 +148,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({
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.