From 82cb021ce1db47dfb2896d30cb5403cfef9c7501 Mon Sep 17 00:00:00 2001 From: Jonas <86736063+JonasJoKuJonas@users.noreply.github.com> Date: Tue, 7 May 2024 12:10:23 +0200 Subject: [PATCH 1/3] Update source file en.json --- custom_components/webuntis/translations/en.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/webuntis/translations/en.json b/custom_components/webuntis/translations/en.json index 545fbac..7c29b47 100644 --- a/custom_components/webuntis/translations/en.json +++ b/custom_components/webuntis/translations/en.json @@ -97,8 +97,8 @@ "entity_id": "Notify Service ID", "target": "Platform-Specific Target Data", "data": "Platform-Specific Notification Data", - "notify_options": "Notify on", - "template": "Notify Template" + "template": "Notify Template", + "options": "Notify on" }, "data_description": { "data": "e.g.,\nnotification_icon: mdi:school-outline", From fb46dd26e6e139e432d864e2d8eec721723c3ad2 Mon Sep 17 00:00:00 2001 From: Jonas <86736063+JonasJoKuJonas@users.noreply.github.com> Date: Tue, 7 May 2024 12:10:24 +0200 Subject: [PATCH 2/3] New translations en.json (German) --- .../webuntis/translations/de.json | 28 +++++++++++++++---- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/custom_components/webuntis/translations/de.json b/custom_components/webuntis/translations/de.json index 4050dea..3b6ec69 100644 --- a/custom_components/webuntis/translations/de.json +++ b/custom_components/webuntis/translations/de.json @@ -97,15 +97,13 @@ "entity_id": "Notify Service ID", "target": "Plattformspezifische Targetdaten", "data": "Plattformspezifische Benachrichtigungs-Daten", - "code": "Stunden-Status ändert sich", - "rooms": "Raum ändert sich", - "teachers": "Lehrer ändert sich", - "cancelled": "Stunde fällt aus", - "lesson_change": "Eine Stunde wurde ausgetauscht" + "template": "Benachrichtigungs-Template", + "options": "Benachrichtigen, wenn" }, "data_description": { "data": "Bsp:\nnotification_icon: mdi:school-outline", - "entity_id": "Bsp: notify.discord" + "entity_id": "Bsp: notify.discord", + "template": "Kann Benachrichtigungs-Daten überschreiben" } }, "notify_menu": { @@ -119,6 +117,24 @@ } } }, + "selector": { + "notify_options": { + "options": { + "code": "Stunden-Status ändert sich", + "rooms": "Raum Änderung", + "teachers": "Lehrer Änderung", + "cancelled": "Stunde ausfällt", + "lesson_change": "Stunde ausgetauscht" + } + }, + "notify_template": { + "options": { + "message_title": "Nachricht & Titel", + "message": "Nachricht", + "discord": "Discord" + } + } + }, "issues": { "bad_credentials": { "fix_flow": { From 4d0e17ef94916c7cff112a3ebdeda8f135356167 Mon Sep 17 00:00:00 2001 From: Jonas <86736063+JonasJoKuJonas@users.noreply.github.com> Date: Tue, 7 May 2024 12:10:25 +0200 Subject: [PATCH 3/3] New translations en.json (Dutch) --- .../webuntis/translations/nl.json | 28 +++++++++++++++---- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/custom_components/webuntis/translations/nl.json b/custom_components/webuntis/translations/nl.json index d0519c9..945e1e3 100644 --- a/custom_components/webuntis/translations/nl.json +++ b/custom_components/webuntis/translations/nl.json @@ -97,15 +97,13 @@ "entity_id": "Notify Service ID", "target": "Platform-Specific Target Data", "data": "Platform-Specific Notification Data", - "code": "Lesson status changed", - "rooms": "Room changed", - "teachers": "Teacher changed", - "cancelled": "Lesson is cancelled", - "lesson_change": "Lesson was swapped" + "template": "Notify Template", + "options": "Notify on" }, "data_description": { "data": "e.g.,\nnotification_icon: mdi:school-outline", - "entity_id": "e.g., notify.discord" + "entity_id": "e.g., notify.discord", + "template": "may overwrite data keys" } }, "notify_menu": { @@ -119,6 +117,24 @@ } } }, + "selector": { + "notify_options": { + "options": { + "code": "Lesson status changed", + "rooms": "Room changed", + "teachers": "Teacher changed", + "cancelled": "Lesson is cancelled", + "lesson_change": "Lesson was swapped" + } + }, + "notify_template": { + "options": { + "message_title": "Message & Title", + "message": "Message", + "discord": "Discord" + } + } + }, "issues": { "bad_credentials": { "fix_flow": {