diff --git a/typo3/sysext/core/Resources/Private/Language/locallang_core.xlf b/typo3/sysext/core/Resources/Private/Language/locallang_core.xlf index a137291d7f63e9adf10e6ae6273ad09805e5f0bf..06d59a61dd79b717d01cd0975a36b2c3ab8396d0 100644 --- a/typo3/sysext/core/Resources/Private/Language/locallang_core.xlf +++ b/typo3/sysext/core/Resources/Private/Language/locallang_core.xlf @@ -993,6 +993,9 @@ Do you want to refresh it now?</source> <trans-unit id="cm.copy" resname="cm.copy"> <source>Copy</source> </trans-unit> + <trans-unit id="cm.copyrelease" resname="cm.copyrelease"> + <source>Copy release</source> + </trans-unit> <trans-unit id="cm.cut" resname="cm.cut"> <source>Cut</source> </trans-unit> diff --git a/typo3/sysext/filelist/Classes/FileList.php b/typo3/sysext/filelist/Classes/FileList.php index c408c1bceba17a5a1b919e9dd7e12db8380ae0c4..36c07e04697e8bf70b7a7260b7481299caa10488 100644 --- a/typo3/sysext/filelist/Classes/FileList.php +++ b/typo3/sysext/filelist/Classes/FileList.php @@ -915,15 +915,17 @@ class FileList // For normal clipboard, add copy/cut buttons: if ($this->clipObj->current === 'normal') { $isSel = $this->clipObj->isSelected('_FILE', $md5); - $copyTitle = htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.copy')); - $cutTitle = htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.cut')); + $copyTitle = $this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.copy'); + $cutTitle = $this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.cut'); $copyIcon = $this->iconFactory->getIcon('actions-edit-copy', Icon::SIZE_SMALL)->render(); $cutIcon = $this->iconFactory->getIcon('actions-edit-cut', Icon::SIZE_SMALL)->render(); if ($isSel === 'copy') { $copyIcon = $this->iconFactory->getIcon('actions-edit-copy-release', Icon::SIZE_SMALL)->render(); + $copyTitle = $this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.copyrelease'); } elseif ($isSel === 'cut') { $cutIcon = $this->iconFactory->getIcon('actions-edit-cut-release', Icon::SIZE_SMALL)->render(); + $cutTitle = $this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.cutrelease'); } if ($fileOrFolderObject->checkActionPermission('copy')) { @@ -931,7 +933,7 @@ class FileList $fullIdentifier, true, $isSel === 'copy' - )) . '" title="' . $copyTitle . '">' . $copyIcon . '</a>'; + )) . '" title="' . htmlspecialchars($copyTitle) . '">' . $copyIcon . '</a>'; } else { $cells[] = $this->spaceIcon; } @@ -941,7 +943,7 @@ class FileList $fullIdentifier, false, $isSel === 'cut' - )) . '" title="' . $cutTitle . '">' . $cutIcon . '</a>'; + )) . '" title="' . htmlspecialchars($cutTitle) . '">' . $cutIcon . '</a>'; } else { $cells[] = $this->spaceIcon; } diff --git a/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php b/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php index b5b2e631f4091d68142af8ee66f8779a0a047aa9..ae9ecdd72549766da9f99bf96922ce3ea78a470a 100644 --- a/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php +++ b/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php @@ -1838,12 +1838,16 @@ class DatabaseRecordList $cells['cut'] = $this->spaceIcon; } else { $copyIcon = $this->iconFactory->getIcon('actions-edit-copy', Icon::SIZE_SMALL); + $copyTitle = $this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.copy'); $cutIcon = $this->iconFactory->getIcon('actions-edit-cut', Icon::SIZE_SMALL); + $cutTitle = $this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.cut'); if ($isSel === 'copy') { $copyIcon = $this->iconFactory->getIcon('actions-edit-copy-release', Icon::SIZE_SMALL); + $copyTitle = $this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.copyrelease'); } elseif ($isSel === 'cut') { $cutIcon = $this->iconFactory->getIcon('actions-edit-cut-release', Icon::SIZE_SMALL); + $cutTitle = $this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.cutrelease'); } $cells['copy'] = '<a class="btn btn-default"' @@ -1854,8 +1858,8 @@ class DatabaseRecordList $isSel === 'copy', ['returnUrl' => $this->listURL()] )) . '"' - . ' title="' . htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.copy')) . '"' - . ' aria-label="' . htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.copy')) . '">' + . ' title="' . htmlspecialchars($copyTitle) . '"' + . ' aria-label="' . htmlspecialchars($copyTitle) . '">' . $copyIcon->render() . '</a>'; @@ -1876,8 +1880,8 @@ class DatabaseRecordList $isSel === 'cut', ['returnUrl' => $this->listURL()] )) . '"' - . ' title="' . htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.cut')) . '"' - . ' aria-label="' . htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.cut')) . '">' + . ' title="' . htmlspecialchars($cutTitle) . '"' + . ' aria-label="' . htmlspecialchars($cutTitle) . '">' . $cutIcon->render() . '</a>'; } else {