Skip to content
Snippets Groups Projects
Commit 9187c52e authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Make compatibility to 8LTS on locallang paths

parent 08134486
No related branches found
No related tags found
2 merge requests!13Feature remove sg news ajax plugin,!8Feature upgrade to9 lts
...@@ -219,12 +219,18 @@ class BackendController extends ActionController { ...@@ -219,12 +219,18 @@ class BackendController extends ActionController {
/** @var IconFactory $iconFactory */ /** @var IconFactory $iconFactory */
$iconFactory = GeneralUtility::makeInstance(IconFactory::class); $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 // Refresh
$refreshButton = $buttonBar->makeLinkButton() $refreshButton = $buttonBar->makeLinkButton()
->setHref(GeneralUtility::getIndpEnv('REQUEST_URI')) ->setHref(GeneralUtility::getIndpEnv('REQUEST_URI'))
->setTitle( ->setTitle(
LocalizationUtility::translate( 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)); ->setIcon($iconFactory->getIcon('actions-edit-undo', Icon::SIZE_SMALL));
......
...@@ -19,7 +19,16 @@ ...@@ -19,7 +19,16 @@
</f:for> </f:for>
</div> </div>
<div class="module-docheader-bar-column-right"> <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> <f:format.raw>{docHeader.metaInformation.recordInformation}</f:format.raw>
</div> </div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment