Skip to content
Snippets Groups Projects
Commit 895e12df authored by Julian's avatar Julian
Browse files

Translate coursebook

parent 6b6cb08b
No related branches found
No related tags found
2 merge requests!352Draft: Resolve "Add dialog with each lesson's students",!350Resolve "Add simple course book list"
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
dense dense
filled filled
v-if="compact" v-if="compact"
label="Thema" :label="$t('alsijil.coursebook.summary.topic')"
:value="documentation.topic" :value="documentation.topic"
@input="topic=$event" @input="topic=$event"
@focusout="save" @focusout="save"
...@@ -16,21 +16,29 @@ ...@@ -16,21 +16,29 @@
outlined outlined
@click="$emit('open')" @click="$emit('open')"
> >
Hausaufgaben: {{ truncate(documentation.homework) }} {{
documentation.homework
? $t("alsijil.coursebook.summary.homework.value", {homework: truncate(documentation.homework)})
: $t("alsijil.coursebook.summary.homework.empty")
}}
</v-chip> </v-chip>
<v-chip <v-chip
v-if="compact" v-if="compact"
outlined outlined
@click="$emit('open')" @click="$emit('open')"
> >
Gruppennotiz: {{ truncate(documentation.groupNote) }} {{
documentation.groupNote
? $t("alsijil.coursebook.summary.group_note.value", {groupNote: truncate(documentation.groupNote)})
: $t("alsijil.coursebook.summary.group_note.empty")
}}
</v-chip> </v-chip>
<!-- not compact --> <!-- not compact -->
<!-- Are focusout & enter enough trigger? --> <!-- Are focusout & enter enough trigger? -->
<v-text-field <v-text-field
filled filled
v-if="!compact" v-if="!compact"
label="Thema" :label="$t('alsijil.coursebook.summary.topic')"
:value="documentation.topic" :value="documentation.topic"
@input="topic=$event" @input="topic=$event"
/> />
...@@ -38,7 +46,7 @@ ...@@ -38,7 +46,7 @@
filled filled
auto-grow auto-grow
v-if="!compact" v-if="!compact"
label="Hausaufgaben" :label="$t('alsijil.coursebook.summary.homework.label')"
:value="documentation.homework" :value="documentation.homework"
@input="homework=$event" @input="homework=$event"
/> />
...@@ -46,7 +54,7 @@ ...@@ -46,7 +54,7 @@
filled filled
auto-grow auto-grow
v-if="!compact" v-if="!compact"
label="Gruppennotiz" :label="$t('alsijil.coursebook.summary.group_note.label')"
:value="documentation.groupNote" :value="documentation.groupNote"
@input="groupNote=$event" @input="groupNote=$event"
/> />
......
...@@ -31,6 +31,23 @@ ...@@ -31,6 +31,23 @@
}, },
"all_lessons": { "all_lessons": {
"menu_title": "Alle Stunden" "menu_title": "Alle Stunden"
},
"coursebook": {
"menu_title": "Kursbuch",
"page_title": "Kursbuch für {name}",
"summary": {
"topic": "Thema",
"homework": {
"label": "Hausaufgaben",
"value": "Hausaufgaben: {homework}",
"empty": "Keine Hausaufgaben"
},
"group_note": {
"label": "Gruppennotiz",
"value": "Gruppennotiz: {groupNote}",
"empty": "Keine Gruppennotiz"
}
}
} }
} }
} }
...@@ -31,6 +31,23 @@ ...@@ -31,6 +31,23 @@
"all_lessons": { "all_lessons": {
"menu_title": "All lessons" "menu_title": "All lessons"
}, },
"menu_title": "Class register" "menu_title": "Class register",
"coursebook": {
"menu_title": "Coursebook",
"page_title": "Coursebook for {name}",
"summary": {
"topic": "Topic",
"homework": {
"label": "Homework",
"value": "Homework: {homework}",
"empty": "No homework"
},
"group_note": {
"label": "Group note",
"value": "Group note: {groupNote}",
"empty": "No group note"
}
}
}
} }
} }
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