diff --git a/typo3/sysext/core/Resources/Private/Language/locallang_core.xlf b/typo3/sysext/core/Resources/Private/Language/locallang_core.xlf index 4e3f689c9bf4fd697e49c712a439b8b3b2e4bdb2..69014d11a90d26f479afe83ed96d72670a70baa3 100644 --- a/typo3/sysext/core/Resources/Private/Language/locallang_core.xlf +++ b/typo3/sysext/core/Resources/Private/Language/locallang_core.xlf @@ -1155,6 +1155,9 @@ Do you want to refresh it now?</source> <trans-unit id="cm.select" resname="cm.select"> <source>Select</source> </trans-unit> + <trans-unit id="cm.selectFile" resname="cm.selectFile"> + <source>Select %s</source> + </trans-unit> <trans-unit id="cm.deselect" resname="cm.deselect"> <source>Deselect</source> </trans-unit> diff --git a/typo3/sysext/filelist/Classes/FileList.php b/typo3/sysext/filelist/Classes/FileList.php index 07e988ef3f13d4389fd3f00b351b935d8baca595..dcb7c30712d5e2add5dcebc62e4f7883e992436b 100644 --- a/typo3/sysext/filelist/Classes/FileList.php +++ b/typo3/sysext/filelist/Classes/FileList.php @@ -26,7 +26,6 @@ use TYPO3\CMS\Backend\Template\Components\Buttons\ButtonInterface; use TYPO3\CMS\Backend\Template\Components\Buttons\DropDown\DropDownItem; use TYPO3\CMS\Backend\Template\Components\Buttons\DropDownButton; use TYPO3\CMS\Backend\Template\Components\Buttons\GenericButton; -use TYPO3\CMS\Backend\Template\Components\Buttons\InputButton; use TYPO3\CMS\Backend\Template\Components\Buttons\LinkButton; use TYPO3\CMS\Backend\Utility\BackendUtility; use TYPO3\CMS\Core\Authentication\BackendUserAuthentication; @@ -970,10 +969,18 @@ class FileList return null; } - $button = GeneralUtility::makeInstance(InputButton::class); - $button->setTitle($resourceView->getName()); + $title = sprintf( + $this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.selectFile'), + $resourceView->getName(), + ); + $button = GeneralUtility::makeInstance(GenericButton::class); + $button->setTitle($title); + $button->setAttributes([ + 'type' => 'button', + 'data-filelist-action' => 'select', + 'aria-label' => $title, + ]); $button->setIcon($this->iconFactory->getIcon('actions-plus', IconSize::SMALL)); - $button->setDataAttributes(['filelist-action' => 'select']); return $button; }