Skip to content

Commit

Permalink
added missing translation
Browse files Browse the repository at this point in the history
  • Loading branch information
VILLAN3LL3 committed Oct 5, 2024
1 parent 29540ee commit 9a34775
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 59 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -375,58 +375,60 @@ <h4 class="appointment-title">
</ng-container>
</tr>
<tr>
<th *ngFor="let col of columns" [ngSwitch]="col.field" [ngStyle]="{ width: col.width }" scope="col">
<input
(input)="participationTable.filter($event.target.value, col.field, 'contains')"
*ngSwitchCase="'surname'"
pInputText
type="text"
[style]="{ width: '100%' }"
/>
<input
(input)="participationTable.filter($event.target.value, col.field, 'contains')"
*ngSwitchCase="'givenName'"
pInputText
type="text"
[style]="{ width: '100%' }"
/>
<p-dropdown
(onChange)="participationTable.filter($event.value, col.field, 'equals')"
*ngSwitchCase="'prediction'"
[autoDisplayFirst]="false"
[options]="predictionOptions"
[showClear]="true"
[style]="{ width: '100%' }"
appendTo="body"
></p-dropdown>
<p-dropdown
(onChange)="participationTable.filter($event.value, col.field, 'equals')"
*ngSwitchCase="'result'"
[autoDisplayFirst]="false"
[options]="resultOptions"
[showClear]="true"
[style]="{ width: '100%' }"
appendTo="body"
></p-dropdown>
<p-dropdown
(onChange)="participationTable.filter($event.value, col.field, 'contains')"
*ngSwitchCase="'sections'"
[autoDisplayFirst]="false"
[options]="sectionSelectItems"
[showClear]="true"
[style]="{ width: '100%' }"
appendTo="body"
></p-dropdown>
<p-dropdown
(onChange)="participationTable.filter($event.value, col.field, 'contains')"
*ngSwitchCase="'qualification'"
[autoDisplayFirst]="false"
[options]="qualificationOptions"
[showClear]="true"
[style]="{ width: '100%' }"
appendTo="body"
></p-dropdown>
</th>
<ng-container *ngFor="let col of columns">
<th [ngSwitch]="col.field" [ngStyle]="{ width: col.width }" scope="col" *ngIf="col.visible">
<input
(input)="participationTable.filter($event.target.value, col.field, 'contains')"
*ngSwitchCase="'surname'"
pInputText
type="text"
[style]="{ width: '100%' }"
/>
<input
(input)="participationTable.filter($event.target.value, col.field, 'contains')"
*ngSwitchCase="'givenName'"
pInputText
type="text"
[style]="{ width: '100%' }"
/>
<p-dropdown
(onChange)="participationTable.filter($event.value, col.field, 'equals')"
*ngSwitchCase="'prediction'"
[autoDisplayFirst]="false"
[options]="predictionOptions"
[showClear]="true"
[style]="{ width: '100%' }"
appendTo="body"
></p-dropdown>
<p-dropdown
(onChange)="participationTable.filter($event.value, col.field, 'equals')"
*ngSwitchCase="'result'"
[autoDisplayFirst]="false"
[options]="resultOptions"
[showClear]="true"
[style]="{ width: '100%' }"
appendTo="body"
></p-dropdown>
<p-dropdown
(onChange)="participationTable.filter($event.value, col.field, 'contains')"
*ngSwitchCase="'sections'"
[autoDisplayFirst]="false"
[options]="sectionSelectItems"
[showClear]="true"
[style]="{ width: '100%' }"
appendTo="body"
></p-dropdown>
<p-dropdown
(onChange)="participationTable.filter($event.value, col.field, 'contains')"
*ngSwitchCase="'qualification'"
[autoDisplayFirst]="false"
[options]="qualificationOptions"
[showClear]="true"
[style]="{ width: '100%' }"
appendTo="body"
></p-dropdown>
</th>
</ng-container>
</tr>
</ng-template>
<ng-template let-item pTemplate="body">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,12 @@ export class EditAppointmentComponent implements OnInit {
{ field: 'result', header: this.translate.instant('appointments.RESULTS'), width: '20%', visible: true },
{ field: 'sections', header: this.translate.instant('appointments.SECTIONS'), width: '20%', visible: true },
{ field: 'qualification', header: this.translate.instant('appointments.QUALIFICATION'), width: '20%', visible: true },
{ field: 'commentByPerformerInner', header: this.translate.instant('appointments.COMMENT'), width: '20%', visible: false },
{
field: 'commentByPerformerInner',
header: this.translate.instant('appointments.COMMENT_BY_PERFORMER_INNER'),
width: '20%',
visible: false,
}, // only needed for CSV export
];
}

Expand Down
3 changes: 2 additions & 1 deletion src/assets/i18n/appointments/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@
"VENUE": "Ort",
"VENUE_SET": "Veranstaltungsort gesetzt",
"QUALIFICATION": "Qualifikation",
"SELECT_STATUS": "Status auswählen"
"SELECT_STATUS": "Status auswählen",
"COMMENT_BY_PERFORMER_INNER": "Kommentar"
}
3 changes: 2 additions & 1 deletion src/assets/i18n/appointments/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,6 @@
"QUALIFICATION": "Qualification",
"SELECT_STATUS": "Select status",
"CREATED_BY": "Created by",
"CREATED_AT": "Created at"
"CREATED_AT": "Created at",
"COMMENT_BY_PERFORMER_INNER": "Comment"
}
3 changes: 2 additions & 1 deletion src/assets/i18n/appointments/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,6 @@
"TITLE": "Nom de l'événement",
"VENUE": "Lieu",
"VENUE_SET": "Lieu de l'événement choisi",
"SELECT_STATUS": "Sélectionner le statut"
"SELECT_STATUS": "Sélectionner le statut",
"COMMENT_BY_PERFORMER_INNER": "Commentaire"
}
3 changes: 2 additions & 1 deletion src/assets/i18n/appointments/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,6 @@
"TITLE": "Nome do evento",
"VENUE_SET": "Local definido",
"VENUE": "Local",
"SELECT_STATUS": "selecionar status"
"SELECT_STATUS": "selecionar status",
"COMMENT_BY_PERFORMER_INNER": "Comentário"
}
3 changes: 2 additions & 1 deletion src/assets/i18n/appointments/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@
"VENUE": "Место",
"VENUE_SET": "Место проведения",
"QUALIFICATION": "Квалификация",
"SELECT_STATUS": "Выберите состояние"
"SELECT_STATUS": "Выберите состояние",
"COMMENT_BY_PERFORMER_INNER": "Комментарий"
}
3 changes: 2 additions & 1 deletion src/assets/i18n/appointments/ua.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@
"VENUE": "Місце",
"VENUE_SET": "Місце проведення",
"QUALIFICATION": "Кваліфікація",
"SELECT_STATUS": "Виберіть статус"
"SELECT_STATUS": "Виберіть статус",
"COMMENT_BY_PERFORMER_INNER": "Коментар"
}

0 comments on commit 9a34775

Please sign in to comment.