diff --git a/app/Nova/City.php b/app/Nova/City.php index ee89c377..8f85a787 100644 --- a/app/Nova/City.php +++ b/app/Nova/City.php @@ -24,6 +24,11 @@ class City extends Resource */ public static $title = 'name'; + public static function label() + { + return __('City'); + } + /** * The columns that should be searched. * @var array diff --git a/app/Nova/Venue.php b/app/Nova/Venue.php index f24220c8..0ac7cee9 100644 --- a/app/Nova/Venue.php +++ b/app/Nova/Venue.php @@ -22,6 +22,11 @@ class Venue extends Resource */ public static $title = 'name'; + public static function label() + { + return __('Venue'); + } + /** * The columns that should be searched. * @var array @@ -53,10 +58,10 @@ class Venue extends Resource Text::make('Slug') ->exceptOnForms(), - Text::make('Street') + Text::make(__('Street'), 'street') ->rules('required', 'string'), - BelongsTo::make('City'), + BelongsTo::make(__('City'), 'city', City::class), ]; } diff --git a/app/Providers/NovaServiceProvider.php b/app/Providers/NovaServiceProvider.php index 66dff363..876acace 100644 --- a/app/Providers/NovaServiceProvider.php +++ b/app/Providers/NovaServiceProvider.php @@ -78,7 +78,7 @@ class NovaServiceProvider extends NovaApplicationServiceProvider MenuSection::dashboard(Main::class) ->icon('lightning-bolt'), - MenuSection::make('Locations', [ + MenuSection::make(__('Locations'), [ MenuItem::resource(City::class), MenuItem::resource(Venue::class), ]) diff --git a/lang/de.json b/lang/de.json index eb4c27de..34c489a7 100644 --- a/lang/de.json +++ b/lang/de.json @@ -1,8 +1,17 @@ { "Orange Pill Book Case": "Wie viele Bitcoin-Bücher hast du hinzu gefügt?", "Book": "Buch", + "Course Events": "Kurs-Termine", + "Course": "Kurs", "Bookcase": "Bücher-Schrank", "Article": "Artikel", + "Libraries": "Bibliotheken", + "Library Items": "Bibliothekseinträge", + "Episodes": "Episoden", + "Book Cases": "Bücher-Schränke", + "Inputs": "Eingaben", + "First name": "Vorname", + "Last name": "Nachname", "Markdown Article": "Interner Artikel", "Youtube Video": "Youtube Video", "Vimeo Video": "Vimeo Video", @@ -14,6 +23,9 @@ "Lecturer": "Dozent", "Lecturers": "Dozenten", "Cities": "Städte", + "Locations": "Orte", + "City": "Stadt", + "Venue": "Veranstaltungs-Ort", "Venues": "Veranstaltungs-Orte", "Courses": "Kurse", "Events": "Termine", @@ -21,6 +33,8 @@ "Registrations": "Registrierungen", "Categories": "Kategorien", "Countries": "Länder", + "Country": "Land", + "Street": "Straße", "Users": "Benutzer", "I want to submit new courses on this platform": "Ich bin Dozent und möchte neue Kurse auf dieser Plattform einstellen", "(and :count more error)": "(und :count weiterer Fehler)",