diff --git a/Classes/Controller/BackendController.php b/Classes/Controller/BackendController.php index ed2080d7bc17a7e9f03e5299c58d45cbd507155f..f379f2cc2d5fe9ca506e003d2b27f6550b596765 100644 --- a/Classes/Controller/BackendController.php +++ b/Classes/Controller/BackendController.php @@ -219,12 +219,18 @@ class BackendController extends ActionController { /** @var IconFactory $iconFactory */ $iconFactory = GeneralUtility::makeInstance(IconFactory::class); + if (version_compare(VersionNumberUtility::getCurrentTypo3Version(), '9.0.0', '<')) { + $locallangPath = 'LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:'; + } else { + $locallangPath = 'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:'; + } + // Refresh $refreshButton = $buttonBar->makeLinkButton() ->setHref(GeneralUtility::getIndpEnv('REQUEST_URI')) ->setTitle( LocalizationUtility::translate( - 'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.reload' + $locallangPath . 'labels.reload' ) ) ->setIcon($iconFactory->getIcon('actions-edit-undo', Icon::SIZE_SMALL)); diff --git a/Resources/Private/Layouts/Backend.html b/Resources/Private/Layouts/Backend.html index f7ba56b6bd7cff88ca9da8de2dab905416eb49e6..64e0cc27efc6450bd9a8ece23576cc25f4975990 100644 --- a/Resources/Private/Layouts/Backend.html +++ b/Resources/Private/Layouts/Backend.html @@ -19,7 +19,16 @@ </f:for> </div> <div class="module-docheader-bar-column-right"> - <span class="typo3-docheader-pagePath"><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.path" />: <f:format.raw>{docHeader.metaInformation.path}</f:format.raw></span> + <span class="typo3-docheader-pagePath"> + <f:if condition="{typo3Version} < 9000000"> + <f:then> + <f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.path" />: <f:format.raw>{docHeader.metaInformation.path}</f:format.raw> + </f:then> + <f:else> + <f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.path" />: <f:format.raw>{docHeader.metaInformation.path}</f:format.raw> + </f:else> + </f:if> + </span> <f:format.raw>{docHeader.metaInformation.recordInformation}</f:format.raw> </div> </div>