From b06fc4bcbf58222afe799defda4c4819604ced63 Mon Sep 17 00:00:00 2001 From: Lorenz Padberg Date: Tue, 11 Jul 2023 11:02:39 +0200 Subject: [PATCH] Add translations --- .../src/components/dueDates/DateEmbedding.vue | 1 - client/src/components/dueDates/DueDatesList.vue | 11 ++++++----- .../components/dueDates/DueDatesShortList.vue | 7 ++++++- client/src/locales/de/translation.json | 12 +++++++++--- client/src/locales/fr/translation.json | 6 +++--- client/src/locales/it/translation.json | 6 +++--- client/src/pages/DashboardPage.vue | 3 ++- .../learningPathPage/LearningPathPage.vue | 7 ++++--- env_secrets/local_lorenz.env | Bin 327 -> 514 bytes .../vbv_lernwelt/course/creators/test_course.py | 13 +++++-------- server/vbv_lernwelt/course_session/admin.py | 2 +- server/vbv_lernwelt/course_session/models.py | 6 +++--- 12 files changed, 42 insertions(+), 32 deletions(-) diff --git a/client/src/components/dueDates/DateEmbedding.vue b/client/src/components/dueDates/DateEmbedding.vue index bb2c8678..e8d494ca 100644 --- a/client/src/components/dueDates/DateEmbedding.vue +++ b/client/src/components/dueDates/DateEmbedding.vue @@ -10,7 +10,6 @@ const props = defineProps<{ diff --git a/client/src/components/dueDates/DueDatesList.vue b/client/src/components/dueDates/DueDatesList.vue index 1533c9d6..f5bf95cb 100644 --- a/client/src/components/dueDates/DueDatesList.vue +++ b/client/src/components/dueDates/DueDatesList.vue @@ -2,19 +2,19 @@
-
Keine Termine Vorhanden
+
{{ $t("duedates.noDueDatesAvailable") }}
@@ -26,13 +26,14 @@ import { computed } from "vue"; const props = defineProps<{ maxCount: number; dueDates: DueDate[]; + showTopBoarder: boolean; }>(); const allDueDates = computed(() => { return props.dueDates; }); -const dueDatesDiplayed = computed(() => { +const dueDatesDisplayed = computed(() => { return props.dueDates.slice(0, props.maxCount); }); diff --git a/client/src/components/dueDates/DueDatesShortList.vue b/client/src/components/dueDates/DueDatesShortList.vue index b9aa4fbe..e47a5e68 100644 --- a/client/src/components/dueDates/DueDatesShortList.vue +++ b/client/src/components/dueDates/DueDatesShortList.vue @@ -1,6 +1,10 @@ @@ -10,6 +14,7 @@ import { useCurrentCourseSession } from "@/composables"; const props = defineProps<{ maxCount: number; + showTopBoarder: boolean; }>(); const courseSession = useCurrentCourseSession(); diff --git a/client/src/locales/de/translation.json b/client/src/locales/de/translation.json index ad9eb840..9c609eea 100644 --- a/client/src/locales/de/translation.json +++ b/client/src/locales/de/translation.json @@ -11,9 +11,9 @@ "assignmentSubmitted": "Du hast deine Ergebnisse erfolgreich abgegeben.", "confirmSubmitPerson": "Hiermit bestätige ich, dass die folgende Person meine Ergebnisse bewerten soll.", "confirmSubmitResults": "Hiermit bestätige ich, dass ich die Zusammenfassung meiner Ergebnisse überprüft habe und so abgeben will.", - "dueDateIntroduction": "Reiche deine Ergebnisse pünktlich ein bis am {{date}} um {{time}} Uhr ein.", + "dueDateIntroduction": "Reiche deine Ergebnisse pünktlich ein bis am: ", "dueDateNotSet": "Keine Abgabedaten wurden erfasst für diese Durchführung", - "dueDateSubmission": "Einreichungstermin: {{date}}", + "dueDateSubmission": "Einreichungstermin:", "dueDateTitle": "Abgabetermin", "edit": "Bearbeiten", "effortTitle": "Zeitaufwand", @@ -85,12 +85,17 @@ }, "dashboard": { "courses": "Lehrgang", + "dueDatesTitle": "Termine", "nocourses": "Du wurdest noch keinem Lehrgang zugewiesen.", "welcome": "Willkommen, {{name}}" }, "dueDates": { "nextDueDates": "Nächste Termine" }, + "duedates": { + "noDueDatesAvailable": "Keine Termine vorhanden", + "showAllDueDates": "Alle Termine anzeigen" + }, "feedback": { "answers": "Antworten", "areYouSatisfied": "Wie zufrieden bist du?", @@ -185,6 +190,7 @@ "learningPathPage": { "currentCircle": "Aktueller Circle", "listView": "Listenansicht", + "nextDueDates": "Nächste Termine", "nextStep": "Nächster Schritt", "pathView": "Pfadansicht", "progressText": "Du hast {{ inProgressCount }} von {{ allCount }} Circles bearbeitet", @@ -240,4 +246,4 @@ "settings": { "emailNotifications": "Email Benachrichtigungen" } -} +} \ No newline at end of file diff --git a/client/src/locales/fr/translation.json b/client/src/locales/fr/translation.json index df0983bf..f83ec0e2 100644 --- a/client/src/locales/fr/translation.json +++ b/client/src/locales/fr/translation.json @@ -11,9 +11,9 @@ "assignmentSubmitted": "Tes résultats ont bien été transmis.", "confirmSubmitPerson": "Par la présente, je confirme que la personne suivante doit évaluer mes résultats.", "confirmSubmitResults": "Par la présente, je confirme que j’ai vérifié la synthèse de mes résultats et que je souhaite la remettre telle quelle.", - "dueDateIntroduction": "Envoie tes résultats dans les délais avant le {{date}} à {{time}} heures.", + "dueDateIntroduction": "Envoie tes résultats dans les délais avant le:", "dueDateNotSet": "Aucune date de remise n’a été spécifiée pour cette opération.", - "dueDateSubmission": "Date de clôture : {{date}}", + "dueDateSubmission": "Date de clôture: ", "dueDateTitle": "Date de remise", "edit": "Traiter", "effortTitle": "Temps nécessaire", @@ -247,4 +247,4 @@ "settings": { "emailNotifications": "Notifications par e-mail" } -} +} \ No newline at end of file diff --git a/client/src/locales/it/translation.json b/client/src/locales/it/translation.json index b1dd568b..57e6193f 100644 --- a/client/src/locales/it/translation.json +++ b/client/src/locales/it/translation.json @@ -11,9 +11,9 @@ "assignmentSubmitted": "I tuoi risultati sono stati consegnati con successo.", "confirmSubmitPerson": "Confermo che i miei risultati dovranno essere valutati dalla seguente persona.", "confirmSubmitResults": "Confermo di aver controllato il riepilogo dei miei risultati e di volerli consegnare.", - "dueDateIntroduction": "Presenta i tuoi risultati entro il {{date}} alle {{time}}.", + "dueDateIntroduction": "Presenta i tuoi risultati entro il:", "dueDateNotSet": "Non sono stati registrati dati di consegna per questo svolgimento", - "dueDateSubmission": "Termine di presentazione: {{date}}", + "dueDateSubmission": "Termine di presentazione: ", "dueDateTitle": "Termine di consegna", "edit": "Modificare", "effortTitle": "Tempo richiesto", @@ -247,4 +247,4 @@ "settings": { "emailNotifications": "Notifiche e-mail" } -} +} \ No newline at end of file diff --git a/client/src/pages/DashboardPage.vue b/client/src/pages/DashboardPage.vue index 6762d084..605e7f34 100644 --- a/client/src/pages/DashboardPage.vue +++ b/client/src/pages/DashboardPage.vue @@ -76,11 +76,12 @@ const getNextStepLink = (courseSession: CourseSession) => {

{{ $t("dashboard.nocourses") }}

-

Termine

+

{{ $t("dashboard.dueDatesTitle") }}

diff --git a/client/src/pages/learningPath/learningPathPage/LearningPathPage.vue b/client/src/pages/learningPath/learningPathPage/LearningPathPage.vue index e86ee1a4..eb44ad2b 100644 --- a/client/src/pages/learningPath/learningPathPage/LearningPathPage.vue +++ b/client/src/pages/learningPath/learningPathPage/LearningPathPage.vue @@ -92,9 +92,10 @@ const changeViewType = (viewType: ViewType) => {
-
Nächste Termine
- - +
+ {{ $t("learningPathPage.nextDueDates") }} +
+
diff --git a/env_secrets/local_lorenz.env b/env_secrets/local_lorenz.env index 2c971824867b5e8a5e8b71aacf3042dd5ce27ebc..231e4a04a16d17982c63548a5ac488a211b60f75 100644 GIT binary patch literal 514 zcmV+d0{#5}M@dveQdv+`05@HtNW1Y1N*-~LZ2q0=`M{j8dA>Zzu(IP>JQ-R8SU$=R zx7ohcp56zeK{_j$eVS)T*y=!URdS}J3LV(4xA(gh(lY@R`R*d~=$-y63P`q+%x!Yy{SqEDH1JZ!^3JdmY~orUh6t!>)t`PHK2eY1Wog2IY=O%fFnm9f7( z1PXVk1>VJu)FFJLnxW1Bw=TLQn^M^8q-l~#KM2Q>R_H?I`lb*l|KQ6OE2-(ZuBOC> zUwQNr<24>|EQAJS4{BE(L&uNxl(}dKHs70+2s|t1 z+(-mY+?1Bjb5>J-Cg0_mm%NmM+i(KKlkBcHN@sN)=;>`p6nqz818z2M0rW;!`m)?E zVQZ8EV&1faLFV*Mr4gE?rLT-t=W18qM;;+O93vH`7&lNZ>&*;Mf)HOf)74nv=|i5? zrYAdCc(q)@XUbovKf!^QmLA5v(^xh6&{;QdpA&)F4m~R%{>H;S*UVNxD2FvEj;<=> Zz{f$Z$Mop;a0?3=S|7^Oh?}^{E(pYYpT+