diff --git a/typo3/sysext/backend/Classes/Controller/ElementBrowserController.php b/typo3/sysext/backend/Classes/Controller/ElementBrowserController.php index 472915d7f542418f8325933efb73bbeeb1b84309..3854cd00381345d132aeb0ba5efb1c0fa4e911ac 100644 --- a/typo3/sysext/backend/Classes/Controller/ElementBrowserController.php +++ b/typo3/sysext/backend/Classes/Controller/ElementBrowserController.php @@ -23,7 +23,6 @@ use TYPO3\CMS\Backend\Attribute\Controller; use TYPO3\CMS\Backend\ElementBrowser\ElementBrowserRegistry; use TYPO3\CMS\Core\Authentication\BackendUserAuthentication; use TYPO3\CMS\Core\Http\HtmlResponse; -use TYPO3\CMS\Core\Localization\LanguageService; /** * Script class for the Element Browser window. @@ -56,7 +55,6 @@ class ElementBrowserController */ public function mainAction(ServerRequestInterface $request): ResponseInterface { - $this->getLanguageService()->includeLLFile('EXT:backend/Resources/Private/Language/locallang_browse_links.xlf'); $this->mode = $request->getQueryParams()['mode'] ?? $request->getQueryParams()['mode'] ?? ''; return new HtmlResponse($this->main($request)); } @@ -81,11 +79,6 @@ class ElementBrowserController return $browser->render(); } - protected function getLanguageService(): LanguageService - { - return $GLOBALS['LANG']; - } - protected function getBackendUser(): BackendUserAuthentication { return $GLOBALS['BE_USER']; diff --git a/typo3/sysext/filelist/Classes/ElementBrowser/FileBrowser.php b/typo3/sysext/filelist/Classes/ElementBrowser/FileBrowser.php index 459406906c80f2ddff3db0f095f0072379f711ce..783c151956c18e6d45bafc6e43e611a1ed1ea19c 100644 --- a/typo3/sysext/filelist/Classes/ElementBrowser/FileBrowser.php +++ b/typo3/sysext/filelist/Classes/ElementBrowser/FileBrowser.php @@ -93,9 +93,9 @@ class FileBrowser extends AbstractResourceBrowser $markup[] = ' <div class="col-auto">'; $markup[] = ' <div class="hidden t3js-multi-record-selection-actions">'; $markup[] = ' <strong>' . htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.selection')) . '</strong>'; - $markup[] = ' <button type="button" class="btn btn-default btn-sm" data-multi-record-selection-action="import" title="' . htmlspecialchars($this->getLanguageService()->getLL('importSelection')) . '">'; + $markup[] = ' <button type="button" class="btn btn-default btn-sm" data-multi-record-selection-action="import" title="' . htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:backend/Resources/Private/Language/locallang_browse_links.xlf:importSelection')) . '">'; $markup[] = ' ' . $this->iconFactory->getIcon('actions-document-import-t3d', Icon::SIZE_SMALL); - $markup[] = ' ' . htmlspecialchars($this->getLanguageService()->getLL('importSelection')); + $markup[] = ' ' . htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:backend/Resources/Private/Language/locallang_browse_links.xlf:importSelection')); $markup[] = ' </button>'; $markup[] = ' </div>'; $markup[] = ' </div>'; diff --git a/typo3/sysext/filelist/Classes/ElementBrowser/FolderBrowser.php b/typo3/sysext/filelist/Classes/ElementBrowser/FolderBrowser.php index 642b9d3c96e118bc0719b0c34488696cd322427e..faef6896101f11aab0f133bfc74d2963652b4399 100644 --- a/typo3/sysext/filelist/Classes/ElementBrowser/FolderBrowser.php +++ b/typo3/sysext/filelist/Classes/ElementBrowser/FolderBrowser.php @@ -64,9 +64,9 @@ class FolderBrowser extends AbstractResourceBrowser $markup[] = ' <div class="col-auto">'; $markup[] = ' <div class="hidden t3js-multi-record-selection-actions">'; $markup[] = ' <strong>' . htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.selection')) . '</strong>'; - $markup[] = ' <button type="button" class="btn btn-default btn-sm" data-multi-record-selection-action="import" title="' . htmlspecialchars($this->getLanguageService()->getLL('importSelection')) . '">'; + $markup[] = ' <button type="button" class="btn btn-default btn-sm" data-multi-record-selection-action="import" title="' . htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:backend/Resources/Private/Language/locallang_browse_links.xlf:importSelection')) . '">'; $markup[] = ' ' . $this->iconFactory->getIcon('actions-document-import-t3d', Icon::SIZE_SMALL); - $markup[] = ' ' . htmlspecialchars($this->getLanguageService()->getLL('importSelection')); + $markup[] = ' ' . htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:backend/Resources/Private/Language/locallang_browse_links.xlf:importSelection')); $markup[] = ' </button>'; $markup[] = ' </div>'; $markup[] = ' </div>';