[BUGFIX] Add label for title of "Edit metadata" link 96/31696/2
authorMarkus Klein <klein.t3@reelworx.at>
Sun, 20 Jul 2014 15:28:43 +0000 (17:28 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Thu, 24 Jul 2014 17:51:28 +0000 (19:51 +0200)
Currently the title of the "Edit metadata" link in filelist is
hardcoded. Add a label to make it translatable.

Resolves: #60410
Releases: 6.3, 6.2
Change-Id: Id618dfcd96ae3b4558cf9d529e0cc7c3ae220f9a
Reviewed-on: http://review.typo3.org/31696
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/filelist/Classes/FileList.php
typo3/sysext/lang/locallang_core.xlf

index f6ae7ea..f5f66ae 100644 (file)
@@ -817,7 +817,9 @@ class FileList extends \TYPO3\CMS\Backend\RecordList\AbstractRecordList {
                                        'sys_file_metadata' => array($metaData['uid'] => 'edit')
                                );
                                $editOnClick = BackendUtility::editOnClick(GeneralUtility::implodeArrayForUrl('edit', $data), $GLOBALS['BACK_PATH'], $this->listUrl());
-                               $cells['editmetadata'] = '<a href="#" onclick="' . $editOnClick . '" title="Edit Metadata of this file">' . IconUtility::getSpriteIcon('actions-document-open') . '</a>';
+                               $title = htmlspecialchars($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:cm.editMetadata'));
+                               $cells['editmetadata'] = '<a href="#" onclick="' . $editOnClick . '" title="' . $title . '">'
+                                       . IconUtility::getSpriteIcon('actions-document-open') . '</a>';
                        } else {
                                $cells['editmetadata'] = IconUtility::getSpriteIcon('empty-empty');
                        }
index d45aed0..b829008 100644 (file)
@@ -778,6 +778,9 @@ Would you like to save now in order to refresh the display?</source>
                        <trans-unit id="cm.editcontent" xml:space="preserve">
                                <source>Edit content</source>
                        </trans-unit>
+                       <trans-unit id="cm.editMetadata" xml:space="preserve">
+                               <source>Edit Metadata of this file</source>
+                       </trans-unit>
                        <trans-unit id="cm.new" xml:space="preserve">
                                <source>New</source>
                        </trans-unit>