Fix translations in campaign overview
parent
f9c9e20339
commit
bf4b219234
|
@ -26,7 +26,7 @@
|
|||
[legendTitle]="legendTitle"
|
||||
[showXAxisLabel]="showXAxisLabel"
|
||||
[showYAxisLabel]="showYAxisLabel"
|
||||
[yAxisLabel]="yAxisLabel"
|
||||
yAxisLabel="{{yAxisLabel | translate}}"
|
||||
[autoScale]="autoscale"
|
||||
[timeline]="timeline"
|
||||
[roundDomains]="roundDomains">
|
||||
|
|
|
@ -66,19 +66,6 @@ export class StatisticOverviewComponent implements OnInit {
|
|||
if (itemsProcessed === campaigns.length) {
|
||||
if (this.id === 'all') {
|
||||
this.timeline = true;
|
||||
this.title = 'Gesamtübersicht';
|
||||
wars.sort((a, b) => {
|
||||
// sort by dates, because older campaign can contain newer war
|
||||
if (a['date'] > (b['date'])) {
|
||||
return -1;
|
||||
}
|
||||
if (a['date'] < (b['date'])) {
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
});
|
||||
} else {
|
||||
this.title = campaign.title;
|
||||
}
|
||||
this.initChart(wars);
|
||||
}
|
||||
|
@ -89,15 +76,15 @@ export class StatisticOverviewComponent implements OnInit {
|
|||
switch (parseInt(index, 10)) {
|
||||
case 0:
|
||||
this.currentData = this.pointSumData;
|
||||
this.yAxisLabel = 'Gesamtpunkte';
|
||||
this.yAxisLabel = 'stats.graph.select.sum.points';
|
||||
break;
|
||||
case 1:
|
||||
this.currentData = this.pointData;
|
||||
this.yAxisLabel = 'Punkte';
|
||||
this.yAxisLabel = 'stats.graph.select.battle.points';
|
||||
break;
|
||||
case 2:
|
||||
this.currentData = this.playerData;
|
||||
this.yAxisLabel = 'Anzahl Spieler';
|
||||
this.yAxisLabel = 'stats.graph.select.player.count';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
"stats.graph.select.sum.points": "Total Score",
|
||||
"stats.graph.select.battle.points": "Score per Battle",
|
||||
"stats.graph.select.player.count": "Player count",
|
||||
"stats.graph.select.player.count": "Player Count",
|
||||
|
||||
"stats.fraction.select.points": "Score",
|
||||
"stats.fraction.select.budget": "Budget",
|
||||
|
|
Loading…
Reference in New Issue