From 538ae5808a845af8ddadb2b1488bca7c94ff46f6 Mon Sep 17 00:00:00 2001 From: HolgerHatGarKeineNode Date: Tue, 9 Dec 2025 23:47:58 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20Make=20`community`=20a=20r?= =?UTF-8?q?equired=20field=20in=20meetup=20create/edit=20forms=20?= =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20Add=20=E2=80=9CKeine=E2=80=9D=20placeho?= =?UTF-8?q?lder=20option=20to=20community=20select=20=E2=9C=8F=EF=B8=8F=20?= =?UTF-8?q?Translate=20community=20values=20(=E2=80=9Cbitcoin=E2=80=9D,=20?= =?UTF-8?q?=E2=80=9Ceinundzwanzig=E2=80=9D)=20on=20landing=20page=20?= =?UTF-8?q?=F0=9F=8C=8D=20Update=20German=20locale=20strings=20for=20commu?= =?UTF-8?q?nity=20names?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lang/de.json | 2 +- resources/views/livewire/meetups/create.blade.php | 2 +- resources/views/livewire/meetups/edit.blade.php | 3 ++- resources/views/livewire/meetups/landingpage.blade.php | 10 +++++++++- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/lang/de.json b/lang/de.json index 78b428d..079cd7e 100644 --- a/lang/de.json +++ b/lang/de.json @@ -554,4 +554,4 @@ "nostr.course_text": "Unser Dozent :from hat einen neuen Kurs eingestellt:\n:name\n:description\n:url\n\n#Bitcoin #Einundzwanzig", "Einundzwanzig Community": "", "Allgemeine Bitcoin Community": "" -} \ No newline at end of file +} diff --git a/resources/views/livewire/meetups/create.blade.php b/resources/views/livewire/meetups/create.blade.php index 9e6c486..f08f760 100644 --- a/resources/views/livewire/meetups/create.blade.php +++ b/resources/views/livewire/meetups/create.blade.php @@ -79,7 +79,7 @@ class extends Component { 'nostr' => ['nullable', 'string', 'max:255'], 'simplex' => ['nullable', 'string',], 'signal' => ['nullable', 'string', 'max:510'], - 'community' => ['nullable', 'string', 'max:255'], + 'community' => ['required', 'string', 'max:255'], 'visible_on_map' => ['boolean'], ]); diff --git a/resources/views/livewire/meetups/edit.blade.php b/resources/views/livewire/meetups/edit.blade.php index 7dcac53..759c29e 100644 --- a/resources/views/livewire/meetups/edit.blade.php +++ b/resources/views/livewire/meetups/edit.blade.php @@ -122,7 +122,7 @@ class extends Component { 'nostr' => ['nullable', 'string', 'max:255'], 'simplex' => ['nullable', 'string', 'max:255'], 'signal' => ['nullable', 'string', 'max:255'], - 'community' => ['nullable', 'string', 'max:255'], + 'community' => ['required', 'string', 'max:255'], ]); // Convert github_data string back to array if provided @@ -324,6 +324,7 @@ class extends Component { {{ __('Gemeinschaft') }} + {{ __('Keine') }} einundzwanzig bitcoin diff --git a/resources/views/livewire/meetups/landingpage.blade.php b/resources/views/livewire/meetups/landingpage.blade.php index e6423ca..ecd2b9a 100644 --- a/resources/views/livewire/meetups/landingpage.blade.php +++ b/resources/views/livewire/meetups/landingpage.blade.php @@ -145,7 +145,15 @@ class extends Component { @if($meetup->community)
Community -

{{ $meetup->community }}

+

+ @if ($meetup->community === 'bitcoin') + {{ __('Allgemeine Bitcoin Community') }} + @elseif ($meetup->community === 'einundzwanzig') + {{ __('Einundzwanzig Community') }} + @else + {{ $meetup->community }} + @endif +

@endif