[BUGFIX] Add missing "Folders" label in ElementBrowser 22/36122/2
authorFrans Saris <franssaris@gmail.com>
Sun, 11 Jan 2015 19:29:33 +0000 (20:29 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 19 Jan 2015 17:51:18 +0000 (18:51 +0100)
Resolves: #64241
Releases: master, 6.2
Change-Id: If55b4e05ccd697a973e938b50f5cfd2f32a5d5b7
Reviewed-on: http://review.typo3.org/36122
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/lang/locallang_browse_links.xlf
typo3/sysext/recordlist/Classes/Browser/ElementBrowser.php
typo3/sysext/rtehtmlarea/mod3/locallang.xlf

index 488256e..fa48176 100644 (file)
@@ -39,6 +39,9 @@
                        <trans-unit id="files" xml:space="preserve">
                                <source>Files</source>
                        </trans-unit>
+                       <trans-unit id="folders" xml:space="preserve">
+                               <source>Folders</source>
+                       </trans-unit>
                        <trans-unit id="target" xml:space="preserve">
                                <source>Target</source>
                        </trans-unit>
index e499828..c379d49 100644 (file)
@@ -1761,8 +1761,12 @@ class ElementBrowser {
                $out = '';
                $renderFolders = $this->act === 'folder';
                if ($folder->checkActionPermission('read')) {
-                       // Create header for file listing:
-                       $out .= $this->barheader($GLOBALS['LANG']->getLL('files') . ':');
+                       // Create header for file/folder listing:
+                       if ($renderFolders) {
+                               $out = $this->barheader($GLOBALS['LANG']->getLL('folders') . ':');
+                       } else {
+                               $out = $this->barheader($GLOBALS['LANG']->getLL('files') . ':');
+                       }
                        // Prepare current path value for comparison (showing red arrow)
                        $currentIdentifier = '';
                        if ($this->curUrlInfo['value']) {
index 2ae622f..ffc196d 100644 (file)
@@ -36,6 +36,9 @@
                        <trans-unit id="files" xml:space="preserve">
                                <source>Files</source>
                        </trans-unit>
+                       <trans-unit id="folders" xml:space="preserve">
+                               <source>Folders</source>
+                       </trans-unit>
                        <trans-unit id="target" xml:space="preserve">
                                <source>Target</source>
                        </trans-unit>