diff --git a/typo3/sysext/adminpanel/Classes/Modules/PreviewModule.php b/typo3/sysext/adminpanel/Classes/Modules/PreviewModule.php index 74f33d557b4b..b22850aef03b 100644 --- a/typo3/sysext/adminpanel/Classes/Modules/PreviewModule.php +++ b/typo3/sysext/adminpanel/Classes/Modules/PreviewModule.php @@ -89,7 +89,8 @@ public function getIdentifier(): string */ public function getLabel(): string { - return $this->extGetLL('preview'); + $locallangFileAndPath = 'LLL:' . $this->extResources . '/Language/locallang_preview.xlf:module.label'; + return $this->getLanguageService()->sL($locallangFileAndPath); } public function initializeModule(): void