From 6f06e15e9b870db08853c610ddfa9520f2aaf275 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de>
Date: Tue, 5 Feb 2019 11:15:04 +0100
Subject: [PATCH] =?UTF-8?q?Add=20some=20i18n=20to=20content-deletion=C2=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../_dialogs/content-delete/content-delete.component.html  | 6 +++---
 .../_dialogs/room-delete/room-delete.component.html        | 2 +-
 src/assets/i18n/creator/de.json                            | 7 +++++--
 src/assets/i18n/creator/en.json                            | 7 +++++--
 4 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/src/app/components/creator/_dialogs/content-delete/content-delete.component.html b/src/app/components/creator/_dialogs/content-delete/content-delete.component.html
index ec9c306b2..8794410ab 100644
--- a/src/app/components/creator/_dialogs/content-delete/content-delete.component.html
+++ b/src/app/components/creator/_dialogs/content-delete/content-delete.component.html
@@ -1,10 +1,10 @@
 <h3>{{ 'room-page.sure' | translate}}</h3>
-<p>Do you really want to delete content <strong>{{content.subject}}</strong>? This action can not be undone.</p>
+<p>{{'room-page.reallyContent' | translate}}<strong>{{content.subject}}</strong>{{'room-page.really2' | translate}}</p>
 <div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="10px">
   <button mat-raised-button color="warn" (click)="closeDialog('delete')">
-    Delete content
+    {{'content.delete' | translate}}
   </button>
   <button mat-raised-button color="primary" (click)="closeDialog('abort')">
-    Abort
+    {{'content.abort' | translate}}
   </button>
 </div>
diff --git a/src/app/components/creator/_dialogs/room-delete/room-delete.component.html b/src/app/components/creator/_dialogs/room-delete/room-delete.component.html
index 91f6a6b88..388fccfed 100644
--- a/src/app/components/creator/_dialogs/room-delete/room-delete.component.html
+++ b/src/app/components/creator/_dialogs/room-delete/room-delete.component.html
@@ -1,5 +1,5 @@
 <h3>{{ 'room-page.sure' | translate }}</h3>
-<p>{{ 'room-page.really' | translate}}<strong>{{room.name}}</strong>{{ 'room-page.really2' | translate}}</p>
+<p>{{ 'room-page.reallySession' | translate}}<strong>{{room.name}}</strong>{{ 'room-page.really2' | translate}}</p>
 <div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="10px">
   <button mat-raised-button color="warn" (click)="dialogRef.close('delete')">
     {{ 'room-page.delete-room' | translate }}
diff --git a/src/assets/i18n/creator/de.json b/src/assets/i18n/creator/de.json
index c3524e137..85a202fb4 100644
--- a/src/assets/i18n/creator/de.json
+++ b/src/assets/i18n/creator/de.json
@@ -14,7 +14,8 @@
     "edit-room": "Session bearbeiten",
     "delete-room": "Session löschen",
     "sure": "Sind Sie sicher?",
-    "really": "Wollen Sie die Session ",
+    "reallySession": "Wollen Sie die Session ",
+    "reallyContent": "Wollen Sie die Frage ",
     "really2": " wirklich löschen? Diese Aktion kann nicht rückgängig gemacht werden.",
     "abort": "Abbrechen",
     "update": "Update",
@@ -48,7 +49,9 @@
     "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",
-    "points": "Punkte"
+    "points": "Punkte",
+    "delete": "Delete",
+    "abort": "Abort"
   },
   "session": {
     "session-name": "Name der Session",
diff --git a/src/assets/i18n/creator/en.json b/src/assets/i18n/creator/en.json
index c7ec7d4c8..b970c52af 100644
--- a/src/assets/i18n/creator/en.json
+++ b/src/assets/i18n/creator/en.json
@@ -13,7 +13,8 @@
     "edit-room": "Edit session",
     "delete-room": "Delete session",
     "sure": "Are you sure?",
-    "really": "Do you really want to delete session ",
+    "reallySession": "Do you really want to delete session ",
+    "reallyContent": "Do you really want to delete content ",
     "really2": "? This action can not be undone.",
     "abort": "Abort",
     "update": "Update",
@@ -47,7 +48,9 @@
     "select-one": "In single choice mode you have to select 1 true answer.",
     "at-least-one": "In multiple choice mode you have to select at least 1 true answer.",
     "undo": "Undo",
-    "points": "Points"
+    "points": "Points",
+    "delete": "Löschen",
+    "abort": "Abbrechen"
   },
   "session": {
     "session-name": "Session name",
-- 
GitLab