Skip to content

Commit

Permalink
add missing translations and html
Browse files Browse the repository at this point in the history
  • Loading branch information
davwas committed Sep 22, 2023
1 parent 3b0b3f3 commit 47ac1fd
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 11 deletions.
3 changes: 2 additions & 1 deletion locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,8 @@
"distributeTheFollowingLinkToTheTeacher": "Verteile folgenden Link an die Lehrkraft:"
},
"text": {
"beforeUsingThe": "Bevor die Nutzung der {{title}} möglich ist, muss die Lehrkraft den Einwilligungsprozess durchlaufen haben."
"beforeUsingThe": "Bevor die Nutzung der {{title}} möglich ist, muss die Lehrkraft den Einwilligungsprozess durchlaufen haben.",
"toInvite": "Um in die {{shortTitle}} einzuladen, muss folgender Link verteilt werden:"
}
},
"form_Policy": {
Expand Down
3 changes: 2 additions & 1 deletion locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,8 @@
"distributeTheFollowingLinkToTheTeacher": "Give the following link to the teacher:"
},
"text": {
"beforeUsingThe": "Before the use of the {{title}} possible, the teacher must have gone through the consent process."
"beforeUsingThe": "Before the use of the {{title}} possible, the teacher must have gone through the consent process.",
"toInvite": "To invite to the {{shortTitle}}, send the following link:"
}
},
"form_Policy": {
Expand Down
3 changes: 2 additions & 1 deletion locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,8 @@
"distributeTheFollowingLinkToTheTeacher": "Comparte el siguiente enlace con el profesor:"
},
"text": {
"beforeUsingThe": "Antes de que sea posible el uso de {{title}}, el profesor debe haber pasado por el proceso de consentimiento."
"beforeUsingThe": "Antes de que sea posible el uso de {{title}}, el profesor debe haber pasado por el proceso de consentimiento.",
"toInvite": "Para invitar a la {{shortTitle}}, envía el siguiente enlace:"
}
},
"form_Policy": {
Expand Down
3 changes: 2 additions & 1 deletion locales/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,8 @@
"distributeTheFollowingLinkToTheTeacher": "Дайте викладачу таке посилання:"
},
"text": {
"beforeUsingThe": "Перш ніж можливе використання {{title}}, викладач повинен пройти процедуру отримання згоди."
"beforeUsingThe": "Перш ніж можливе використання {{title}}, викладач повинен пройти процедуру отримання згоди.",
"toInvite": "Щоб запросити на {{shortTitle}}, надішліть наступне посилання:"
}
},
"form_Problem": {
Expand Down
4 changes: 2 additions & 2 deletions views/administration/forms/form-invitation-student.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
</label>
{{else}}
<label for="invitation-link">
{{$t "administration.form_InvitationStudent.label.distributeLinkToInvite" (dict "shortTitle" @root.theme.short_title)}}
{{$t "administration.form_InvitationStudent.label.distributeLinkToInvite" (dict "shortTitle" @root.theme.theme_title)}}
</label>
<p>
{{{$t "administration.form_InvitationStudent.text.studentUnderYears" (dict "age" CONSENT_WITHOUT_PARENTS_MIN_AGE_YEARS)}}}
</p>
<p>
{{$t "administration.form_InvitationStudent.text.beforeTheSchoolCloudCanBeUsed" (dict "shortTitle" @root.theme.short_title) }}
{{$t "administration.form_InvitationStudent.text.beforeTheSchoolCloudCanBeUsed" (dict "shortTitle" @root.theme.theme_title) }}
</p>
{{/ifeq}}
{{/ifeq}}
Expand Down
22 changes: 17 additions & 5 deletions views/administration/forms/form-invitation-teacher.hbs
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
<input name="schoolId" type="hidden" data-force-value="true" value="{{currentSchool}}" />
<div class="form-group">
<p>
{{$t "administration.form_InvitationTeacher.text.beforeUsingThe" (dict "shortTitle" theme.title) }}
</p>
<label for="invitation-link">{{$t "administration.form_InvitationTeacher.label.distributeTheFollowingLinkToTheTeacher" }}</label>
{{#ifeq @root.theme.name "brb"}}
<label for="invitation-link" class="mb-1">
{{$t "administration.form_InvitationTeacher.text.toInvite" (dict "shortTitle" @root.theme.theme_title)}}
</label>
{{else}}
{{#ifeq @root.theme.name "n21"}}
<label for="invitation-link" class="mb-1">
{{$t "administration.form_InvitationTeacher.text.toInvite" (dict "shortTitle" @root.theme.theme_title)}}
</label>
{{else}}
<p>
{{$t "administration.form_InvitationTeacher.text.beforeUsingThe" (dict "title" @root.theme.theme_title) }}
</p>
<label for="invitation-link">{{$t "administration.form_InvitationTeacher.label.distributeTheFollowingLinkToTheTeacher" }}</label>
{{/ifeq}}
{{/ifeq}}
<input id="invitation-link" class="form-control" name="invitation" type="text" />
</div>
</div>

0 comments on commit 47ac1fd

Please sign in to comment.