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, 'default' => 0,
'minitems' => 0, 'minitems' => 0,
'maxitems' => 1, 'maxitems' => 1,
'items' => [
[
'value' => '0',
'label' => $l10nPath . ':tx_events_domain_model_event.location.0',
],
],
], ],
], ],
'organizer' => [ 'organizer' => [
@ -419,6 +425,12 @@ return [
'default' => 0, 'default' => 0,
'minitems' => 0, 'minitems' => 0,
'maxitems' => 1, 'maxitems' => 1,
'items' => [
[
'value' => '0',
'label' => $l10nPath . ':tx_events_domain_model_event.location.0',
],
],
], ],
], ],
'region' => [ 'region' => [
@ -431,6 +443,12 @@ return [
'default' => 0, 'default' => 0,
'minitems' => 0, 'minitems' => 0,
'maxitems' => 1, 'maxitems' => 1,
'items' => [
[
'value' => '0',
'label' => $l10nPath . ':tx_events_domain_model_event.location.0',
],
],
], ],
], ],

View file

@ -123,14 +123,26 @@
<source>Location</source> <source>Location</source>
<target>Veranstaltungsort</target> <target>Veranstaltungsort</target>
</trans-unit> </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"> <trans-unit id="tx_events_domain_model_event.organizer">
<source>Organizer</source> <source>Organizer</source>
<target>Organisator</target> <target>Organisator</target>
</trans-unit> </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"> <trans-unit id="tx_events_domain_model_event.region">
<source>Region</source> <source>Region</source>
<target>Region</target> <target>Region</target>
</trans-unit> </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"> <trans-unit id="tx_events_domain_model_organizer">
<source>Organizer</source> <source>Organizer</source>
<target>Organisator</target> <target>Organisator</target>

View file

@ -93,12 +93,21 @@
<trans-unit id="tx_events_domain_model_event.location"> <trans-unit id="tx_events_domain_model_event.location">
<source>Location</source> <source>Location</source>
</trans-unit> </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"> <trans-unit id="tx_events_domain_model_event.organizer">
<source>Organizer</source> <source>Organizer</source>
</trans-unit> </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"> <trans-unit id="tx_events_domain_model_event.region">
<source>Region</source> <source>Region</source>
</trans-unit> </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"> <trans-unit id="tx_events_domain_model_event.partner">
<source>Partner</source> <source>Partner</source>
</trans-unit> </trans-unit>