From b6e5fd75b318d0c6ea3c45f1cd2115a51f6f5c32 Mon Sep 17 00:00:00 2001 From: julia221501 Date: Sat, 2 Mar 2024 12:13:45 +0100 Subject: [PATCH] =?UTF-8?q?=C3=9Cbersetzung=20f=C3=BCr=20Karten=20und=20Ve?= =?UTF-8?q?rl=C3=A4ufe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ComparisonOptionsPanel.vue | 32 ++++++++++++++--------- src/de.ts | 11 ++++++++ src/en.ts | 11 ++++++++ 3 files changed, 42 insertions(+), 12 deletions(-) diff --git a/src/components/ComparisonOptionsPanel.vue b/src/components/ComparisonOptionsPanel.vue index e11ac57..6db5b9c 100644 --- a/src/components/ComparisonOptionsPanel.vue +++ b/src/components/ComparisonOptionsPanel.vue @@ -5,7 +5,7 @@ @click.stop="isOpen = !isOpen" @click="newVersion = false" > - Karten und Verlauf + {{ t("versiontitle") }} @@ -17,10 +17,10 @@
- Aktuelle Karte:  + {{ t("currentversion") }} {{ visibleNWKVersion?.title || "" }} - vom + {{ t("versionfrom") }} {{ visibleNWKVersion?.date?.substring(8, 10) + @@ -54,7 +54,7 @@ - Neue leere Karte + {{ t("newemptyversion") }} @@ -67,14 +67,14 @@ - Karte duplizieren + {{ t("duplicateversion") }} - Abbrechen + {{ t("cancel") }} @@ -154,7 +154,7 @@ @click.stop="newVersion = false" :disabled="versions.length <= 1" > - Karte Löschen + {{ t("deleteversion") }}
@@ -170,6 +170,8 @@ import { defineComponent, ref, computed, watch } from "vue"; import { useStore } from "@/store"; import { NWKVersion } from "@/data/NWKVersion"; +import de from "@/de"; +import en from "@/en"; //type InputType = HTMLInputElement | HTMLTextAreaElement; @@ -182,6 +184,12 @@ export default defineComponent({ }, }, */ + mixins: [de, en], + methods: { + t(prop: string) { + return this[document.documentElement.lang][prop]; + }, + }, setup() { const store = useStore(); diff --git a/src/de.ts b/src/de.ts index b7354b4..19b0993 100644 --- a/src/de.ts +++ b/src/de.ts @@ -179,6 +179,17 @@ export default { network_without_professional_help: "Netzwerk ohne prof. Hilfe", entire_network: "gesamtes Netzwerk", lang: "de", + //Karten und Verläufe: + versiontitle: "Karten und Verläufe", + currentversion: "Aktuelle Karte: ", + versionfrom: " vom ", + newemptyversion: "Neue leere Karte", + duplicateversion: "Karte duplizieren", + changeversion: "Karte wechseln", + title: "Titel", + date: "Datum", + deleteversion: "Karte löschen", + titleplaceholder: "Titel der aktuellen Version", }, }; }, diff --git a/src/en.ts b/src/en.ts index d0bf5e4..4123429 100644 --- a/src/en.ts +++ b/src/en.ts @@ -177,6 +177,17 @@ export default { network_without_professional_help: "Network without Professional Help", entire_network: "Entire Network", lang: "en", + //Karten und Verläufe: + versiontitle: "Maps and versions", + currentversion: "Current map: ", + versionfrom: " from ", + newemptyversion: "New empty map", + duplicateversion: "Duplicate map", + changeversion: "Change map", + title: "Title", + date: "Date", + deleteversion: "Delete map", + titleplaceholder: "Title of the current version", }, }; },