diff --git a/src/app/components/shared/statistics-page/statistics-page.component.ts b/src/app/components/shared/statistics-page/statistics-page.component.ts index 9ae19ce398c24f3a427b7a9efc73ed1ff094f53d..a3d351e124534c49f5c130b897058312a5335a3e 100644 --- a/src/app/components/shared/statistics-page/statistics-page.component.ts +++ b/src/app/components/shared/statistics-page/statistics-page.component.ts @@ -35,7 +35,6 @@ export class StatisticsPageComponent implements OnInit { ngOnInit(): void { if (sessionStorage.getItem('contentGroup')) { - console.log('in if'); this.currentCG = sessionStorage.getItem('contentGroup'); } this.getRoom(localStorage.getItem('roomId')); @@ -55,7 +54,9 @@ export class StatisticsPageComponent implements OnInit { } } } else { - this.notificationService.show('No questions have been created yet!'); + this.translateService.get('no-questions').subscribe( message => { + this.notificationService.show(message); + }); } this.isLoading = false; }); diff --git a/src/assets/i18n/creator/de.json b/src/assets/i18n/creator/de.json index e845fe6f2a03479fac713c8cd2a34d311833e4de..6115e4586d562cb7cb1e2fcd58d07ddf9ee67f06 100644 --- a/src/assets/i18n/creator/de.json +++ b/src/assets/i18n/creator/de.json @@ -69,6 +69,7 @@ "answer-statistic": "Antwortstatistik", "answers": "Antworten", "percentage": "Prozent", - "abstentions": "Enthaltungen" + "abstentions": "Enthaltungen", + "no-questions": "Es sind noch keine Antworten vorhanden." } } diff --git a/src/assets/i18n/creator/en.json b/src/assets/i18n/creator/en.json index dd10fc18fcbf6d7351fdaf0fed45ddfa2c67ff85..68d044bb8d0a75187289f089123dc5c46fbb7ffe 100644 --- a/src/assets/i18n/creator/en.json +++ b/src/assets/i18n/creator/en.json @@ -69,6 +69,7 @@ "answer-statistic": "Answer statistic", "answers": "Answers", "percentage": "Percentage", - "abstentions": "Abstentions" + "abstentions": "Abstentions", + "no-questions": "There are no answers yet." } } diff --git a/src/assets/i18n/participant/de.json b/src/assets/i18n/participant/de.json index 2b1bac6265121bcc17af076aef82d473ff0b5a8a..d6e4ae5a0b7ddaa6e2e0171f3aad6aa7a59eb215 100644 --- a/src/assets/i18n/participant/de.json +++ b/src/assets/i18n/participant/de.json @@ -34,6 +34,7 @@ "answer-statistic": "Antwortstatistik", "answers": "Antworten", "percentage": "Prozent", - "abstentions": "Enthaltungen" + "abstentions": "Enthaltungen", + "no-questions": "Es sind noch keine Antworten vorhanden." } } diff --git a/src/assets/i18n/participant/en.json b/src/assets/i18n/participant/en.json index a82a698e3da06bd6514da32959e99a37076948df..9e6c655537412d92ce02c5ec0498eef82a2d59a5 100644 --- a/src/assets/i18n/participant/en.json +++ b/src/assets/i18n/participant/en.json @@ -34,6 +34,7 @@ "answer-statistic": "Answer statistic", "answers": "Answers", "percentage": "Percentage", - "abstentions": "Abstentions" + "abstentions": "Abstentions", + "no-questions": "There are no answers yet." } }