Skip to content
Snippets Groups Projects
Commit ac87c2b9 authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Add and fix i18n in statistic page

parent 414a59f4
1 merge request!150Resolve "Follow up from "Several Fixes""
......@@ -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;
});
......
......@@ -69,6 +69,7 @@
"answer-statistic": "Antwortstatistik",
"answers": "Antworten",
"percentage": "Prozent",
"abstentions": "Enthaltungen"
"abstentions": "Enthaltungen",
"no-questions": "Es sind noch keine Antworten vorhanden."
}
}
......@@ -69,6 +69,7 @@
"answer-statistic": "Answer statistic",
"answers": "Answers",
"percentage": "Percentage",
"abstentions": "Abstentions"
"abstentions": "Abstentions",
"no-questions": "There are no answers yet."
}
}
......@@ -34,6 +34,7 @@
"answer-statistic": "Antwortstatistik",
"answers": "Antworten",
"percentage": "Prozent",
"abstentions": "Enthaltungen"
"abstentions": "Enthaltungen",
"no-questions": "Es sind noch keine Antworten vorhanden."
}
}
......@@ -34,6 +34,7 @@
"answer-statistic": "Answer statistic",
"answers": "Answers",
"percentage": "Percentage",
"abstentions": "Abstentions"
"abstentions": "Abstentions",
"no-questions": "There are no answers yet."
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment