From 32d70c6e3a164e71e5bcec9e47150c8fb5e6aefb Mon Sep 17 00:00:00 2001 From: Georg Ringer <georg.ringer@gmail.com> Date: Tue, 16 Nov 2021 21:29:59 +0100 Subject: [PATCH] [BUGFIX] Use editors language in admin panel instead of site language The translations need to use the language of the current backend user and not the one of the current language of the site in the frontend. Resolves: #96004 Releases: master, 11.5, 10.4 Change-Id: Id409e759de4f0324835cc932f87719147b6e1b0f Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72196 Tested-by: core-ci <typo3@b13.com> Tested-by: Jochen <rothjochen@gmail.com> Tested-by: Sybille Peters <sypets@gmx.de> Tested-by: Benni Mack <benni@typo3.org> Tested-by: Georg Ringer <georg.ringer@gmail.com> Reviewed-by: Simon Schaufelberger <simonschaufi+typo3@gmail.com> Reviewed-by: Jochen <rothjochen@gmail.com> Reviewed-by: Benni Mack <benni@typo3.org> Reviewed-by: Georg Ringer <georg.ringer@gmail.com> --- .../Classes/Controller/MainController.php | 7 ++++++ .../Classes/ModuleApi/AbstractSubModule.php | 6 +++++ .../Classes/Modules/CacheModule.php | 1 + .../Classes/Modules/Debug/Events.php | 1 + .../adminpanel/Classes/Modules/Debug/Log.php | 2 ++ .../Classes/Modules/Debug/PageTitle.php | 1 + .../Modules/Debug/QueryInformation.php | 1 + .../Modules/Info/GeneralInformation.php | 1 + .../Classes/Modules/Info/PhpInformation.php | 1 + .../Modules/Info/RequestInformation.php | 1 + .../Modules/Info/UserIntInformation.php | 1 + .../Classes/Modules/PreviewModule.php | 1 + .../Modules/TsDebug/TypoScriptWaterfall.php | 2 ++ .../Private/Partials/Data/TableKeyValue.html | 10 ++++---- .../Private/Partials/Form/Checkbox.html | 2 +- .../Private/Partials/Form/DateTime.html | 2 +- .../Private/Partials/Form/Select.html | 2 +- .../Private/Partials/Modules/Item.html | 4 ++-- .../Resources/Private/Templates/Main.html | 14 +++++------ .../Private/Templates/Modules/Debug/Log.html | 16 ++++++------- .../Templates/Modules/Debug/LogSettings.html | 3 +++ .../Templates/Modules/Debug/PageTitle.html | 22 ++++++++--------- .../Modules/Debug/QueryInformation.html | 18 +++++++------- .../Templates/Modules/Info/General.html | 24 +++++++++---------- .../Templates/Modules/Info/PhpInfo.html | 4 ++-- .../Modules/Info/RequestInformation.html | 10 ++++---- .../Templates/Modules/Info/UserInt.html | 4 ++-- .../Templates/Modules/Settings/Cache.html | 5 ++-- .../Templates/Modules/Settings/Preview.html | 6 +++++ .../Modules/TsDebug/TypoScriptSettings.html | 6 +++++ 30 files changed, 110 insertions(+), 68 deletions(-) diff --git a/typo3/sysext/adminpanel/Classes/Controller/MainController.php b/typo3/sysext/adminpanel/Classes/Controller/MainController.php index 66b5290b1b1f..449c58b4b941 100644 --- a/typo3/sysext/adminpanel/Classes/Controller/MainController.php +++ b/typo3/sysext/adminpanel/Classes/Controller/MainController.php @@ -31,6 +31,7 @@ use TYPO3\CMS\Adminpanel\Service\ModuleLoader; use TYPO3\CMS\Adminpanel\Utility\ResourceUtility; use TYPO3\CMS\Adminpanel\Utility\StateUtility; use TYPO3\CMS\Backend\Routing\UriBuilder; +use TYPO3\CMS\Core\Authentication\BackendUserAuthentication; use TYPO3\CMS\Core\Cache\CacheManager; use TYPO3\CMS\Core\SingletonInterface; use TYPO3\CMS\Core\Utility\GeneralUtility; @@ -126,6 +127,7 @@ class MainController implements SingletonInterface 'toggleActiveUrl' => $this->generateBackendUrl('ajax_adminPanel_toggle'), 'resources' => $resources, 'adminPanelActive' => StateUtility::isOpen(), + 'languageKey' => $this->getBackendUser()->user['lang'], ] ); if (StateUtility::isOpen()) { @@ -238,4 +240,9 @@ class MainController implements SingletonInterface } return $data; } + + protected function getBackendUser(): BackendUserAuthentication + { + return $GLOBALS['BE_USER']; + } } diff --git a/typo3/sysext/adminpanel/Classes/ModuleApi/AbstractSubModule.php b/typo3/sysext/adminpanel/Classes/ModuleApi/AbstractSubModule.php index 355f7b869089..b7463de2d558 100644 --- a/typo3/sysext/adminpanel/Classes/ModuleApi/AbstractSubModule.php +++ b/typo3/sysext/adminpanel/Classes/ModuleApi/AbstractSubModule.php @@ -17,6 +17,7 @@ declare(strict_types=1); namespace TYPO3\CMS\Adminpanel\ModuleApi; +use TYPO3\CMS\Core\Authentication\BackendUserAuthentication; use TYPO3\CMS\Core\Localization\LanguageService; /** @@ -35,4 +36,9 @@ abstract class AbstractSubModule implements ModuleInterface, ContentProviderInte { return $GLOBALS['LANG']; } + + protected function getBackendUser(): BackendUserAuthentication + { + return $GLOBALS['BE_USER']; + } } diff --git a/typo3/sysext/adminpanel/Classes/Modules/CacheModule.php b/typo3/sysext/adminpanel/Classes/Modules/CacheModule.php index fcae2f550707..5f482661677e 100644 --- a/typo3/sysext/adminpanel/Classes/Modules/CacheModule.php +++ b/typo3/sysext/adminpanel/Classes/Modules/CacheModule.php @@ -68,6 +68,7 @@ class CacheModule extends AbstractModule implements PageSettingsProviderInterfac 'cacheCmd' => $pageId, ] ), + 'languageKey' => $this->getBackendUser()->user['lang'], ] ); diff --git a/typo3/sysext/adminpanel/Classes/Modules/Debug/Events.php b/typo3/sysext/adminpanel/Classes/Modules/Debug/Events.php index 21c41a0d8ec1..57a6a1469dc1 100644 --- a/typo3/sysext/adminpanel/Classes/Modules/Debug/Events.php +++ b/typo3/sysext/adminpanel/Classes/Modules/Debug/Events.php @@ -72,6 +72,7 @@ class Events extends AbstractSubModule implements DataProviderInterface $dumper->setTheme('light'); $view->assign('events', $dumper->dump($events, true)); + $view->assign('languageKey', $this->getBackendUser()->user['lang']); return $view->render(); } diff --git a/typo3/sysext/adminpanel/Classes/Modules/Debug/Log.php b/typo3/sysext/adminpanel/Classes/Modules/Debug/Log.php index 94f500400e1f..badd311a0f14 100644 --- a/typo3/sysext/adminpanel/Classes/Modules/Debug/Log.php +++ b/typo3/sysext/adminpanel/Classes/Modules/Debug/Log.php @@ -114,6 +114,7 @@ class Log extends AbstractSubModule implements DataProviderInterface, ModuleSett $templateNameAndPath = 'EXT:adminpanel/Resources/Private/Templates/Modules/Debug/LogSettings.html'; $view->setTemplatePathAndFilename(GeneralUtility::getFileAbsFileName($templateNameAndPath)); $view->setPartialRootPaths(['EXT:adminpanel/Resources/Private/Partials']); + $view->assign('languageKey', $this->getBackendUser()->user['lang']); $maxLevel = LogLevel::normalizeLevel(LogLevel::DEBUG); $levels = []; @@ -171,6 +172,7 @@ class Log extends AbstractSubModule implements DataProviderInterface, ModuleSett $data['groupByComponent'] = $groupByComponent; $data['groupByLevel'] = $groupByLevel; $view->assignMultiple($data->getArrayCopy()); + $view->assign('languageKey', $this->getBackendUser()->user['lang']); return $view->render(); } diff --git a/typo3/sysext/adminpanel/Classes/Modules/Debug/PageTitle.php b/typo3/sysext/adminpanel/Classes/Modules/Debug/PageTitle.php index bb935619fc05..66b7eac7ff90 100644 --- a/typo3/sysext/adminpanel/Classes/Modules/Debug/PageTitle.php +++ b/typo3/sysext/adminpanel/Classes/Modules/Debug/PageTitle.php @@ -105,6 +105,7 @@ class PageTitle extends AbstractSubModule implements DataProviderInterface ); $this->getLanguageService()->includeLLFile('EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf'); $view->assignMultiple($data->getArrayCopy()); + $view->assign('languageKey', $this->getBackendUser()->user['lang']); return $view->render(); } diff --git a/typo3/sysext/adminpanel/Classes/Modules/Debug/QueryInformation.php b/typo3/sysext/adminpanel/Classes/Modules/Debug/QueryInformation.php index 86df9fdb0d97..a2092bf7a885 100644 --- a/typo3/sysext/adminpanel/Classes/Modules/Debug/QueryInformation.php +++ b/typo3/sysext/adminpanel/Classes/Modules/Debug/QueryInformation.php @@ -87,6 +87,7 @@ class QueryInformation extends AbstractSubModule implements DataProviderInterfac ); $this->getLanguageService()->includeLLFile('EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf'); $view->assignMultiple($data->getArrayCopy()); + $view->assign('languageKey', $this->getBackendUser()->user['lang']); return $view->render(); } diff --git a/typo3/sysext/adminpanel/Classes/Modules/Info/GeneralInformation.php b/typo3/sysext/adminpanel/Classes/Modules/Info/GeneralInformation.php index b9bba534eec3..6023a3e96825 100644 --- a/typo3/sysext/adminpanel/Classes/Modules/Info/GeneralInformation.php +++ b/typo3/sysext/adminpanel/Classes/Modules/Info/GeneralInformation.php @@ -84,6 +84,7 @@ class GeneralInformation extends AbstractSubModule implements DataProviderInterf $view->setPartialRootPaths(['EXT:adminpanel/Resources/Private/Partials']); $view->assignMultiple($data->getArrayCopy()); + $view->assign('languageKey', $this->getBackendUser()->user['lang']); return $view->render(); } diff --git a/typo3/sysext/adminpanel/Classes/Modules/Info/PhpInformation.php b/typo3/sysext/adminpanel/Classes/Modules/Info/PhpInformation.php index bab58ae4c196..e33548b466de 100644 --- a/typo3/sysext/adminpanel/Classes/Modules/Info/PhpInformation.php +++ b/typo3/sysext/adminpanel/Classes/Modules/Info/PhpInformation.php @@ -79,6 +79,7 @@ class PhpInformation extends AbstractSubModule implements DataProviderInterface $view->setPartialRootPaths(['EXT:adminpanel/Resources/Private/Partials']); $view->assignMultiple($data->getArrayCopy()); + $view->assign('languageKey', $this->getBackendUser()->user['lang']); return $view->render(); } diff --git a/typo3/sysext/adminpanel/Classes/Modules/Info/RequestInformation.php b/typo3/sysext/adminpanel/Classes/Modules/Info/RequestInformation.php index 38ed6ef08fc7..44a2d79556d4 100644 --- a/typo3/sysext/adminpanel/Classes/Modules/Info/RequestInformation.php +++ b/typo3/sysext/adminpanel/Classes/Modules/Info/RequestInformation.php @@ -76,6 +76,7 @@ class RequestInformation extends AbstractSubModule implements DataProviderInterf $view->setPartialRootPaths(['EXT:adminpanel/Resources/Private/Partials']); $view->assignMultiple($data->getArrayCopy()); + $view->assign('languageKey', $this->getBackendUser()->user['lang']); return $view->render(); } diff --git a/typo3/sysext/adminpanel/Classes/Modules/Info/UserIntInformation.php b/typo3/sysext/adminpanel/Classes/Modules/Info/UserIntInformation.php index 4756450d1d84..711ca279bd3d 100644 --- a/typo3/sysext/adminpanel/Classes/Modules/Info/UserIntInformation.php +++ b/typo3/sysext/adminpanel/Classes/Modules/Info/UserIntInformation.php @@ -73,6 +73,7 @@ class UserIntInformation extends AbstractSubModule implements DataProviderInterf $view->setPartialRootPaths(['EXT:adminpanel/Resources/Private/Partials']); $view->assignMultiple($data->getArrayCopy()); + $view->assign('languageKey', $this->getBackendUser()->user['lang']); return $view->render(); } diff --git a/typo3/sysext/adminpanel/Classes/Modules/PreviewModule.php b/typo3/sysext/adminpanel/Classes/Modules/PreviewModule.php index 0857edf92dae..f1d329e9ddf7 100644 --- a/typo3/sysext/adminpanel/Classes/Modules/PreviewModule.php +++ b/typo3/sysext/adminpanel/Classes/Modules/PreviewModule.php @@ -129,6 +129,7 @@ class PreviewModule extends AbstractModule implements RequestEnricherInterface, 'availableGroups' => $frontendGroupsRepository->getAvailableFrontendUserGroups(), 'selected' => (int)$this->config['simulateUserGroup'], ], + 'languageKey' => $this->getBackendUser()->user['lang'], ] ); return $view->render(); diff --git a/typo3/sysext/adminpanel/Classes/Modules/TsDebug/TypoScriptWaterfall.php b/typo3/sysext/adminpanel/Classes/Modules/TsDebug/TypoScriptWaterfall.php index e37b71a08a65..82af2687f584 100644 --- a/typo3/sysext/adminpanel/Classes/Modules/TsDebug/TypoScriptWaterfall.php +++ b/typo3/sysext/adminpanel/Classes/Modules/TsDebug/TypoScriptWaterfall.php @@ -103,6 +103,7 @@ class TypoScriptWaterfall extends AbstractSubModule implements RequestEnricherIn 'trackContentRendering' => (int)$this->getConfigurationOption('LR'), 'forceTemplateParsing' => (int)$this->getConfigurationOption('forceTemplateParsing'), 'typoScriptLog' => $this->renderTypoScriptLog(), + 'languageKey' => $this->getBackendUser()->user['lang'], ] ); @@ -129,6 +130,7 @@ class TypoScriptWaterfall extends AbstractSubModule implements RequestEnricherIn ], 'trackContentRendering' => (int)$this->getConfigurationOption('LR'), 'forceTemplateParsing' => (int)$this->getConfigurationOption('forceTemplateParsing'), + 'languageKey' => $this->getBackendUser()->user['lang'], ] ); diff --git a/typo3/sysext/adminpanel/Resources/Private/Partials/Data/TableKeyValue.html b/typo3/sysext/adminpanel/Resources/Private/Partials/Data/TableKeyValue.html index 40b0e7b3e850..4e3d0a3d1cb0 100644 --- a/typo3/sysext/adminpanel/Resources/Private/Partials/Data/TableKeyValue.html +++ b/typo3/sysext/adminpanel/Resources/Private/Partials/Data/TableKeyValue.html @@ -7,15 +7,15 @@ <table class="typo3-adminPanel-table typo3-adminPanel-table-debug"> <thead> <tr> - <th scope="col" class="typo3-adminPanel-table-cell-key"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:key"/></th> - <th scope="col"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:value"/></th> + <th scope="col" class="typo3-adminPanel-table-cell-key"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:key" languageKey="{languageKey}"/></th> + <th scope="col"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:value" languageKey="{languageKey}"/></th> </tr> </thead> <tbody> <f:for each="{data}" as="val" key="key"> <tr> <th scope="row" class="typo3-adminPanel-table-cell-key"> - <f:translate key="{key}" default="{key}" extensionName="adminpanel"/> + <f:translate key="{key}" default="{key}" extensionName="adminpanel" languageKey="{languageKey}"/> </th> <td> <f:variable name="typeClass" value="string" /> @@ -24,10 +24,10 @@ <f:if condition="{adm:isArray(value: val)}"><f:variable name="typeClass" value="array" /></f:if> <f:switch expression="{typeClass}"> <f:case value="string"> - <pre class="typo3-adminPanel-dump typo3-adminPanel-dump-{typeClass}"><f:if condition="{val}"><f:translate key="{val}" default="{val}" extensionName="adminpanel"/></f:if></pre> + <pre class="typo3-adminPanel-dump typo3-adminPanel-dump-{typeClass}"><f:if condition="{val}"><f:translate key="{val}" default="{val}" extensionName="adminpanel" languageKey="{languageKey}"/></f:if></pre> </f:case> <f:case value="array"> - <f:render partial="Data/TableKeyValue" arguments="{data: val}" /> + <f:render partial="Data/TableKeyValue" arguments="{data: val, languageKey: languageKey}" /> </f:case> <f:defaultCase> <pre class="typo3-adminPanel-dump typo3-adminPanel-dump-{typeClass}">{val}</pre> diff --git a/typo3/sysext/adminpanel/Resources/Private/Partials/Form/Checkbox.html b/typo3/sysext/adminpanel/Resources/Private/Partials/Form/Checkbox.html index 74e5c0924bf5..2427c490eea3 100644 --- a/typo3/sysext/adminpanel/Resources/Private/Partials/Form/Checkbox.html +++ b/typo3/sysext/adminpanel/Resources/Private/Partials/Form/Checkbox.html @@ -5,7 +5,7 @@ <input type="hidden" name="TSFE_ADMIN_PANEL[{name}]" value="0"/> <input type="checkbox" id="{name}" name="TSFE_ADMIN_PANEL[{name}]" value="1" class="typo3-adminPanel-form-checkbox-input"{f:if(condition: value, then:' checked="checked"')} /> <label for="{name}" class="typo3-adminPanel-form-checkbox-label"> - <f:translate key="{label}" default="{label}" extensionName="adminpanel"/> + <f:translate key="{label}" default="{label}" extensionName="adminpanel" languageKey="{languageKey}"/> </label> </div> </div> diff --git a/typo3/sysext/adminpanel/Resources/Private/Partials/Form/DateTime.html b/typo3/sysext/adminpanel/Resources/Private/Partials/Form/DateTime.html index b75ac99da79f..d2729f845e89 100644 --- a/typo3/sysext/adminpanel/Resources/Private/Partials/Form/DateTime.html +++ b/typo3/sysext/adminpanel/Resources/Private/Partials/Form/DateTime.html @@ -3,7 +3,7 @@ <div class="typo3-adminPanel-form-group"> <div class="typo3-adminPanel-form-datetime"> <label for="{name}" class="typo3-adminPanel-form-datetime-label"> - <f:translate key="{label}" default="{label}" extensionName="adminpanel"/> + <f:translate key="{label}" default="{label}" extensionName="adminpanel" languageKey="{languageKey}"/> </label> <div class="typo3-adminPanel-form-datetime-input-group"> <input type="date" id="{name}-date-hr" class="typo3-adminPanel-form-datetime-input" data-bs-target="{name}"/> diff --git a/typo3/sysext/adminpanel/Resources/Private/Partials/Form/Select.html b/typo3/sysext/adminpanel/Resources/Private/Partials/Form/Select.html index 9c3074795ae3..8fa79d7b3fa9 100644 --- a/typo3/sysext/adminpanel/Resources/Private/Partials/Form/Select.html +++ b/typo3/sysext/adminpanel/Resources/Private/Partials/Form/Select.html @@ -3,7 +3,7 @@ <div class="typo3-adminPanel-form-group"> <div class="typo3-adminPanel-form-select"> <label for="{name}" class="typo3-adminPanel-form-select-label"> - <f:translate key="{label}" default="{label}" extensionName="adminpanel"/> + <f:translate key="{label}" default="{label}" extensionName="adminpanel" languageKey="{languageKey}"/> </label> <select name="TSFE_ADMIN_PANEL[{name}]" id="{name}" class="typo3-adminPanel-form-select-input"> <option value="0"></option> diff --git a/typo3/sysext/adminpanel/Resources/Private/Partials/Modules/Item.html b/typo3/sysext/adminpanel/Resources/Private/Partials/Modules/Item.html index 273aa3214237..94909cf15ab6 100644 --- a/typo3/sysext/adminpanel/Resources/Private/Partials/Modules/Item.html +++ b/typo3/sysext/adminpanel/Resources/Private/Partials/Modules/Item.html @@ -34,7 +34,7 @@ <f:for each="{module.subModules}" as="sub"> <f:if condition="{sub.settings}"> <div class="typo3-adminPanel-content-settings-group"> - <h4 class="typo3-adminPanel-headline">{sub.label} <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang.xlf:settings.label"/></h4> + <h4 class="typo3-adminPanel-headline">{sub.label} <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang.xlf:settings.label" languageKey="{languageKey}"/></h4> <f:format.raw> {sub.settings} </f:format.raw> @@ -42,7 +42,7 @@ </f:if> </f:for> <div class="typo3-adminPanel-form-group"> - <f:form.button class="typo3-adminPanel-btn typo3-adminPanel-btn-primary" data="{typo3-role: 'typo3-adminPanel-saveButton'}"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang.xlf:settings.updateButtonLabel"/></f:form.button> + <f:form.button class="typo3-adminPanel-btn typo3-adminPanel-btn-primary" data="{typo3-role: 'typo3-adminPanel-saveButton'}"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang.xlf:settings.updateButtonLabel" languageKey="{languageKey}"/></f:form.button> </div> </div> </f:if> diff --git a/typo3/sysext/adminpanel/Resources/Private/Templates/Main.html b/typo3/sysext/adminpanel/Resources/Private/Templates/Main.html index 0533306b61f9..8d776e8f7596 100644 --- a/typo3/sysext/adminpanel/Resources/Private/Templates/Main.html +++ b/typo3/sysext/adminpanel/Resources/Private/Templates/Main.html @@ -6,15 +6,15 @@ <f:variable name="icon"><core:icon identifier="{module.iconIdentifier}" alternativeMarkupIdentifier="inline"/></f:variable> <f:variable name="label">{module.label}</f:variable> <f:variable name="information">{module.shortInfo}</f:variable> - <f:render partial="Modules/Item" arguments="{module: module, uid: uid, icon: icon, label: label, information: information, data: data}" debug="false"/> + <f:render partial="Modules/Item" arguments="{module: module, uid: uid, icon: icon, label: label, information: information, data: data, languageKey: languageKey}" debug="false"/> </f:for> <f:if condition="{hookObjectModuleContent}"> <f:variable name="uid">hook</f:variable> <f:variable name="icon"><core:icon identifier="actions-window-open" alternativeMarkupIdentifier="inline"/></f:variable> - <f:variable name="label"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang.xlf:deprecatedModuleLabel"/></f:variable> + <f:variable name="label"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang.xlf:deprecatedModuleLabel" languageKey="{languageKey}"/></f:variable> <f:variable name="mainContent">{hookObjectModuleContent}</f:variable> - <f:render partial="Modules/Item" arguments="{uid: uid, icon: icon, label: label, mainContent: mainContent, data: data}}" debug="false"/> + <f:render partial="Modules/Item" arguments="{uid: uid, icon: icon, label: label, mainContent: mainContent, data: data, languageKey: languageKey}}" debug="false"/> </f:if> </f:section> @@ -22,10 +22,10 @@ <f:variable name="uid">settings</f:variable> <f:variable name="icon"><core:icon identifier="actions-system-extension-configure" alternativeMarkupIdentifier="inline"/></f:variable> - <f:variable name="label"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang.xlf:settings.label"/></f:variable> + <f:variable name="label"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang.xlf:settings.label" languageKey="{languageKey}"/></f:variable> <f:variable name="information">{module.shortInfo}</f:variable> <f:variable name="mainContent"> - <h1 class="typo3-adminPanel-headline"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang.xlf:settings.label"/></h1> + <h1 class="typo3-adminPanel-headline"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang.xlf:settings.label" languageKey="{languageKey}"/></h1> <div class="typo3-adminPanel-card-group"> <f:for each="{settingsModules}" as="module"> <f:if condition="{module.pageSettings}"> @@ -43,10 +43,10 @@ </div> <div class="typo3-adminPanel-form-group"> <button data-typo3-role="typo3-adminPanel-saveButton" class="typo3-adminPanel-btn typo3-adminPanel-btn-primary"> - <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang.xlf:settings.updateButtonLabel"/> + <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang.xlf:settings.updateButtonLabel" languageKey="{languageKey}"/> </button> </div> </f:variable> - <f:render partial="Modules/Item" arguments="{uid: uid, icon: icon, label: label, information: information, mainContent: mainContent, data: data}" debug="false"/> + <f:render partial="Modules/Item" arguments="{uid: uid, icon: icon, label: label, information: information, mainContent: mainContent, data: data, languageKey: languageKey}" debug="false"/> </f:section> </html> diff --git a/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Debug/Log.html b/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Debug/Log.html index ff9cdfd18658..d53ad1c6a81c 100644 --- a/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Debug/Log.html +++ b/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Debug/Log.html @@ -12,7 +12,7 @@ <thead> <tr> <th scope="col" class="typo3-adminPanel-table-cell-key"> - <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.log.message"/> + <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.log.message" languageKey="{languageKey}"/> </th> </tr> </thead> @@ -42,17 +42,17 @@ <f:if condition="{groupByComponent}"> <f:then> <th scope="col" class="typo3-adminPanel-table-cell-key"> - <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.log.level"/> + <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.log.level" languageKey="{languageKey}"/> </th> </f:then> <f:else> <th scope="col" class="typo3-adminPanel-table-cell-key"> - <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.log.component"/> + <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.log.component" languageKey="{languageKey}"/> </th> </f:else> </f:if> <th scope="col" class="typo3-adminPanel-table-cell-key"> - <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.log.message"/> + <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.log.message" languageKey="{languageKey}"/> </th> </tr> </thead> @@ -87,13 +87,13 @@ <thead> <tr> <th scope="col" class="typo3-adminPanel-table-cell-key"> - <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.log.level"/> + <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.log.level" languageKey="{languageKey}"/> </th> <th scope="col" class="typo3-adminPanel-table-cell-key"> - <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.log.component"/> + <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.log.component" languageKey="{languageKey}"/> </th> <th scope="col" class="typo3-adminPanel-table-cell-key"> - <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.log.message"/> + <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.log.message" languageKey="{languageKey}"/> </th> </tr> </thead> @@ -122,7 +122,7 @@ <f:else> <div class="typo3-adminPanel-message typo3-adminPanel-message-info"> <div class="typo3-adminPanel-message-text"> - <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.log.noEntries"/> + <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.log.noEntries" languageKey="{languageKey}"/> </div> </div> </f:else> diff --git a/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Debug/LogSettings.html b/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Debug/LogSettings.html index a78f13a9fbaa..6bf2803d4c30 100644 --- a/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Debug/LogSettings.html +++ b/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Debug/LogSettings.html @@ -4,6 +4,7 @@ arguments="{ label: 'LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.log.groupByComponent', name: 'debug_log_groupByComponent', + languageKey: languageKey, value: groupByComponent }" debug="false"/> @@ -12,6 +13,7 @@ arguments="{ label: 'LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.log.groupByLevel', name: 'debug_log_groupByLevel', + languageKey: languageKey, value: groupByLevel }" debug="false"/> @@ -20,6 +22,7 @@ arguments="{ label: 'LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.log.startLevel', name: 'debug_log_startLevel', + languageKey: languageKey, options: levels, optionValue: 'level', optionLabel: 'levelName', diff --git a/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Debug/PageTitle.html b/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Debug/PageTitle.html index d609cc092b69..1a156b7f593d 100644 --- a/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Debug/PageTitle.html +++ b/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Debug/PageTitle.html @@ -1,17 +1,17 @@ <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true"> <f:if condition="{cacheEnabled}"> <f:then> - <p><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.pageTitle.cacheEnabled" /></p> - <p><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.pageTitle.cacheEnabled.extraInfo" /></p> + <p><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.pageTitle.cacheEnabled" languageKey="{languageKey}"/></p> + <p><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.pageTitle.cacheEnabled.extraInfo" languageKey="{languageKey}"/></p> </f:then> <f:else> - <h2 class="typo3-adminPanel-headline"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.pageTitle.usedProvider" /></h2> + <h2 class="typo3-adminPanel-headline"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.pageTitle.usedProvider" languageKey="{languageKey}" /></h2> <div class="typo3-adminPanel-table-overflow"> <table class="typo3-adminPanel-table typo3-adminPanel-table-debug"> <thead> <tr> - <th scope="col" class="typo3-adminPanel-table-cell-key"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.pageTitle.title" /></th> - <th scope="col" class="typo3-adminPanel-table-cell-key"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.pageTitle.provider" /></th> + <th scope="col" class="typo3-adminPanel-table-cell-key"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.pageTitle.title" languageKey="{languageKey}" /></th> + <th scope="col" class="typo3-adminPanel-table-cell-key"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.pageTitle.provider" languageKey="{languageKey}" /></th> </tr> </thead> <tbody> @@ -22,13 +22,13 @@ </tbody> </table> </div> - <h2 class="typo3-adminPanel-headline"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.pageTitle.skippedProviders" /></h2> + <h2 class="typo3-adminPanel-headline"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.pageTitle.skippedProviders" languageKey="{languageKey}" /></h2> <div class="typo3-adminPanel-table-overflow"> <table class="typo3-adminPanel-table typo3-adminPanel-table-debug"> <thead> <tr> - <th scope="col" class="typo3-adminPanel-table-cell-key"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.pageTitle.name" /></th> - <th scope="col" class="typo3-adminPanel-table-cell-key"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.pageTitle.provider" /></th> + <th scope="col" class="typo3-adminPanel-table-cell-key"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.pageTitle.name" languageKey="{languageKey}" /></th> + <th scope="col" class="typo3-adminPanel-table-cell-key"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.pageTitle.provider" languageKey="{languageKey}" /></th> </tr> </thead> <tbody> @@ -41,13 +41,13 @@ </tbody> </table> </div> - <h2 class="typo3-adminPanel-headline"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.pageTitle.allProviders" /></h2> + <h2 class="typo3-adminPanel-headline"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.pageTitle.allProviders" languageKey="{languageKey}"/></h2> <div class="typo3-adminPanel-table-overflow"> <table class="typo3-adminPanel-table typo3-adminPanel-table-debug"> <thead> <tr> - <th scope="col" class="typo3-adminPanel-table-cell-key"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.pageTitle.name" /></th> - <th scope="col" class="typo3-adminPanel-table-cell-key"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.pageTitle.provider" /></th> + <th scope="col" class="typo3-adminPanel-table-cell-key"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.pageTitle.name" languageKey="{languageKey}" /></th> + <th scope="col" class="typo3-adminPanel-table-cell-key"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.pageTitle.provider" languageKey="{languageKey}" /></th> </tr> </thead> <tbody> diff --git a/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Debug/QueryInformation.html b/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Debug/QueryInformation.html index eca638498b0f..38c5fe6aa1d0 100644 --- a/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Debug/QueryInformation.html +++ b/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Debug/QueryInformation.html @@ -3,19 +3,19 @@ <div class="typo3-adminPanel-row typo3-adminPanel-row-nowrap typo3-adminPanel-sql-header"> <div class="typo3-adminPanel-col typo3-adminPanel-col-icon"></div> <div class="typo3-adminPanel-col typo3-adminPanel-col-ellipsis typo3-adminPanel-col-auto"> - <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.queryInformation.sqlQuery"/> + <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.queryInformation.sqlQuery" languageKey="{languageKey}"/> </div> <div class="typo3-adminPanel-col typo3-adminPanel-sql-col-count"> - <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.queryInformation.queryCount"/> + <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.queryInformation.queryCount" languageKey="{languageKey}"/> </div> <div class="typo3-adminPanel-col typo3-adminPanel-sql-col-time"> - <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.queryInformation.queryTime"/> + <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.queryInformation.queryTime" languageKey="{languageKey}"/> </div> </div> <f:for each="{queries}" as="queryCollection" iteration="queryCollectionIteration"> <div class="typo3-adminPanel-row typo3-adminPanel-row-nowrap"> <div class="typo3-adminPanel-col typo3-adminPanel-col-icon"> - <a href="#" title="{f:translate(key:'LLL:EXT:adminpanel/Resources/Private/Language/locallang.xlf:button.view')}" data-typo3-zoom-target="queryCollection-{queryCollectionIteration.index}"> + <a href="#" title="{f:translate(key:'LLL:EXT:adminpanel/Resources/Private/Language/locallang.xlf:button.view', languageKey: languageKey)}" data-typo3-zoom-target="queryCollection-{queryCollectionIteration.index}"> <core:icon identifier="actions-document-view" alternativeMarkupIdentifier="inline"/> </a> </div> @@ -33,16 +33,16 @@ <div class="typo3-adminPanel-zoom" data-typo3-zoom-id="queryCollection-{queryCollectionIteration.index}"> <div class="typo3-adminPanel-zoom-header"> <button class="typo3-adminPanel-btn" data-typo3-zoom-close="true"> - {f:translate(key:'LLL:EXT:adminpanel/Resources/Private/Language/locallang.xlf:button.close')} + {f:translate(key:'LLL:EXT:adminpanel/Resources/Private/Language/locallang.xlf:button.close', languageKey: languageKey)} </button> </div> <div class="typo3-adminPanel-zoom-body"> - <h3 class="typo3-adminPanel-headline">{f:translate(key:'LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.queryInformation.query')}</h3> + <h3 class="typo3-adminPanel-headline">{f:translate(key:'LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.queryInformation.query', languageKey: languageKey)}</h3> <pre class="typo3-adminPanel-sql-statement">{queryCollection.sql}</pre> <f:if condition="{queryCollection.queries}"> <f:if condition="{queryCollection.queries.0.backtrace}"> <f:alias map="{query: queryCollection.queries.0}"> - <h3 class="typo3-adminPanel-headline">{f:translate(key:'LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.queryInformation.backtrace')}</h3> + <h3 class="typo3-adminPanel-headline">{f:translate(key:'LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.queryInformation.backtrace', languageKey: languageKey)}</h3> <div class="typo3-adminPanel-sql-backtrace"> <f:for each="{query.backtrace}" as="value"> <div class="typo3-adminPanel-sql-backtrace-item"> @@ -57,7 +57,7 @@ </div> </f:alias> </f:if> - <h3 class="typo3-adminPanel-headline">{f:translate(key:'LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.queryInformation.queries')}</h3> + <h3 class="typo3-adminPanel-headline">{f:translate(key:'LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.queryInformation.queries', languageKey: languageKey)}</h3> <div class="typo3-adminPanel-table-overflow"> <table class="typo3-adminPanel-table typo3-adminPanel-table-debug"> <thead> @@ -66,7 +66,7 @@ <th scope="col">dcValue{param.cycle}</th> </f:for> <th scope="col" class="typo3-adminPanel-table-cell-space"></th> - <th scope="col" class="typo3-adminPanel-table-cell-time"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.queryInformation.queryTime"/></th> + <th scope="col" class="typo3-adminPanel-table-cell-time"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_debug.xlf:submodule.queryInformation.queryTime", languageKey: languageKey/></th> </tr> </thead> <tbody> diff --git a/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Info/General.html b/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Info/General.html index 506e6d9da445..e3f8b1cf767b 100644 --- a/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Info/General.html +++ b/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Info/General.html @@ -7,13 +7,13 @@ <table class="typo3-adminPanel-table typo3-adminPanel-table-debug"> <thead> <tr> - <th scope="col" class="typo3-adminPanel-table-cell-key"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:key"/></th> - <th scope="col"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:value"/></th> + <th scope="col" class="typo3-adminPanel-table-cell-key"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:key" languageKey="{languageKey}"/></th> + <th scope="col"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:value" languageKey="{languageKey}"/></th> </tr> </thead> <tbody> <tr> - <th scope="row" class="typo3-adminPanel-table-cell-key"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:imagesOnPage"/></th> + <th scope="row" class="typo3-adminPanel-table-cell-key"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:imagesOnPage" languageKey="{languageKey}"/></th> <td> <f:variable name="typeClass" value="string" /> <f:if condition="{info.imagesOnPage.total as integer} === {info.imagesOnPage.total}"><f:variable name="typeClass" value="integer" /></f:if> @@ -24,7 +24,7 @@ <f:for each="{info.imagesOnPage.files}" as="file"> <tr> <th scope="row" class="typo3-adminPanel-table-cell-key"> - <a href="{file.name}" class="typo3-adminPanel-table-cell-key-icon" target="_blank" title="{f:translate(key:'LLL:EXT:adminpanel/Resources/Private/Language/locallang.xlf:button.view')}"> + <a href="{file.name}" class="typo3-adminPanel-table-cell-key-icon" target="_blank" title="{f:translate(key:'LLL:EXT:adminpanel/Resources/Private/Language/locallang.xlf:button.view', languageKey: languageKey)}"> <core:icon identifier="actions-window-open" alternativeMarkupIdentifier="inline"/> </a> {file.name} @@ -38,7 +38,7 @@ </tr> </f:for> <tr> - <th scope="row" class="typo3-adminPanel-table-cell-key"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:imagesSize"/></th> + <th scope="row" class="typo3-adminPanel-table-cell-key"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:imagesSize" languageKey="{languageKey}"/></th> <td> <f:variable name="typeClass" value="string" /> <f:if condition="{info.imagesOnPage.totalSize as integer} === {info.imagesOnPage.totalSize}"><f:variable name="typeClass" value="integer" /></f:if> @@ -51,18 +51,18 @@ </div> </f:if> - <f:render partial="Data/TableKeyValue" arguments="{label: 'Document Size', data: '{ + <f:render partial="Data/TableKeyValue" arguments="{label: 'Document Size', languageKey: languageKey, data: '{ \'LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:DocumentSize\': \'{info.documentSize}\' }'}" debug="false"/> </f:if> -<f:render partial="Data/TableKeyValue" arguments="{label: 'Page', data: '{ +<f:render partial="Data/TableKeyValue" arguments="{label: 'Page', languageKey: languageKey, data: '{ \'LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:pageUid\': info.pageUid, \'LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:pageType\': info.pageType }'}" debug="false"/> -<f:render partial="Data/TableKeyValue" arguments="{label: 'Frontend User Group', data: '{ +<f:render partial="Data/TableKeyValue" arguments="{label: 'Frontend User Group', languageKey: languageKey, data: '{ \'LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:groupList\': info.groupList }'}" debug="false"/> @@ -70,22 +70,22 @@ <f:then><f:variable name="isCachedInfo">LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:noCache_no</f:variable></f:then> <f:else><f:variable name="isCachedInfo">LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:noCache_yes</f:variable></f:else> </f:if> -<f:render partial="Data/TableKeyValue" arguments="{label: 'Cache', data: '{ +<f:render partial="Data/TableKeyValue" arguments="{label: 'Cache', languageKey: languageKey, data: '{ \'LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:noCache\': isCachedInfo }'}" debug="false"/> -<f:render partial="Data/TableKeyValue" arguments="{label: 'UserIntObjects', data: '{ +<f:render partial="Data/TableKeyValue" arguments="{label: 'UserIntObjects', languageKey: languageKey, data: '{ \'LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:countUserInt\': info.countUserInt }'}" debug="false"/> <f:if condition="{info.feUser.uid} > 0"> - <f:render partial="Data/TableKeyValue" arguments="{label: 'Frontend User', data: '{ + <f:render partial="Data/TableKeyValue" arguments="{label: 'Frontend User', languageKey: languageKey, data: '{ \'LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:feuserName\': info.feUser.username, \'LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:feuserId\': info.feUser.uid }'}" debug="false"/> </f:if> -<f:render partial="Data/TableKeyValue" arguments="{label: 'Total Parsetime', data: '{ +<f:render partial="Data/TableKeyValue" arguments="{label: 'Total Parsetime', languageKey: languageKey, data: '{ \'LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:totalParsetime\': \'{info.totalParsetime} ms\' }'}" debug="false"/> diff --git a/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Info/PhpInfo.html b/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Info/PhpInfo.html index 62c1b496b614..c80ac8124fb3 100644 --- a/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Info/PhpInfo.html +++ b/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Info/PhpInfo.html @@ -1,6 +1,6 @@ <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true"> -<f:render partial="Data/TableKeyValue" arguments="{label: 'General', data: general}" debug="false"/> -<f:render partial="Data/TableKeyValue" arguments="{label: 'Constants', data: constants.user}" debug="false"/> +<f:render partial="Data/TableKeyValue" arguments="{label: 'General', data: general, languageKey: languageKey}" debug="false"/> +<f:render partial="Data/TableKeyValue" arguments="{label: 'Constants', data: constants.user, languageKey: languageKey}" debug="false"/> <h2 class="typo3-adminPanel-headline">Extensions</h2> <pre class="typo3-adminPanel-dump">{loadedExtensions}</pre> </html> diff --git a/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Info/RequestInformation.html b/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Info/RequestInformation.html index 6479ac9bd2f5..887b37c76f08 100644 --- a/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Info/RequestInformation.html +++ b/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Info/RequestInformation.html @@ -1,7 +1,7 @@ <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true"> -<f:render partial="Data/TableKeyValue" arguments="{label: '$_GET', data: get}" debug="false"/> -<f:render partial="Data/TableKeyValue" arguments="{label: '$_POST', data: post}" debug="false"/> -<f:render partial="Data/TableKeyValue" arguments="{label: '$_COOKIE', data: cookie}" debug="false"/> -<f:render partial="Data/TableKeyValue" arguments="{label: '$_SESSION', data: session}" debug="false"/> -<f:render partial="Data/TableKeyValue" arguments="{label: '$_SERVER', data: server}" debug="false"/> +<f:render partial="Data/TableKeyValue" arguments="{label: '$_GET', data: get, languageKey: languageKey}" debug="false"/> +<f:render partial="Data/TableKeyValue" arguments="{label: '$_POST', data: post, languageKey: languageKey}" debug="false"/> +<f:render partial="Data/TableKeyValue" arguments="{label: '$_COOKIE', data: cookie, languageKey: languageKey}" debug="false"/> +<f:render partial="Data/TableKeyValue" arguments="{label: '$_SESSION', data: session, languageKey: languageKey}" debug="false"/> +<f:render partial="Data/TableKeyValue" arguments="{label: '$_SERVER', data: server, languageKey: languageKey}" debug="false"/> </html> diff --git a/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Info/UserInt.html b/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Info/UserInt.html index f495ae3bd7a8..b6021c148d3b 100644 --- a/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Info/UserInt.html +++ b/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Info/UserInt.html @@ -3,11 +3,11 @@ <f:if condition="{userIntInfo -> f:count()} > 0"> <f:then> <f:for each="{userIntInfo}" as="info" key="label"> - <f:render partial="Data/TableKeyValue" arguments="{label: label, data: info}" debug="false"/> + <f:render partial="Data/TableKeyValue" arguments="{label: label, data: info, languageKey: languageKey}" debug="false"/> </f:for> </f:then> <f:else> - <p><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:noUserInt"/></p> + <p><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:noUserInt" languageKey="{languageKey}"/></p> </f:else> </f:if> </html> diff --git a/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Settings/Cache.html b/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Settings/Cache.html index 089e59d89f07..a537865d42eb 100644 --- a/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Settings/Cache.html +++ b/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Settings/Cache.html @@ -2,16 +2,17 @@ <f:render partial="Form/Checkbox" arguments="{ label: 'LLL:EXT:adminpanel/Resources/Private/Language/locallang_cache.xlf:cache.no_cache', name: 'cache_noCache', + languageKey: languageKey, value: noCache }" debug="false"/> <div class="typo3-adminPanel-form-group"> <f:form.button class="typo3-adminPanel-btn typo3-adminPanel-btn-default" data="{'typo3-ajax-url': clearCurrentPageCacheUrl, 'typo3-role': 'clearCacheButton'}" type="button"> - {f:translate(key:'LLL:EXT:adminpanel/Resources/Private/Language/locallang_cache.xlf:cache.clear_current')} + {f:translate(key:'LLL:EXT:adminpanel/Resources/Private/Language/locallang_cache.xlf:cache.clear_current', languageKey: languageKey)} </f:form.button> </div> <f:if condition="{clearPageCacheUrl}"> <div class="typo3-adminPanel-form-group"> <f:form.button class="typo3-adminPanel-btn typo3-adminPanel-btn-default" data="{'typo3-ajax-url': clearPageCacheUrl, 'typo3-role': 'clearCacheButton'}" type="button"> - {f:translate(key:'LLL:EXT:adminpanel/Resources/Private/Language/locallang_cache.xlf:cache.clear_pages')} + {f:translate(key:'LLL:EXT:adminpanel/Resources/Private/Language/locallang_cache.xlf:cache.clear_pages', languageKey: languageKey)} </f:form.button> </div> </f:if> diff --git a/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Settings/Preview.html b/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Settings/Preview.html index 01ba493fe19b..af4d94214e4e 100644 --- a/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Settings/Preview.html +++ b/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Settings/Preview.html @@ -2,25 +2,31 @@ <f:render partial="Form/Checkbox" arguments="{ label: 'LLL:EXT:adminpanel/Resources/Private/Language/locallang_preview.xlf:showHiddenPages', name: 'preview_showHiddenPages', + languageKey: languageKey, value: show.hiddenPages }" debug="false"/> <f:render partial="Form/Checkbox" arguments="{ label: 'LLL:EXT:adminpanel/Resources/Private/Language/locallang_preview.xlf:showHiddenRecords', name: 'preview_showHiddenRecords', + languageKey: languageKey, value: show.hiddenRecords }" debug="false"/> <f:render partial="Form/Checkbox" arguments="{ label: 'LLL:EXT:adminpanel/Resources/Private/Language/locallang_preview.xlf:showFluidDebug', name: 'preview_showFluidDebug', + languageKey: languageKey, value: show.fluidDebug }" debug="false"/> <f:render partial="Form/Hidden" arguments="{ name: 'preview_clearCacheId', + languageKey: languageKey, value: show.pageId }" debug="false"/> <f:render partial="Form/DateTime" arguments="{ label: 'LLL:EXT:adminpanel/Resources/Private/Language/locallang_preview.xlf:simulateDate', name: 'preview_simulateDate', + languageKey: languageKey, value: simulateDate }" debug="false"/> <f:render partial="Form/Select" arguments="{ label: 'LLL:EXT:adminpanel/Resources/Private/Language/locallang_preview.xlf:simulateUserGroup', name: 'preview_simulateUserGroup', + languageKey: languageKey, options: frontendUserGroups.availableGroups, optionValue: 'uid', optionLabel: 'title', diff --git a/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/TsDebug/TypoScriptSettings.html b/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/TsDebug/TypoScriptSettings.html index 6684b365374e..229dcee6af19 100644 --- a/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/TsDebug/TypoScriptSettings.html +++ b/typo3/sysext/adminpanel/Resources/Private/Templates/Modules/TsDebug/TypoScriptSettings.html @@ -2,25 +2,31 @@ <f:render partial="Form/Checkbox" arguments="{ label: 'LLL:EXT:adminpanel/Resources/Private/Language/locallang_tsdebug.xlf:treeDisplay', name: 'tsdebug_tree', + languageKey: languageKey, value: tree }" debug="false"/> <f:render partial="Form/Checkbox" arguments="{ label: 'LLL:EXT:adminpanel/Resources/Private/Language/locallang_tsdebug.xlf:displayTimes', name: 'tsdebug_displayTimes', + languageKey: languageKey, value: display.times }" debug="false"/> <f:render partial="Form/Checkbox" arguments="{ label: 'LLL:EXT:adminpanel/Resources/Private/Language/locallang_tsdebug.xlf:displayMessages', name: 'tsdebug_displayMessages', + languageKey: languageKey, value: display.messages }" debug="false"/> <f:render partial="Form/Checkbox" arguments="{ label: 'LLL:EXT:adminpanel/Resources/Private/Language/locallang_tsdebug.xlf:trackContentRendering', name: 'tsdebug_LR', + languageKey: languageKey, value: trackContentRendering }" debug="false"/> <f:render partial="Form/Checkbox" arguments="{ label: 'LLL:EXT:adminpanel/Resources/Private/Language/locallang_tsdebug.xlf:displayContent', name: 'tsdebug_displayContent', + languageKey: languageKey, value: display.content }" debug="false"/> <f:render partial="Form/Checkbox" arguments="{ label: 'LLL:EXT:adminpanel/Resources/Private/Language/locallang_tsdebug.xlf:forceTemplateParsing', name: 'tsdebug_forceTemplateParsing', + languageKey: languageKey, value: forceTemplateParsing }" debug="false"/> </html> -- GitLab