From 2fee4ca259608b0a0ed39c64b3922b55ac40d265 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Mon, 4 Nov 2024 12:00:18 +0100 Subject: [PATCH] Add proper TCA label for "none" relations Resolves: #11476 --- .../TCA/tx_events_domain_model_event.php | 18 ++++++++++++++++++ .../Language/de.locallang_csh_event.xlf | 12 ++++++++++++ .../Private/Language/locallang_csh_event.xlf | 9 +++++++++ 3 files changed, 39 insertions(+) diff --git a/Configuration/TCA/tx_events_domain_model_event.php b/Configuration/TCA/tx_events_domain_model_event.php index 61eb0b7..f4b9f1d 100644 --- a/Configuration/TCA/tx_events_domain_model_event.php +++ b/Configuration/TCA/tx_events_domain_model_event.php @@ -407,6 +407,12 @@ return [ 'default' => 0, 'minitems' => 0, 'maxitems' => 1, + 'items' => [ + [ + 'value' => '0', + 'label' => $l10nPath . ':tx_events_domain_model_event.location.0', + ], + ], ], ], 'organizer' => [ @@ -419,6 +425,12 @@ return [ 'default' => 0, 'minitems' => 0, 'maxitems' => 1, + 'items' => [ + [ + 'value' => '0', + 'label' => $l10nPath . ':tx_events_domain_model_event.location.0', + ], + ], ], ], 'region' => [ @@ -431,6 +443,12 @@ return [ 'default' => 0, 'minitems' => 0, 'maxitems' => 1, + 'items' => [ + [ + 'value' => '0', + 'label' => $l10nPath . ':tx_events_domain_model_event.location.0', + ], + ], ], ], diff --git a/Resources/Private/Language/de.locallang_csh_event.xlf b/Resources/Private/Language/de.locallang_csh_event.xlf index ef1cc27..149b3d2 100644 --- a/Resources/Private/Language/de.locallang_csh_event.xlf +++ b/Resources/Private/Language/de.locallang_csh_event.xlf @@ -123,14 +123,26 @@ Location Veranstaltungsort + + None + Keine + Organizer Organisator + + None + Keiner + Region Region + + None + Keine + Organizer Organisator diff --git a/Resources/Private/Language/locallang_csh_event.xlf b/Resources/Private/Language/locallang_csh_event.xlf index 9ef979d..bd1575c 100644 --- a/Resources/Private/Language/locallang_csh_event.xlf +++ b/Resources/Private/Language/locallang_csh_event.xlf @@ -93,12 +93,21 @@ Location + + None + Organizer + + None + Region + + None + Partner