From 708a5dc40fb3f9646058b731028732c2abcdc12b Mon Sep 17 00:00:00 2001 From: Georg Ringer <georg.ringer@gmail.com> Date: Mon, 11 Mar 2024 21:29:55 +0100 Subject: [PATCH] [TASK] Translate label in filelist module Resolves: #103362 Releases: main, 12.4 Change-Id: Ibbd242d886a9cedc3ec1ba055ec6887b6943bfa2 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83407 Tested-by: Guido Schmechel <guido.schmechel@brandung.de> Reviewed-by: Oliver Bartsch <bo@cedev.de> Tested-by: core-ci <typo3@b13.com> Reviewed-by: Guido Schmechel <guido.schmechel@brandung.de> Tested-by: Oliver Bartsch <bo@cedev.de> --- typo3/sysext/filelist/Classes/FileList.php | 2 +- typo3/sysext/filelist/Resources/Private/Language/locallang.xlf | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/typo3/sysext/filelist/Classes/FileList.php b/typo3/sysext/filelist/Classes/FileList.php index 96acf76d4f59..07e988ef3f13 100644 --- a/typo3/sysext/filelist/Classes/FileList.php +++ b/typo3/sysext/filelist/Classes/FileList.php @@ -1242,7 +1242,7 @@ class FileList } $dropdownButton = GeneralUtility::makeInstance(DropDownButton::class); - $dropdownButton->setLabel('Translations'); + $dropdownButton->setLabel($this->getLanguageService()->sL('LLL:EXT:filelist/Resources/Private/Language/locallang.xlf:translations')); $dropdownButton->setIcon($this->iconFactory->getIcon('actions-translate', IconSize::SMALL)); foreach ($dropdownItems as $dropdownItem) { $dropdownButton->addItem($dropdownItem); diff --git a/typo3/sysext/filelist/Resources/Private/Language/locallang.xlf b/typo3/sysext/filelist/Resources/Private/Language/locallang.xlf index 133bc63911dd..31e556f19939 100644 --- a/typo3/sysext/filelist/Resources/Private/Language/locallang.xlf +++ b/typo3/sysext/filelist/Resources/Private/Language/locallang.xlf @@ -120,6 +120,9 @@ <trans-unit id="actions.create_file" resname="actions.create_file"> <source>Create File</source> </trans-unit> + <trans-unit id="translations" resname="translations"> + <source>Translations</source> + </trans-unit> </body> </file> </xliff> -- GitLab