Add text, move text to translations file

This commit is contained in:
Christian Cueni 2023-01-10 11:02:30 +01:00
parent e197a17f15
commit 063473469a
3 changed files with 23 additions and 9 deletions

View File

@ -18,7 +18,8 @@
"exam": "Prüfung | Prüfungen", "exam": "Prüfung | Prüfungen",
"examResult": "Prüfungsresultat | Prüfungsresultate", "examResult": "Prüfungsresultat | Prüfungsresultate",
"certificate": "Zertifikat | Zertifikate", "certificate": "Zertifikat | Zertifikate",
"notification": "Benachrichtigung | Benachrichtigungen" "notification": "Benachrichtigung | Benachrichtigungen",
"profileLink": "Profil anzeigen"
}, },
"mainNavigation": { "mainNavigation": {
"logout": "Abmelden", "logout": "Abmelden",
@ -36,9 +37,13 @@
"duration": "Dauer", "duration": "Dauer",
"circleContentBoxTitle": "Das lernst du in diesem Circle.", "circleContentBoxTitle": "Das lernst du in diesem Circle.",
"gotQuestions": "Hast du Fragen?", "gotQuestions": "Hast du Fragen?",
"contactExpertButton": "Fachexpertin kontaktieren",
"contactExpertDescription": "Tausche dich mit der Fachexpertin für den Circle {circleName} aus.",
"learnMore": "Erfahre mehr dazu",
"documents": { "documents": {
"title": "Unterlagen", "title": "Unterlagen",
"description": "Stelle deinen Lernenden zusätzliche Inhalte zur Verfügung.", "expertDescription": "Stelle deinen Lernenden zusätzliche Inhalte zur Verfügung.",
"userDescription": "Hier findest du die Unterlagen, die dir die Fachexpertin zur Verfügung gestellt hat.",
"action": "Unterlagen hochladen", "action": "Unterlagen hochladen",
"modalAction": "Datei auswählen", "modalAction": "Datei auswählen",
"fileLabel": "Datei", "fileLabel": "Datei",

View File

@ -172,7 +172,7 @@ function setActiveClasses(translationKey: string) {
<router-link <router-link
:to="`/course/${props.courseSlug}/cockpit/profile/${csu.user_id}`" :to="`/course/${props.courseSlug}/cockpit/profile/${csu.user_id}`"
> >
{{ $t("cockpit.profileLink") }} {{ $t("general.profileLink") }}
</router-link> </router-link>
</template> </template>
</ItPersonRow> </ItPersonRow>

View File

@ -155,7 +155,7 @@ async function uploadDocument(data: DocumentUploadData) {
class="link" class="link"
:to="`/course/${courseSlug}/cockpit/profile/${profileUser.user_id}`" :to="`/course/${courseSlug}/cockpit/profile/${profileUser.user_id}`"
> >
Profil anzeigen {{ $t("general.profileLink") }}
</router-link> </router-link>
</div> </div>
</div> </div>
@ -193,7 +193,7 @@ async function uploadDocument(data: DocumentUploadData) {
</div> </div>
<div v-if="!props.readonly" class="inline-flex items-center"> <div v-if="!props.readonly" class="inline-flex items-center">
<it-icon-message class="mr-2" /> <it-icon-message class="mr-2" />
Fachexpertin kontaktieren {{ $t("circlePage.contactExpertButton") }}
</div> </div>
</div> </div>
@ -210,13 +210,18 @@ async function uploadDocument(data: DocumentUploadData) {
class="btn-primary mt-4 text-xl" class="btn-primary mt-4 text-xl"
@click="circleStore.page = 'OVERVIEW'" @click="circleStore.page = 'OVERVIEW'"
> >
Erfahre mehr dazu {{ $t("circlePage.learnMore") }}
</button> </button>
</div> </div>
<div v-if="!props.readonly" class="block border mt-8 p-6"> <div v-if="!props.readonly" class="block border mt-8 p-6">
<h3 class="text-blue-dark"> <h3 class="text-blue-dark">
{{ $t("circlePage.documents.title") }} {{ $t("circlePage.documents.title") }}
</h3> </h3>
<div v-if="!courseSessionsStore.canUploadCircleDocuments">
<div class="leading-relaxed mt-4">
{{ $t("circlePage.documents.userDescription") }}
</div>
</div>
<ol <ol
v-if=" v-if="
courseSessionsStore && courseSessionsStore &&
@ -251,7 +256,7 @@ async function uploadDocument(data: DocumentUploadData) {
</ol> </ol>
<div v-if="courseSessionsStore.canUploadCircleDocuments"> <div v-if="courseSessionsStore.canUploadCircleDocuments">
<div class="leading-relaxed mt-4"> <div class="leading-relaxed mt-4">
{{ $t("circlePage.documents.description") }} {{ $t("circlePage.documents.expertDescription") }}
</div> </div>
<button <button
class="btn-primary mt-4 text-xl" class="btn-primary mt-4 text-xl"
@ -265,10 +270,14 @@ async function uploadDocument(data: DocumentUploadData) {
<div v-if="!props.readonly" class="expert border mt-8 p-6"> <div v-if="!props.readonly" class="expert border mt-8 p-6">
<h3 class="text-blue-dark">{{ $t("circlePage.gotQuestions") }}</h3> <h3 class="text-blue-dark">{{ $t("circlePage.gotQuestions") }}</h3>
<div class="leading-relaxed mt-4"> <div class="leading-relaxed mt-4">
Tausche dich mit der Fachexpertin aus für den Circle Analyse aus. {{
$t("circlePage.contactExpertDescription", {
circleName: circleStore.circle?.title,
})
}}
</div> </div>
<button class="btn-secondary mt-4 text-xl"> <button class="btn-secondary mt-4 text-xl">
Fachexpertin kontaktieren {{ $t("circlePage.contactExpertButton") }}
</button> </button>
</div> </div>
</div> </div>