Skip to content
Snippets Groups Projects
Commit f5b6ff77 authored by permcu's avatar permcu
Browse files

Add i18n to absence-creation-dialog

parent 19f30750
No related branches found
No related tags found
1 merge request!356Add dialog for creation of long-term absences
......@@ -16,8 +16,13 @@
</create-button>
</template>
<template #title>
<!-- Abwesenheit/Entschuldigung erfassen -->
<!-- Abwesenheit/Entschuldigung Zusammenfassung -->
<div>
{{ $t("alsijil.coursebook.absences.title") }}
</div>
<span v-if="!form" class="px-2">·</span>
<div v-if="!form">
{{ $t("alsijil.coursebook.absences.summary") }}
</div>
</template>
<template #content>
<absence-creation-form v-if="form"
......@@ -117,7 +122,7 @@ export default {
this.comment = "";
this.absenceReason = "";
this.popup = false;
// $toastSuccess("TODO");
$toastSuccess("alsijil.coursebook.absences.success");
})
.catch((error) => {
popup = false;
......
......@@ -2,7 +2,7 @@
<!-- MAYBE introduce a minimal variant of CRUDIterator -->
<!-- with most features disabled for this list usecase -->
<c-r-u-d-iterator
i18n-key="TODO"
i18n-key=""
:gql-query="gqlQuery"
:gql-additional-query-args="gqlArgs"
:enable-search="false"
......@@ -24,8 +24,8 @@
</div>
<v-spacer />
<div>
<!-- TODO i18 Stunden -->
{{ person.lessons.length }} Stunden
{{ person.lessons.length }}
{{ $t("alsijil.coursebook.absences.lessons") }}
</div>
</v-expansion-panel-header>
<v-expansion-panel-content>
......
......@@ -49,7 +49,13 @@
}
}
},
"title_plural": "Kursbuch"
"title_plural": "Kursbuch",
"absences": {
"title": "Abwesenheiten erfassen",
"summary": "Zusammenfassung",
"lessons": "Stunden",
"success": "Die Abwesenheiten wurden erfolgreich erstellt."
}
},
"excuse_types": {
"menu_title": "Entschuldigungsarten"
......
......@@ -75,7 +75,13 @@
"filter_for_obj": "Filter for group and course"
},
"no_data": "No lessons for the selected groups and courses in this period",
"no_results": "No search results for {search}"
"no_results": "No search results for {search}",
"absences": {
"title": "Capture absences",
"summary": "Summary",
"lessons": "lessons",
"success": "The absences were created successfully."
}
}
}
}
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