From 4ab08366242de35ffe6cd868bd764e19f03cf742 Mon Sep 17 00:00:00 2001 From: Christoph Lehmann Date: Thu, 14 Mar 2024 21:48:12 +0100 Subject: [PATCH] Better tab label for unknown elements --- Classes/Controller/WizardController.php | 2 +- Resources/Private/Language/de.locallang.xlf | 8 ++++++++ Resources/Private/Language/locallang.xlf | 6 ++++++ Resources/Private/Templates/Wizard.html | 7 +++++-- 4 files changed, 20 insertions(+), 3 deletions(-) diff --git a/Classes/Controller/WizardController.php b/Classes/Controller/WizardController.php index e5ecc9f..5a89670 100644 --- a/Classes/Controller/WizardController.php +++ b/Classes/Controller/WizardController.php @@ -264,7 +264,7 @@ protected function disableWizardsHavingNoResults(array $wizardItems): array protected function appendUnknownContentTypes(array $wizardItems): array { if ($this->unknownContentTypes !== [] && $this->getBackendUser()->isAdmin()) { - $wizardItems['unknown']['header'] = '?'; + $wizardItems['unknown']['header'] = 'unknown'; foreach ($this->unknownContentTypes as $no => $unknownContentType) { $filterParts = []; foreach ($unknownContentType as $fieldName => $fieldValue) { diff --git a/Resources/Private/Language/de.locallang.xlf b/Resources/Private/Language/de.locallang.xlf index cee9692..7ddd88e 100644 --- a/Resources/Private/Language/de.locallang.xlf +++ b/Resources/Private/Language/de.locallang.xlf @@ -15,6 +15,14 @@ Records Datensätze + + Unknown + Unbekannte Elemente + + + These elements could not be displayed, are typically outdated and should be edited. + Diese Elemente können nicht dargestellt werden, sind typischerweise veraltet und sollten bearbeitet werden. + Nothing found. Probably the page id was configured incorrectly. Nichts gefunden. Wahrscheinlich ist die Seiten-Id falsch konfiguriert. diff --git a/Resources/Private/Language/locallang.xlf b/Resources/Private/Language/locallang.xlf index 3042595..04cb37d 100644 --- a/Resources/Private/Language/locallang.xlf +++ b/Resources/Private/Language/locallang.xlf @@ -12,6 +12,12 @@ Records + + Unknown elements + + + These elements could not be displayed, are typically outdated and should be edited. + Nothing found. Probably the page id was configured incorrectly. diff --git a/Resources/Private/Templates/Wizard.html b/Resources/Private/Templates/Wizard.html index a4af2ba..8c90b8e 100644 --- a/Resources/Private/Templates/Wizard.html +++ b/Resources/Private/Templates/Wizard.html @@ -15,8 +15,11 @@