diff --git a/src/app/components/creator/content-list/content-list.component.ts b/src/app/components/creator/content-list/content-list.component.ts index c5b0d7564ca1df5a1098812b48ad5e58a88ffe89..5ff4280607b8d3cc01f98c4a376a732e6fa7bbc5 100644 --- a/src/app/components/creator/content-list/content-list.component.ts +++ b/src/app/components/creator/content-list/content-list.component.ts @@ -150,7 +150,9 @@ export class ContentListComponent implements OnInit { } else { switch (action.valueOf()) { case 'delete': - this.notificationService.show('Content "' + this.contents[index].subject + '" deleted.'); + this.translateService.get('content.content-deleted').subscribe(message => { + this.notificationService.show(message); + }); this.contentService.deleteContent(this.contents[index].id).subscribe(); this.contents.splice(index, 1); if (this.contents.length === 0) { @@ -159,8 +161,8 @@ export class ContentListComponent implements OnInit { break; case 'update': this.contents[index] = this.contentCBackup; - this.contentService.updateChoiceContent(this.contentCBackup).subscribe( () => { - this.notificationService.show('Content "' + this.contents[index].subject + '" updated.'); + this.translateService.get('content.content-updated').subscribe(message => { + this.notificationService.show(message); }); break; case 'abort': diff --git a/src/assets/i18n/creator/de.json b/src/assets/i18n/creator/de.json index 0ba9770c0a9fbf05d6a07f7d04dd76f710af92d7..02f3c070b2eb0677e16da7f6dfdcf6a8355c56d7 100644 --- a/src/assets/i18n/creator/de.json +++ b/src/assets/i18n/creator/de.json @@ -47,7 +47,7 @@ "answer-recovered": "Antwort wiederhergestellt.", "only-one-true": "Im Single-Modus ist nur eine richtige Antwort erlaubt.", "reset-all": "Alle Eingaben wurden zurückgesetzt.", - "need-answers": "Auswahlfragen brauchen Antworten. Bitte fügen Sie Antworten hinzu", + "need-answers": "Auswahlfragen brauchen Antworten. Bitte fügen Sie Antworten hinzu.", "select-one": "Im Single-Choice-Modus muss es eine richtige Antwort geben.", "at-least-one": "Im Multiple-Choice-Modus muss es mindestens eine richtige Antwort geben.", "undo": "Rückgängig", @@ -55,7 +55,9 @@ "delete": "Löschen", "abort": "Abbrechen", "delete-answer": "Antwort löschen", - "edit-answer": "Antwort bearteiten" + "edit-answer": "Antwort bearteiten", + "content-deleted": "Frage wurde gelöscht.", + "content-updated": "Frage wurde aktualisiert." }, "session": { "session-name": "Name der Session", diff --git a/src/assets/i18n/creator/en.json b/src/assets/i18n/creator/en.json index 355b3f81a15c790be084875dcdf0447c506645ab..9850dd2313ba06d4381d953339fef6c188b0fd3c 100644 --- a/src/assets/i18n/creator/en.json +++ b/src/assets/i18n/creator/en.json @@ -54,7 +54,9 @@ "delete": "Delete", "abort": "Abort", "delete-answer": "Delete answer", - "edit-answer": "Edit answer" + "edit-answer": "Edit answer", + "content-deleted": "Content has been deleted.", + "content-updated": "Content has been updated." }, "session": { "session-name": "Session name",