[BUGFIX] Add missing "Folders" label in ElementBrowser 57/35957/3
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:46:02 +0000 (18:46 +0100)
Resolves: #64241
Releases: master, 6.2
Change-Id: If55b4e05ccd697a973e938b50f5cfd2f32a5d5b7
Reviewed-on: http://review.typo3.org/35957
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
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 29c1f14..fa1cc88 100644 (file)
@@ -1817,8 +1817,12 @@ class ElementBrowser {
                        return '';
                }
                $renderFolders = $this->act === 'folder';
-               // 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>