[ACS-3600] Add missing label translations (#7890)

This commit is contained in:
MichalKinas 2022-10-19 11:52:02 +02:00 committed by GitHub
parent 3abf138088
commit b12d1b4a44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 9 deletions

View File

@ -358,5 +358,12 @@
"ACTION_TYPE": "Action Type"
}
},
"DEFAULT_SEARCH": "Default"
"BREADCRUMB_DEMO": {
"NEW_FOLDER_LABEL": "Create a new folder button",
"EDIT_NODE_LABEL": "Edit node button",
"DELETE_NODE_LABEL": "Delete node icon button"
},
"DEFAULT_SEARCH": "Default",
"OPEN_DIALOG": "Open dialog",
"SHOW_LIST_LABEL": "Click to show the list"
}

View File

@ -6,13 +6,13 @@
<mat-label>Node Id For Aspects</mat-label>
<input matInput placeholder="Node Id" [(ngModel)]="currentNodeId">
</mat-form-field>
<button mat-raised-button color="primary" aria-label="Click to show the list" (click)="showAspectForNode()">
<button mat-raised-button color="primary" [attr.aria-label]="'SHOW_LIST_LABEL' | translate" (click)="showAspectForNode()">
Show/Hide List
</button>
<adf-aspect-list [nodeId]="currentNodeId" *ngIf="isShowed" (valueChanged)="onValueChanged($event)"></adf-aspect-list>
</div>
<div>
<button mat-fab color="primary" aria-label="Open dialog" (click)="openAspectDialog()">
<button mat-fab color="primary" [attr.aria-label]="'OPEN_DIALOG' | translate" (click)="openAspectDialog()">
Dialog
</button>
</div>

View File

@ -64,13 +64,13 @@
</adf-toolbar-title>
<adf-toolbar-divider fxFlex="0 0 auto"></adf-toolbar-divider>
<div fxFlex="0 0 auto">
<button mat-icon-button aria-label="Create a new folder button">
<button mat-icon-button [attr.aria-label]="'BREADCRUMB_DEMO.NEW_FOLDER_LABEL' | translate">
<mat-icon>create_new_folder</mat-icon>
</button>
<button mat-icon-button aria-label="Edit node button">
<button mat-icon-button [attr.aria-label]="'BREADCRUMB_DEMO.EDIT_NODE_LABEL' | translate">
<mat-icon>create</mat-icon>
</button>
<button mat-icon-button aria-label="Delete node icon button">
<button mat-icon-button [attr.aria-label]="'BREADCRUMB_DEMO.DELETE_NODE_LABEL' | translate">
<mat-icon>delete</mat-icon>
</button>
</div>

View File

@ -35,7 +35,7 @@
class="adf-property-clear-value"
*ngIf="isEditable"
mat-icon-button
aria-label="Clear"
[attr.aria-label]="'CORE.METADATA.ACTIONS.CLEAR' | translate"
(click)="clearValue()">
<mat-icon>cancel</mat-icon>
</button>

View File

@ -218,7 +218,8 @@
"START_FORM": "Start Form",
"TASKS_ACTIVE": "Active Tasks",
"TASKS_COMPLETED": "Completed Tasks",
"TASK_SUBTITLE": "Assigned to {{user}}, created {{created}}"
"TASK_SUBTITLE": "Assigned to {{user}}, created {{created}}",
"REFRESH": "Refresh"
},
"BUTTON": {
"CANCEL": "Cancel Process",

View File

@ -1,6 +1,6 @@
<div *ngIf="showRefreshButton" class="process-tasks-refresh" >
<button mat-icon-button (click)="onRefreshClicked()">
<mat-icon class="md-24" aria-label="Refresh">refresh</mat-icon>
<mat-icon class="md-24" [attr.aria-label]="'ADF_PROCESS_LIST.DETAILS.LABELS.REFRESH' | translate">refresh</mat-icon>
</button>
</div>