From 02a1d9d63456b6c6d07a022803c43edf37bee61e Mon Sep 17 00:00:00 2001 From: Benjamin Takats Date: Wed, 14 Dec 2022 12:03:38 +0100 Subject: [PATCH] translations updated --- app/Nova/Lecturer.php | 2 +- app/Nova/Meetup.php | 2 +- app/Nova/MeetupEvent.php | 10 +++++++--- lang/de.json | 4 ++++ 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/app/Nova/Lecturer.php b/app/Nova/Lecturer.php index 12810b74..2fe85ba0 100644 --- a/app/Nova/Lecturer.php +++ b/app/Nova/Lecturer.php @@ -65,7 +65,7 @@ class Lecturer extends Resource Images::make('Avatar', 'avatar') ->conversionOnIndexView('thumb'), - Images::make('Images', 'images') + Images::make(__('Images'), 'images') ->conversionOnIndexView('thumb') ->help('Lade hier Bilder hoch, um sie eventuell später in der Markdown Description einzufügen. Du musst vorher aber Speichern.'), diff --git a/app/Nova/Meetup.php b/app/Nova/Meetup.php index 16404f14..2f26a4e2 100644 --- a/app/Nova/Meetup.php +++ b/app/Nova/Meetup.php @@ -54,7 +54,7 @@ class Meetup extends Resource Text::make('Link') ->rules('required', 'string'), - BelongsTo::make('City')->searchable(), + BelongsTo::make(__('City'), 'city', City::class)->searchable(), ]; } diff --git a/app/Nova/MeetupEvent.php b/app/Nova/MeetupEvent.php index a3a9d13f..f184a764 100644 --- a/app/Nova/MeetupEvent.php +++ b/app/Nova/MeetupEvent.php @@ -22,6 +22,11 @@ class MeetupEvent extends Resource */ public static $title = 'id'; + public static function label() + { + return __('Meetup Event'); + } + /** * The columns that should be searched. * @var array @@ -45,10 +50,9 @@ class MeetupEvent extends Resource DateTime::make(__('Start'), 'start'), - Text::make('Location') - ->rules('required', 'string'), + Text::make(__('Location'), 'location'), - Text::make('Description') + Text::make(__('Description'), 'description') ->rules('required', 'string') ->hideFromIndex(), diff --git a/lang/de.json b/lang/de.json index 34c489a7..63e48a8f 100644 --- a/lang/de.json +++ b/lang/de.json @@ -7,11 +7,15 @@ "Article": "Artikel", "Libraries": "Bibliotheken", "Library Items": "Bibliothekseinträge", + "Images": "Bilder", "Episodes": "Episoden", "Book Cases": "Bücher-Schränke", "Inputs": "Eingaben", "First name": "Vorname", "Last name": "Nachname", + "Description": "Beschreibung", + "Location": "Ort", + "Meetup Event": "Meetup-Termin", "Markdown Article": "Interner Artikel", "Youtube Video": "Youtube Video", "Vimeo Video": "Vimeo Video",