From 0bbd1a830d16cdcaae83d79834841592b5812ed3 Mon Sep 17 00:00:00 2001 From: Christian Cueni Date: Wed, 16 Aug 2023 13:03:56 +0200 Subject: [PATCH] Add missing translations --- client/src/locales/de/translation.json | 19 +++++++++- client/src/locales/fr/translation.json | 15 ++++++-- client/src/locales/it/translation.json | 15 ++++++-- .../assignment/AssignmentIntroductionView.vue | 4 +- .../assignment/AssignmentView.vue | 4 +- .../mediaLibrary/MediaLibraryParentPage.vue | 2 +- client/src/stores/competence.ts | 3 +- client/src/utils/typeMaps.ts | 38 ++++++++++++------- 8 files changed, 71 insertions(+), 29 deletions(-) diff --git a/client/src/locales/de/translation.json b/client/src/locales/de/translation.json index b6228c71..55a8ebec 100644 --- a/client/src/locales/de/translation.json +++ b/client/src/locales/de/translation.json @@ -13,7 +13,6 @@ "Status anschauen": "Status anschauen", "TODO: Nächste Termine": "TODO: Nächste Termine", "Trainerunterlagen": "Trainerunterlagen", - "Vorbereitungsauftrag": "Vorbereitungsauftrag", "Wissens - und Verständnisfragen": "Wissens - und Verständnisfragen", "Zur Zeit sind keine Termine vorhanden": "Zur Zeit sind keine Termine vorhanden", "assignment": { @@ -69,6 +68,7 @@ "learnMore": "Erfahre mehr dazu" }, "cockpit": { + "all": "Alle", "examsDone": "Abgelegte Prüfungen von Teilnehmer.", "feedbacksDone": "Abgeschickte Feedbacks von Teilnehmer.", "notifyTask": "Benachrichtigen", @@ -197,6 +197,20 @@ "learningContent": { "markAsDone": "Als erledigt markieren" }, + "learningContentTypes": { + "attendanceCourse": "Präsenzkurs", + "casework": "Geleitete Fallarbeit", + "documents": "Dokumente", + "feedback": "Feedback", + "learningModule": "Lernmodul", + "placeholder": "In Umsetzung", + "prepAssignment": "Vorbereitungsauftrag", + "reflection": "Reflexion", + "task": "Aufgabe", + "test": "Test", + "text": "Text", + "video": "Video" + }, "learningPathPage": { "currentCircle": "Aktueller Circle", "listView": "Listenansicht", @@ -210,7 +224,7 @@ }, "login": { "demoLogin": "Demo Login", - "guidelineFile": "Registrierung _myVBV.pptx", + "guidelineFile": "Registrierung_myVBV.pdf", "guidelineText": "Erfahre wie du dich als Lernende/r registrieren kannst", "login": "Login", "ssoLogin": "SSO Login/Registration", @@ -232,6 +246,7 @@ "description": "Finde eine vollständige Liste der Bücher und anderen Medien, auf die im Kurs verwiesen wird.", "titel": "Lernmedien" }, + "overview": "Übersicht", "title": "Mediathek" }, "messages": { diff --git a/client/src/locales/fr/translation.json b/client/src/locales/fr/translation.json index 4cbd27ce..f1da5c0d 100644 --- a/client/src/locales/fr/translation.json +++ b/client/src/locales/fr/translation.json @@ -13,7 +13,6 @@ "Status anschauen": "Consulter le statut", "TODO: Nächste Termine": "TODO: prochaines dates", "Trainerunterlagen": "Documents du formateur / de la formatrice", - "Vorbereitungsauftrag": "Mandat de préparation", "Wissens - und Verständnisfragen": "Questions de connaissance et de compréhension ", "Zur Zeit sind keine Termine vorhanden": "Aucune réunion n’est prévue pour le moment", "assignment": { @@ -69,6 +68,7 @@ "learnMore": "Pour en savoir plus" }, "cockpit": { + "all": "Tous", "examsDone": "Examens remis par les participants.", "feedbacksDone": "Retours envoyés par les participants.", "notifyTask": "Notifier", @@ -85,7 +85,7 @@ "competences": "Compétences", "lastImprovements": "Dernières compétences améliorées", "notAssessed": "Compétence non évaluée", - "title": "Menu des compétences" + "title": "NaviCompétence" }, "constants": { "no": "Non", @@ -171,7 +171,7 @@ "feedback_one": "Feed-back", "feedback_other": "Feed-backs", "introduction": "Introduction", - "learningPath": "Programme de formation", + "learningPath": "Parcours de formation", "learningSequence": "Séquence", "learningUnit": "Leçon", "next": "Continuer", @@ -203,6 +203,12 @@ "learningContent": { "markAsDone": "Marquer comme effectué(e)" }, + "learningContentTypes": { + "attendanceCourse": "Cours de présence", + "feedback": "Feedback", + "prepAssignment": "Mandat de préparation", + "reflection": "Réflexion" + }, "learningPathPage": { "currentCircle": "Cercle en cours", "listView": "Affichage sous forme de liste", @@ -216,7 +222,7 @@ }, "login": { "demoLogin": "Connexion Demo", - "guidelineFile": "Régistration _myAFA.pptx", + "guidelineFile": "Inscription_myAFA.pdf", "guidelineText": "Découvre comment t'inscrire en tant qu'apprenant-e", "login": "Login", "ssoLogin": "Connexion SSO / Inscription", @@ -239,6 +245,7 @@ "description": "Trouve une liste complète des livres, manuels et autres outils qui ont été mentionnés pendant le cours.", "titel": "Outils didactiques " }, + "overview": "Aperçu", "title": "Médiathèque" }, "messages": { diff --git a/client/src/locales/it/translation.json b/client/src/locales/it/translation.json index e37814c3..97399776 100644 --- a/client/src/locales/it/translation.json +++ b/client/src/locales/it/translation.json @@ -13,7 +13,6 @@ "Status anschauen": "Vedere lo stato", "TODO: Nächste Termine": "TODO: prossime date", "Trainerunterlagen": "Documenti del/della trainer", - "Vorbereitungsauftrag": "Incarico di preparazione", "Wissens - und Verständnisfragen": "Domande di conoscenza e di comprensione", "Zur Zeit sind keine Termine vorhanden": "Al momento non ci sono scadenze", "assignment": { @@ -69,6 +68,7 @@ "learnMore": "Ottieni maggiori informazioni" }, "cockpit": { + "all": "Tutti", "examsDone": "Esami sostenuti dal/dalla partecipante.", "feedbacksDone": "Feedback inviati dal/dalla partecipante.", "notifyTask": "Inviare notifica", @@ -85,7 +85,7 @@ "competences": "Competenze", "lastImprovements": "Ultime competenze migliorate", "notAssessed": "Non valutato", - "title": "Navigatore Competenze" + "title": "NaviCompetenze" }, "constants": { "no": "No", @@ -171,7 +171,7 @@ "feedback_one": "Feedback", "feedback_other": "Feedback", "introduction": "Introduzione", - "learningPath": "Percorso formativo", + "learningPath": "Percorso di formazione", "learningSequence": "Sequenza di apprendimento", "learningUnit": "Unità di apprendimento", "next": "Avanti", @@ -203,6 +203,12 @@ "learningContent": { "markAsDone": "Contrassegnare come completato" }, + "learningContentTypes": { + "attendanceCourse": "Corso di presenza", + "feedback": "Feedback", + "prepAssignment": "Incarico di preparazione", + "reflection": "Riflessione" + }, "learningPathPage": { "currentCircle": "Circle attuale", "listView": "Vista elenco", @@ -216,7 +222,7 @@ }, "login": { "demoLogin": "Login Demo", - "guidelineFile": "Registrazione _myAFA.pptx", + "guidelineFile": "Registrazione_myAFA.pdf", "guidelineText": "Scopri come iscriverti come apprendista professionale", "login": "Login", "ssoLogin": "Login/Registrazione SSO", @@ -239,6 +245,7 @@ "description": "Trova un elenco completo di libri e altri materiali a cui si rimanda nel corso.", "titel": "Materiali didattici" }, + "overview": "Panoramica", "title": "Mediateca" }, "messages": { diff --git a/client/src/pages/learningPath/learningContentPage/assignment/AssignmentIntroductionView.vue b/client/src/pages/learningPath/learningContentPage/assignment/AssignmentIntroductionView.vue index 0d3381a8..f9fd2d61 100644 --- a/client/src/pages/learningPath/learningContentPage/assignment/AssignmentIntroductionView.vue +++ b/client/src/pages/learningPath/learningContentPage/assignment/AssignmentIntroductionView.vue @@ -41,8 +41,8 @@ const step = useRouteQuery("step"); -

{{ $t("assignment.dueDateTitle") }}

-

+

{{ $t("assignment.dueDateTitle") }}asdf

+

{{ $t("assignment.dueDateIntroduction") }}

diff --git a/client/src/pages/learningPath/learningContentPage/assignment/AssignmentView.vue b/client/src/pages/learningPath/learningContentPage/assignment/AssignmentView.vue index db6f13a1..bb3d0d60 100644 --- a/client/src/pages/learningPath/learningContentPage/assignment/AssignmentView.vue +++ b/client/src/pages/learningPath/learningContentPage/assignment/AssignmentView.vue @@ -207,8 +207,8 @@ const assignmentUser = computed(() => { :show-previous-button="showPreviousButton" :base-url="props.learningContent.frontend_url" step-query-param="step" - start-badge-text="Einleitung" - :end-badge-text="$t('Abgabe')" + :start-badge-text="$t('general.introduction')" + :end-badge-text="$t('general.submission')" close-button-variant="close" @previous="handleBack()" @next="handleContinue()" diff --git a/client/src/pages/mediaLibrary/MediaLibraryParentPage.vue b/client/src/pages/mediaLibrary/MediaLibraryParentPage.vue index ab407d65..012b5788 100644 --- a/client/src/pages/mediaLibrary/MediaLibraryParentPage.vue +++ b/client/src/pages/mediaLibrary/MediaLibraryParentPage.vue @@ -31,7 +31,7 @@ onMounted(async () => { >
  • - Übersicht + {{ $t("mediaLibrary.overview") }}
  • { return { competenceProfilePages: new Map(), - selectedCircle: { id: "all", name: "Circle: Alle" }, + selectedCircle: { id: "all", name: `Circle: ${i18next.t("Alle")}` }, availableCircles: [], } as CompetenceStoreState; }, diff --git a/client/src/utils/typeMaps.ts b/client/src/utils/typeMaps.ts index 82d41546..c2190534 100644 --- a/client/src/utils/typeMaps.ts +++ b/client/src/utils/typeMaps.ts @@ -15,13 +15,13 @@ export function learningContentTypeData( case "learnpath.LearningContentAssignment": { let title = "unknown"; if (lc.assignment_type === "CASEWORK") { - title = t("Geleitete Fallarbeit"); + title = t("learningContentTypes.casework"); } else if (lc.assignment_type === "PREP_ASSIGNMENT") { - title = t("Vorbereitungsaufgabe"); + title = t("learningContentTypes.prepAssignment"); } else if (lc.assignment_type === "REFLECTION") { - title = t("Reflexion"); + title = t("learningContentTypes.reflection"); } else if (lc.assignment_type === "CONDITION_ACCEPTANCE") { - title = t("Auftrag"); + title = t("learningContentTypes.task"); } return { title: title, @@ -29,23 +29,35 @@ export function learningContentTypeData( }; } case "learnpath.LearningContentAttendanceCourse": - return { title: "Präsenzkurs", icon: "it-icon-lc-training" }; + return { + title: t("learningContentTypes.attendanceCourse"), + icon: "it-icon-lc-training", + }; case "learnpath.LearningContentDocumentList": - return { title: "Dokumente", icon: "it-icon-lc-document" }; + return { + title: t("learningContentTypes.documents"), + icon: "it-icon-lc-document", + }; case "learnpath.LearningContentLearningModule": - return { title: "Lernmodul", icon: "it-icon-lc-learning-module" }; + return { + title: t("learningContentTypes.learningModule"), + icon: "it-icon-lc-learning-module", + }; case "learnpath.LearningContentMediaLibrary": - return { title: "Mediathek", icon: "it-icon-lc-media-library" }; + return { title: t("mediaLibrary.title"), icon: "it-icon-lc-media-library" }; case "learnpath.LearningContentVideo": - return { title: "Video", icon: "it-icon-lc-video" }; + return { title: t("learningContentTypes.video"), icon: "it-icon-lc-video" }; case "learnpath.LearningContentTest": - return { title: "Test", icon: "it-icon-lc-test" }; + return { title: t("learningContentTypes.test"), icon: "it-icon-lc-test" }; case "learnpath.LearningContentRichText": - return { title: "Text", icon: "it-icon-lc-resource" }; + return { title: t("learningContentTypes.text"), icon: "it-icon-lc-resource" }; case "learnpath.LearningContentFeedback": - return { title: "Feedback", icon: "it-icon-lc-feedback" }; + return { title: t("learningContentTypes.feedback"), icon: "it-icon-lc-feedback" }; case "learnpath.LearningContentPlaceholder": - return { title: "In Umsetzung", icon: "it-icon-lc-document" }; + return { + title: t("learningContentTypes.placeholder"), + icon: "it-icon-lc-document", + }; } // eslint-disable-next-line @typescript-eslint/ban-ts-comment