Skip to content
Snippets Groups Projects
Verified Commit b6cf64bf authored by permcu's avatar permcu Committed by Jonathan Weth
Browse files

Implement i18n for substitutions-list

parent a12f0e23
No related branches found
No related tags found
1 merge request!373Resolve "Substitutions table for new data model"
...@@ -14,10 +14,9 @@ import CRUDList from "aleksis.core/components/generic/CRUDList.vue"; ...@@ -14,10 +14,9 @@ import CRUDList from "aleksis.core/components/generic/CRUDList.vue";
:enable-edit="false" :enable-edit="false"
> >
<template #title> <template #title>
<!-- TODO: 18n -->
<v-container> <v-container>
<v-row> <v-row>
<v-col cols="4"> Betroffene Lehrkräfte </v-col> <v-col cols="4"> {{ $t("chronos.substitutions.affected_teachers") }} </v-col>
<v-col cols="8"> <v-col cols="8">
<v-chip <v-chip
v-for="(teacher, i) in affectedTeachers" v-for="(teacher, i) in affectedTeachers"
...@@ -36,7 +35,7 @@ import CRUDList from "aleksis.core/components/generic/CRUDList.vue"; ...@@ -36,7 +35,7 @@ import CRUDList from "aleksis.core/components/generic/CRUDList.vue";
<v-spacer/> <v-spacer/>
</v-row> </v-row>
<v-row> <v-row>
<v-col> Betroffene Gruppen </v-col> <v-col> {{ $t("chronos.substitutions.affected_groups") }} </v-col>
<v-col> <v-col>
<v-chip <v-chip
v-for="group in affectedGroups" v-for="group in affectedGroups"
...@@ -74,7 +73,7 @@ import CRUDList from "aleksis.core/components/generic/CRUDList.vue"; ...@@ -74,7 +73,7 @@ import CRUDList from "aleksis.core/components/generic/CRUDList.vue";
{{ $d(new Date(endTime), "shortTime")}} {{ $d(new Date(endTime), "shortTime")}}
</span> </span>
<span v-else> <span v-else>
TODO 18n all day {{ $t("chronos.substitutions.all_day")
</span> </span>
</template> </template>
<template #teachers="{ item: { oldTeachers, newTeachers } }"> <template #teachers="{ item: { oldTeachers, newTeachers } }">
...@@ -90,7 +89,7 @@ import CRUDList from "aleksis.core/components/generic/CRUDList.vue"; ...@@ -90,7 +89,7 @@ import CRUDList from "aleksis.core/components/generic/CRUDList.vue";
</template> </template>
<template #subject="{ item: { oldSubject, newSubject } }"> <template #subject="{ item: { oldSubject, newSubject } }">
<span v-if="oldSubject === 'SUPERVISION'"> <span v-if="oldSubject === 'SUPERVISION'">
TODO i18n supervision {{ $t("chronos.substitutions.supervision") }}
</span> </span>
<span v-else-if="newSubject"> <span v-else-if="newSubject">
<strike> {{ oldSubject }} </strike> <strike> {{ oldSubject }} </strike>
...@@ -116,8 +115,7 @@ import CRUDList from "aleksis.core/components/generic/CRUDList.vue"; ...@@ -116,8 +115,7 @@ import CRUDList from "aleksis.core/components/generic/CRUDList.vue";
color="green" color="green"
text-color="white" text-color="white"
> >
<!-- TODO: i18n --> {{ $t("chronos.substitutions.cancelled") }}
CANCELLED
</v-chip> </v-chip>
{{ notes }} {{ notes }}
</template> </template>
...@@ -141,30 +139,29 @@ export default { ...@@ -141,30 +139,29 @@ export default {
query: substitutionsForDate, query: substitutionsForDate,
affectedTeachers: [], affectedTeachers: [],
affectedGroups: [], affectedGroups: [],
// TODO: i18n
headers: [ headers: [
{ {
text: "groups", text: this.$t("chronos.substitutions.groups"),
value: "groups", value: "groups",
}, },
{ {
text: "time", text: this.$t("chronos.substitutions.time"),
value: "time", value: "time",
}, },
{ {
text: "teachers", text: this.$t("chronos.substitutions.teachers"),
value: "teachers", value: "teachers",
}, },
{ {
text: "subject", text: this.$t("chronos.substitutions.subject"),
value: "subject", value: "subject",
}, },
{ {
text: "rooms", text: this.$t("chronos.substitutions.rooms"),
value: "rooms", value: "rooms",
}, },
{ {
text: "notes", text: this.$t("chronos.substitutions.notes"),
value: "notes", value: "notes",
}, },
], ],
......
...@@ -22,7 +22,18 @@ ...@@ -22,7 +22,18 @@
}, },
"menu_title": "Stundenpläne", "menu_title": "Stundenpläne",
"substitutions": { "substitutions": {
"menu_title": "Vertretungen" "menu_title": "Vertretungen",
"groups": "Gruppen",
"time": "Zeit",
"teachers": "Lehrer",
"subject": "Fach",
"rooms": "Räume",
"notes": "Notizen",
"supervision": "Aufsicht",
"cancelled": "Entfällt",
"affected_teachers": "Betroffene Lehrer",
"affected_groups": "Betroffene Gruppen",
"all_day": "Ganztägig"
}, },
"supervisions": { "supervisions": {
"menu_title_daily": "Aufsichten", "menu_title_daily": "Aufsichten",
......
...@@ -23,7 +23,18 @@ ...@@ -23,7 +23,18 @@
"menu_title_daily": "Daily lessons" "menu_title_daily": "Daily lessons"
}, },
"substitutions": { "substitutions": {
"menu_title": "Substitutions" "menu_title": "Substitutions",
"groups": "Groups",
"time": "Time",
"teachers": "Teachers",
"subject": "Subject",
"rooms": "Rooms",
"notes": "Notes",
"supervision": "Supervision",
"cancelled": "Cancelled",
"affected_teachers": "Affected teachers",
"affected_groups": "Affected groups",
"all_day": "All day"
}, },
"supervisions": { "supervisions": {
"title": "Supervision", "title": "Supervision",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment