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";
:enable-edit="false"
>
<template #title>
<!-- TODO: 18n -->
<v-container>
<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-chip
v-for="(teacher, i) in affectedTeachers"
......@@ -36,7 +35,7 @@ import CRUDList from "aleksis.core/components/generic/CRUDList.vue";
<v-spacer/>
</v-row>
<v-row>
<v-col> Betroffene Gruppen </v-col>
<v-col> {{ $t("chronos.substitutions.affected_groups") }} </v-col>
<v-col>
<v-chip
v-for="group in affectedGroups"
......@@ -74,7 +73,7 @@ import CRUDList from "aleksis.core/components/generic/CRUDList.vue";
{{ $d(new Date(endTime), "shortTime")}}
</span>
<span v-else>
TODO 18n all day
{{ $t("chronos.substitutions.all_day")
</span>
</template>
<template #teachers="{ item: { oldTeachers, newTeachers } }">
......@@ -90,7 +89,7 @@ import CRUDList from "aleksis.core/components/generic/CRUDList.vue";
</template>
<template #subject="{ item: { oldSubject, newSubject } }">
<span v-if="oldSubject === 'SUPERVISION'">
TODO i18n supervision
{{ $t("chronos.substitutions.supervision") }}
</span>
<span v-else-if="newSubject">
<strike> {{ oldSubject }} </strike>
......@@ -116,8 +115,7 @@ import CRUDList from "aleksis.core/components/generic/CRUDList.vue";
color="green"
text-color="white"
>
<!-- TODO: i18n -->
CANCELLED
{{ $t("chronos.substitutions.cancelled") }}
</v-chip>
{{ notes }}
</template>
......@@ -141,30 +139,29 @@ export default {
query: substitutionsForDate,
affectedTeachers: [],
affectedGroups: [],
// TODO: i18n
headers: [
{
text: "groups",
text: this.$t("chronos.substitutions.groups"),
value: "groups",
},
{
text: "time",
text: this.$t("chronos.substitutions.time"),
value: "time",
},
{
text: "teachers",
text: this.$t("chronos.substitutions.teachers"),
value: "teachers",
},
{
text: "subject",
text: this.$t("chronos.substitutions.subject"),
value: "subject",
},
{
text: "rooms",
text: this.$t("chronos.substitutions.rooms"),
value: "rooms",
},
{
text: "notes",
text: this.$t("chronos.substitutions.notes"),
value: "notes",
},
],
......
......@@ -22,7 +22,18 @@
},
"menu_title": "Stundenpläne",
"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": {
"menu_title_daily": "Aufsichten",
......
......@@ -23,7 +23,18 @@
"menu_title_daily": "Daily lessons"
},
"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": {
"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