From 8bf65ffb004a6ef6edf445cc6a8c688069a3c221 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Sat, 3 Feb 2024 22:55:24 +0100 Subject: [PATCH] Translate Event ComponentDetails --- components/EventIndex.php | 4 ++-- components/EventRegister.php | 4 ++-- lang/de.json | 4 ++++ lang/en.json | 4 ++++ 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/components/EventIndex.php b/components/EventIndex.php index ea666f0..3f03c51 100644 --- a/components/EventIndex.php +++ b/components/EventIndex.php @@ -7,8 +7,8 @@ class EventIndex extends EventManager public function componentDetails() { return [ - 'name' => 'EventOverview Component', - 'description' => 'No description provided yet...' + 'name' => __('event_index_component_name'), + 'description' => __('event_index_component_description'), ]; } diff --git a/components/EventRegister.php b/components/EventRegister.php index 1d76266..de04f76 100644 --- a/components/EventRegister.php +++ b/components/EventRegister.php @@ -7,8 +7,8 @@ class EventRegister extends EventManager public function componentDetails() { return [ - 'name' => 'EventRegister Component', - 'description' => 'No description provided yet...' + 'name' => __('event_register_component_name'), + 'description' => __('event_register_component_description'), ]; } diff --git a/lang/de.json b/lang/de.json index f09fc8b..e5d9e86 100644 --- a/lang/de.json +++ b/lang/de.json @@ -5,5 +5,9 @@ "properties.index_page_title": "Seite für Übersicht", "properties.single_page_title": "Seite für Einzelansicht", "properties.register_page_title": "Seite zum anmelden", + "event_index_component_name": "Veranstaltungs-Übersicht", + "event_index_component_description": "Übersicht aller bevorstehenden Adrema-Veranstaltungen.", + "event_register_component_name": "Veranstaltungs-Anmeldung", + "event_register_component_description": "Für einzelne Veranstaltung anmelden.", "properties.event_slug_title": "Veranstaltung slug" } diff --git a/lang/en.json b/lang/en.json index 499f36b..d0a5708 100644 --- a/lang/en.json +++ b/lang/en.json @@ -6,6 +6,10 @@ "properties.single_page_title": "Page for single view", "properties.register_page_title": "Page for registration", "properties.event_slug_title": "Event slug", + "event_index_component_name": "Event overview", + "event_index_component_description": "Overview of all upcoming Adrema-Events", + "event_register_component_name": "Event-Registration", + "event_register_component_description": "Register for a single event.", "errors.not_all_pages_set": "You didn't assign all pages. Please edit your components.", "errors.page_not_found": "One page cannot be found. Event component cannot be rendered.", "errors.slug_not_found": "You need to set a placeholder in page urls to set the event slug (\":slug\")",