Add proper TCA label for "none" relations

Resolves: #11476
This commit is contained in:
Daniel Siepmann (Codappix) 2024-11-04 12:00:18 +01:00
parent 5f0588565f
commit 2fee4ca259
SSH key fingerprint: SHA256:nAjx3Dpp8kuAC+S7QXj8BWmqw+KI1Miu+5e40BP3LXA
3 changed files with 39 additions and 0 deletions

View file

@ -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',
],
],
],
],

View file

@ -123,14 +123,26 @@
<source>Location</source>
<target>Veranstaltungsort</target>
</trans-unit>
<trans-unit id="tx_events_domain_model_event.location.0">
<source>None</source>
<target>Keine</target>
</trans-unit>
<trans-unit id="tx_events_domain_model_event.organizer">
<source>Organizer</source>
<target>Organisator</target>
</trans-unit>
<trans-unit id="tx_events_domain_model_event.organizer.0">
<source>None</source>
<target>Keiner</target>
</trans-unit>
<trans-unit id="tx_events_domain_model_event.region">
<source>Region</source>
<target>Region</target>
</trans-unit>
<trans-unit id="tx_events_domain_model_event.region.0">
<source>None</source>
<target>Keine</target>
</trans-unit>
<trans-unit id="tx_events_domain_model_organizer">
<source>Organizer</source>
<target>Organisator</target>

View file

@ -93,12 +93,21 @@
<trans-unit id="tx_events_domain_model_event.location">
<source>Location</source>
</trans-unit>
<trans-unit id="tx_events_domain_model_event.location.0">
<source>None</source>
</trans-unit>
<trans-unit id="tx_events_domain_model_event.organizer">
<source>Organizer</source>
</trans-unit>
<trans-unit id="tx_events_domain_model_event.organizer.0">
<source>None</source>
</trans-unit>
<trans-unit id="tx_events_domain_model_event.region">
<source>Region</source>
</trans-unit>
<trans-unit id="tx_events_domain_model_event.region.0">
<source>None</source>
</trans-unit>
<trans-unit id="tx_events_domain_model_event.partner">
<source>Partner</source>
</trans-unit>