Skip to content
Snippets Groups Projects
Commit a6de2d4d authored by jojohoch's avatar jojohoch
Browse files

[editor] Add i18n translations for StateVariables and VisibilityRules

parent 72babcf3
No related branches found
No related tags found
No related merge requests found
Pipeline #48258 passed
<div class="fx-row-start-stretch fx-gap-10"> <div class="fx-row-start-stretch fx-gap-10">
<mat-form-field> <mat-form-field>
<mat-label>Id</mat-label> <mat-label>{{'stateVariableId' | translate}}</mat-label>
<input matInput <input matInput
placeholder="Id" [placeholder]="'stateVariableId' | translate"
[(ngModel)]="stateVariable.id" [(ngModel)]="stateVariable.id"
(ngModelChange)="stateVariableChange.emit(stateVariable)"> (ngModelChange)="stateVariableChange.emit(stateVariable)">
</mat-form-field> </mat-form-field>
<mat-form-field> <mat-form-field>
<mat-label>Wert</mat-label> <mat-label>{{'stateVariableValue' | translate}}</mat-label>
<input matInput <input matInput
placeholder="Initialwert" [placeholder]="'stateVariableValue' | translate"
[(ngModel)]="stateVariable.value" [(ngModel)]="stateVariable.value"
(ngModelChange)="stateVariableChange.emit(stateVariable)"> (ngModelChange)="stateVariableChange.emit(stateVariable)">
</mat-form-field> </mat-form-field>
......
<h1 mat-dialog-title>Player-Variablen bearbeiten</h1> <h1 mat-dialog-title>{{'manageStateVariables' | translate}}</h1>
<div mat-dialog-content class="fx-colum-start-stretch fx-gap-20"> <div mat-dialog-content class="fx-colum-start-stretch fx-gap-20">
<div class="fx-row-end-stretch"> <div class="fx-row-end-stretch">
<button mat-icon-button <button mat-icon-button
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
<div mat-dialog-actions> <div mat-dialog-actions>
<button mat-button <button mat-button
mat-dialog-close> mat-dialog-close>
Abbrechen {{'cancel' | translate }}
</button> </button>
<button mat-button <button mat-button
[mat-dialog-close]="stateVariables"> [mat-dialog-close]="stateVariables">
Speichern {{'save' | translate }}
</button> </button>
</div> </div>
<div class="fx-row-start-stretch fx-gap-10"> <div class="fx-row-start-stretch fx-gap-10">
<mat-form-field> <mat-form-field>
<mat-label>Id</mat-label> <mat-label>{{'section.controlId' | translate}}</mat-label>
<mat-select [(ngModel)]="visibilityRule.id" <mat-select [(ngModel)]="visibilityRule.id"
(ngModelChange)="visibilityRuleChange.emit(visibilityRule)"> (ngModelChange)="visibilityRuleChange.emit(visibilityRule)">
<mat-option *ngFor="let id of controlIds" <mat-option *ngFor="let id of controlIds"
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</mat-form-field> </mat-form-field>
<mat-form-field> <mat-form-field>
<mat-label>Operator</mat-label> <mat-label>{{'section.operator' | translate}}</mat-label>
<mat-select [(ngModel)]="visibilityRule.operator" <mat-select [(ngModel)]="visibilityRule.operator"
(ngModelChange)="visibilityRuleChange.emit(visibilityRule)"> (ngModelChange)="visibilityRuleChange.emit(visibilityRule)">
<mat-option *ngFor="let operator of VisibilityRule.operators" <mat-option *ngFor="let operator of VisibilityRule.operators"
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
</mat-form-field> </mat-form-field>
<mat-form-field> <mat-form-field>
<mat-label>Wert</mat-label> <mat-label>{{'section.value' | translate}}</mat-label>
<input matInput <input matInput
placeholder="Wert" [placeholder]="'section.value' | translate"
[(ngModel)]="visibilityRule.value" [(ngModel)]="visibilityRule.value"
(ngModelChange)="visibilityRuleChange.emit(visibilityRule)"> (ngModelChange)="visibilityRuleChange.emit(visibilityRule)">
</mat-form-field> </mat-form-field>
......
<h1 mat-dialog-title>Regeln zur Sichtbarkeit</h1> <h1 mat-dialog-title>{{'section.manageVisibilityRules' | translate}}</h1>
<div mat-dialog-content class="fx-colum-start-stretch fx-gap-20"> <div mat-dialog-content class="fx-colum-start-stretch fx-gap-20">
<ng-container *ngIf="controlIds.length"> <ng-container *ngIf="controlIds.length">
<div class="fx-row-end-stretch"> <div class="fx-row-end-stretch">
...@@ -12,21 +12,21 @@ ...@@ -12,21 +12,21 @@
<div *ngIf="visibilityRules.length" <div *ngIf="visibilityRules.length"
class="fx-row-start-stretch fx-gap-10"> class="fx-row-start-stretch fx-gap-10">
<mat-form-field > <mat-form-field >
<mat-label>Verzögerung in ms</mat-label> <mat-label>{{'section.visibilityDelay' | translate}}</mat-label>
<input matInput <input matInput
type="number" type="number"
step="1000" step="1000"
placeholder="Verzögerung in ms" [placeholder]="'section.visibilityDelay' | translate"
[(ngModel)]="visibilityDelay"> [(ngModel)]="visibilityDelay">
</mat-form-field> </mat-form-field>
<mat-checkbox <mat-checkbox
[(ngModel)]="animatedVisibility"> [(ngModel)]="animatedVisibility">
Scrollen beim Anzeigen {{'section.animatedVisibility' | translate}}
</mat-checkbox> </mat-checkbox>
</div> </div>
</ng-container> </ng-container>
<p *ngIf="!controlIds.length">Bitte zuerst Elemente oder Player-Variablen anlegen</p> <p *ngIf="!controlIds.length">{{'section.addElementsOrStateVariables' | translate}}</p>
<div *ngFor="let rule of visibilityRules; let i = index" <div *ngFor="let rule of visibilityRules; let i = index"
class="fx-row-start-stretch fx-gap-10"> class="fx-row-start-stretch fx-gap-10">
...@@ -44,11 +44,11 @@ ...@@ -44,11 +44,11 @@
<div mat-dialog-actions> <div mat-dialog-actions>
<button mat-button <button mat-button
mat-dialog-close> mat-dialog-close>
Abbrechen {{'cancel' | translate}}
</button> </button>
<button *ngIf="controlIds.length" <button *ngIf="controlIds.length"
mat-button mat-button
[mat-dialog-close]="{visibilityRules, visibilityDelay, animatedVisibility:animatedVisibility}"> [mat-dialog-close]="{visibilityRules, visibilityDelay, animatedVisibility:animatedVisibility}">
Speichern {{'save' | translate}}
</button> </button>
</div> </div>
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
color="accent" color="accent"
(click)="showStateVariablesDialog()"> (click)="showStateVariablesDialog()">
<mat-icon>integration_instructions</mat-icon> <mat-icon>integration_instructions</mat-icon>
<span>State Variables</span> <span>{{'stateVariables' | translate}}</span>
</button> </button>
<div class="fx-column-start-stretch"> <div class="fx-column-start-stretch">
<mat-form-field> <mat-form-field>
<mat-label>Id</mat-label> <mat-label>{{'stateVariableId' | translate}}</mat-label>
<mat-select [(ngModel)]="stateVariable.id" <mat-select [(ngModel)]="stateVariable.id"
(ngModelChange)="stateVariableChange.emit(stateVariable)"> (ngModelChange)="stateVariableChange.emit(stateVariable)">
<mat-option *ngFor="let id of stateVariableIds" <mat-option *ngFor="let id of stateVariableIds"
...@@ -11,9 +11,9 @@ ...@@ -11,9 +11,9 @@
</mat-form-field> </mat-form-field>
<mat-form-field> <mat-form-field>
<mat-label>Wert</mat-label> <mat-label>{{'stateVariableValue' | translate}}</mat-label>
<input matInput <input matInput
placeholder="Initialwert" [placeholder]="'stateVariableValue' | translate"
[(ngModel)]="stateVariable.value" [(ngModel)]="stateVariable.value"
(ngModelChange)="stateVariableChange.emit(stateVariable)"> (ngModelChange)="stateVariableChange.emit(stateVariable)">
</mat-form-field> </mat-form-field>
......
...@@ -30,6 +30,20 @@ ...@@ -30,6 +30,20 @@
"auto": "oben", "auto": "oben",
"center": "zentriert", "center": "zentriert",
"allowReplacement": "Verdrängen erlauben", "allowReplacement": "Verdrängen erlauben",
"stateVariable": "Statusvariable",
"stateVariables": "Statusvariablen",
"stateVariableValue": "Wert der Statusvariable",
"stateVariableId": "Id der Statusvariable",
"manageStateVariables": "Statusvariablen verwalten",
"section": {
"manageVisibilityRules": "Sichtbarkeit verwalten",
"animatedVisibility": "Scrollen beim Anzeigen",
"visibilityDelay": "Verzögerung der Anzeige",
"controlId": "Statusvariable/Element-ID",
"operator": "Operator",
"addElementsOrStateVariables": "Bitte zuerst Elemente oder Statusvariablen anlegen",
"value": "Wert"
},
"toolbar": { "toolbar": {
"loadUnit": "Unit laden", "loadUnit": "Unit laden",
"saveUnit": "Unit speichern" "saveUnit": "Unit speichern"
...@@ -102,6 +116,7 @@ ...@@ -102,6 +116,7 @@
"unitNav": "Unitnavigation", "unitNav": "Unitnavigation",
"pageNav": "Seitennavigation", "pageNav": "Seitennavigation",
"highlightText": "Textabschnitt hervorheben", "highlightText": "Textabschnitt hervorheben",
"stateVariableChange": "Statusvariable ändern",
"previous": "Vorherige Unit", "previous": "Vorherige Unit",
"next": "Nächste Unit", "next": "Nächste Unit",
"first": "Erste Unit", "first": "Erste Unit",
...@@ -283,9 +298,7 @@ ...@@ -283,9 +298,7 @@
"width": "Breite", "width": "Breite",
"fraction": "Anteile", "fraction": "Anteile",
"pixel": "Bildpunkte", "pixel": "Bildpunkte",
"percent": "Prozent", "percent": "Prozent"
"activeAfterID": "Sichtbar nach A/V-ID",
"activeAfterIdDelay": "Verzögerung der Sichtbarkeit"
}, },
"Bitte kopierten Abschnitt einfügen": "Bitte kopierten Abschnitt einfügen", "Bitte kopierten Abschnitt einfügen": "Bitte kopierten Abschnitt einfügen",
"Doppelte IDs festgestellt. Weiter mit neu generierten IDs?": "Doppelte IDs festgestellt. Weiter mit neu generierten IDs?", "Doppelte IDs festgestellt. Weiter mit neu generierten IDs?": "Doppelte IDs festgestellt. Weiter mit neu generierten IDs?",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment