Add i18n for submit campaign

pull/46/head
HardiReady 2018-10-03 11:54:37 +02:00
parent ccbcece0ab
commit 0adb9b7cf9
2 changed files with 13 additions and 8 deletions

View File

@ -1,22 +1,21 @@
<form #form="ngForm" (keydown.enter)="$event.preventDefault()" class="overview"> <form #form="ngForm" (keydown.enter)="$event.preventDefault()" class="overview">
<h3 *ngIf="campaign._id">Kampagne editieren</h3> <h3 *ngIf="campaign._id">{{'stats.campaign.submit.headline.edit' | translate}}</h3>
<h3 *ngIf="!campaign._id">Neue Kampagne hinzufügen</h3> <h3 *ngIf="!campaign._id">{{'stats.campaign.submit.headline.new' | translate}}</h3>
<div class="form-group"> <div class="form-group">
<label for="title">Titel</label> <label for="title">{{'stats.campaign.submit.title' | translate}}</label>
<input type="text" class="form-control" <input type="text" class="form-control"
[(ngModel)]="campaign.title" [(ngModel)]="campaign.title"
name="title" name="title"
id="title" id="title"
required maxlength="50"/> required maxlength="50"/>
<show-error displayName="{{'stats.campaign.submit.title' | translate}}" controlPath="title"></show-error>
<show-error displayName="Name" controlPath="title"></show-error>
</div> </div>
<button id="cancel" <button id="cancel"
(click)="cancel()" (click)="cancel()"
class="btn btn-default"> class="btn btn-default">
Abbrechen {{'stats.campaign.submit.button.cancel' | translate}}
</button> </button>
<button id="save" <button id="save"
@ -24,6 +23,6 @@
(click)="saveCampaign()" (click)="saveCampaign()"
class="btn btn-default" class="btn btn-default"
[disabled]="!form.valid"> [disabled]="!form.valid">
Bestätigen {{'stats.campaign.submit.button.submit' | translate}}
</button> </button>
</form> </form>

View File

@ -66,5 +66,11 @@
"stats.war.submit.points": "Punkte", "stats.war.submit.points": "Punkte",
"stats.war.submit.final.budget": "Endbudget", "stats.war.submit.final.budget": "Endbudget",
"stats.war.submit.button.submit": "Bestätigen", "stats.war.submit.button.submit": "Bestätigen",
"stats.war.submit.button.cancel": "Abbrechen" "stats.war.submit.button.cancel": "Abbrechen",
"stats.campaign.submit.headline.new": "Neue Kampagne hinzufügen",
"stats.campaign.submit.headline.edit": "Kampagne editieren",
"stats.campaign.submit.title": "Titel",
"stats.campaign.submit.button.submit": "Bestätigen",
"stats.campaign.submit.button.cancel": "Abbrechen"
} }