diff --git a/src/app/system/roles-and-permissions/add-role/add-role.component.html b/src/app/system/roles-and-permissions/add-role/add-role.component.html index 7e9d82242c..a8c2d8400b 100644 --- a/src/app/system/roles-and-permissions/add-role/add-role.component.html +++ b/src/app/system/roles-and-permissions/add-role/add-role.component.html @@ -9,18 +9,18 @@
- Name + {{ 'labels.inputs.Name' | translate }} - Role Name is required + {{ 'labels.inputs.Role Name' | translate }} {{'labels.commons.is' | translate}} {{'labels.commons.required' | translate}} - Description + {{ 'labels.inputs.Description' | translate }} - Role Description is required + {{ 'labels.inputs.Role Description' | translate }} {{'labels.commons.is' | translate}} {{'labels.commons.required' | translate}} @@ -29,8 +29,8 @@ - - + + diff --git a/src/app/system/roles-and-permissions/edit-role/edit-role.component.html b/src/app/system/roles-and-permissions/edit-role/edit-role.component.html index 881f02d9b3..ed5201a84d 100644 --- a/src/app/system/roles-and-permissions/edit-role/edit-role.component.html +++ b/src/app/system/roles-and-permissions/edit-role/edit-role.component.html @@ -9,15 +9,15 @@
- Role Name + {{ 'labels.inputs.Role Name' | translate }} - Role Description + {{ 'labels.inputs.Role Description' | translate }} - Description is required + {{ 'labels.inputs.Description' | translate }} {{'labels.commons.is' | translate}} {{'labels.commons.required' | translate}} @@ -26,8 +26,8 @@ - - + + diff --git a/src/app/system/roles-and-permissions/roles-and-permissions.component.html b/src/app/system/roles-and-permissions/roles-and-permissions.component.html index 088d280ebd..94862cd845 100644 --- a/src/app/system/roles-and-permissions/roles-and-permissions.component.html +++ b/src/app/system/roles-and-permissions/roles-and-permissions.component.html @@ -2,7 +2,7 @@
@@ -21,29 +21,29 @@ - + - + - + - + @@ -60,29 +60,29 @@ -

Add Role

-

To create a new role.

+

{{'labels.buttons.Add Role' | translate}}

+

{{'labels.text.To create a new role' | translate}}.

- - - + + +
-

Search bar to filter roles.

+

{{'labels.heading.Search bar to filter roles' | translate }}.

- - - + + +
-

List of roles defined within the organization. or more details click: Manage Roles and Permission

+

{{'labels.heading.List of roles defined within the organization' | translate}}: {{'labels.inputs.Manage Roles and Permission' | translate}}

- - - + + +
diff --git a/src/app/system/roles-and-permissions/view-role/view-role.component.html b/src/app/system/roles-and-permissions/view-role/view-role.component.html index 8880302df7..3918436c30 100644 --- a/src/app/system/roles-and-permissions/view-role/view-role.component.html +++ b/src/app/system/roles-and-permissions/view-role/view-role.component.html @@ -1,22 +1,22 @@
@@ -30,7 +30,7 @@
- Name: + {{'labels.inputs.Name' | translate}}:
@@ -38,7 +38,7 @@
- Description: + {{ 'labels.inputs.Role Description' | translate }}:
@@ -62,13 +62,13 @@

- Permissions: {{ formatName(previousGrouping) }} + {{'labels.buttons.Permissions' | translate }}: {{ formatName(previousGrouping) }}

- - + +
@@ -110,8 +110,8 @@

- - + +
diff --git a/src/app/system/roles-and-permissions/view-role/view-role.component.ts b/src/app/system/roles-and-permissions/view-role/view-role.component.ts index c306d92056..489f148f31 100644 --- a/src/app/system/roles-and-permissions/view-role/view-role.component.ts +++ b/src/app/system/roles-and-permissions/view-role/view-role.component.ts @@ -1,12 +1,13 @@ /** Angular Imports */ import { Component, OnInit } from '@angular/core'; -import { ActivatedRoute, Router } from '@angular/router'; -import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms'; +import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms'; import { MatDialog } from '@angular/material/dialog'; -import { SystemService } from '../../system.service'; +import { ActivatedRoute, Router } from '@angular/router'; import * as _ from 'lodash'; +import { SystemService } from '../../system.service'; /** Custom Components */ +import { TranslateService } from '@ngx-translate/core'; import { DeleteDialogComponent } from '../../../shared/delete-dialog/delete-dialog.component'; import { DisableDialogComponent } from '../../../shared/disable-dialog/disable-dialog.component'; import { EnableDialogComponent } from '../../../shared/enable-dialog/enable-dialog.component'; @@ -59,11 +60,13 @@ export class ViewRoleComponent implements OnInit { * @param {Router} router Router for navigation. * @param {FormBuilder} formBuilder Form Builder. * @param {MatDialog} dialog Shared Dialog Boxes. + * @param {TranslateService} translateService Translate Service. */ constructor(private route: ActivatedRoute, private systemService: SystemService, private router: Router, private formBuilder: UntypedFormBuilder, + private translateService:TranslateService, public dialog: MatDialog) { this.route.data.subscribe((data: { roledetails: any }) => { this.rolePermissionService = data.roledetails; @@ -246,7 +249,7 @@ export class ViewRoleComponent implements OnInit { */ deleteRole() { const deleteRoleDialogRef = this.dialog.open(DeleteDialogComponent, { - data: { deleteContext: `role ${this.roleId}` } + data: { deleteContext: this.translateService.instant('labels.inputs.Role') + ' ' + this.roleId } }); deleteRoleDialogRef.afterClosed().subscribe((response: any) => { if (response.delete) { @@ -265,7 +268,7 @@ export class ViewRoleComponent implements OnInit { */ enableRolesConfirmation() { const enableRoleDialogRef = this.dialog.open(EnableDialogComponent, { - data: { enableContext: `role ${this.roleId}` } + data: { enableContext: this.translateService.instant('labels.inputs.Role') + ' ' + this.roleId } }); enableRoleDialogRef.afterClosed().subscribe((response: any) => { if (response.enable) { @@ -284,7 +287,7 @@ export class ViewRoleComponent implements OnInit { */ disableRolesConfirmation() { const deleteRoleDialogRef = this.dialog.open(DisableDialogComponent, { - data: { disableContext: `role ${this.roleId}` } + data: { disableContext: this.translateService.instant('labels.inputs.Role') + ' ' + this.roleId } }); deleteRoleDialogRef.afterClosed().subscribe((response: any) => { if (response.disable) { diff --git a/src/assets/translations/cs-CS.json b/src/assets/translations/cs-CS.json index 5b772d4f3b..83f3173f9b 100644 --- a/src/assets/translations/cs-CS.json +++ b/src/assets/translations/cs-CS.json @@ -394,6 +394,7 @@ "Delete Question": "Smazat otázku", "Delete Selected": "Smazat vybrané", "Delete Signature": "Smazat podpis", + "Deselect All": "Odznačit vše", "Disable": "Zakázat", "Dividends": "Dividendy", "Download": "Stažení", @@ -482,6 +483,7 @@ "Setup Organization": "Nastavení organizace", "Setup Products": "Nastavení produktů", "Setup System": "Systém nastavení", + "Select All": "Vybrat vše", "Show more": "Zobrazit více", "Show less": "Ukaž méně", "Staff": "Personál", diff --git a/src/assets/translations/de-DE.json b/src/assets/translations/de-DE.json index 2daf2c8a88..d70ea50180 100644 --- a/src/assets/translations/de-DE.json +++ b/src/assets/translations/de-DE.json @@ -394,6 +394,7 @@ "Delete Question": "Frage löschen", "Delete Selected": "Ausgewählte löschen", "Delete Signature": "Signatur löschen", + "Deselect All": "Alle abwählen", "Disable": "Deaktivieren", "Dividends": "Dividenden", "Download": "Herunterladen", @@ -482,6 +483,7 @@ "Setup Organization": "Organisation einrichten", "Setup Products": "Setup-Produkte", "Setup System": "Setup-System", + "Select All": "Wählen Sie Alle", "Show more": "Zeig mehr", "Show less": "Zeige weniger", "Staff": "Personal", diff --git a/src/assets/translations/en-US.json b/src/assets/translations/en-US.json index d5b7a20b91..076469b7d1 100644 --- a/src/assets/translations/en-US.json +++ b/src/assets/translations/en-US.json @@ -394,6 +394,7 @@ "Delete Question": "Delete Question", "Delete Selected": "Delete Selected", "Delete Signature": "Delete Signature", + "Deselect All": "Deselect All", "Disable": "Disable", "Dividends": "Dividends", "Download": "Download", @@ -482,6 +483,7 @@ "Setup Organization": "Setup Organization", "Setup Products": "Setup Products", "Setup System": "Setup System", + "Select All": "Select All", "Show less": "Show less", "Show more": "Show more", "Staff": "Staff", diff --git a/src/assets/translations/es-MX.json b/src/assets/translations/es-MX.json index b42b58c4e1..c92736e69a 100644 --- a/src/assets/translations/es-MX.json +++ b/src/assets/translations/es-MX.json @@ -394,6 +394,7 @@ "Delete Question": "Eliminar pregunta", "Delete Selected": "Eliminar seleccionado", "Delete Signature": "Eliminar firma", + "Deselect All": "Deseleccionar todo", "Disable": "Desactivar", "Dividends": "Dividendos", "Download": "Descargar", @@ -482,6 +483,7 @@ "Setup Organization": "Configuración de Organización", "Setup Products": "Configuración de Productos", "Setup System": "Configuración de Sistema", + "Select All": "Seleccionar todo", "Show more": "Mostrar más", "Show less": "Muestra menos", "Staff": "Asesor", diff --git a/src/assets/translations/fr-FR.json b/src/assets/translations/fr-FR.json index 61ff6901fd..785111c893 100644 --- a/src/assets/translations/fr-FR.json +++ b/src/assets/translations/fr-FR.json @@ -394,6 +394,7 @@ "Delete Question": "Supprimer la question", "Delete Selected": "Supprimer sélectionnée", "Delete Signature": "Supprimer la signature", + "Deselect All": "Tout déselectionner", "Disable": "Désactiver", "Dividends": "Dividendes", "Download": "Télécharger", @@ -482,6 +483,7 @@ "Setup Organization": "Organisation de configuration", "Setup Products": "Produits d'installation", "Setup System": "Système de configuration", + "Select All": "Tout sélectionner", "Show more": "Montre plus", "Show less": "Montrer moins", "Staff": "Personnel", diff --git a/src/assets/translations/it-IT.json b/src/assets/translations/it-IT.json index 06e17a7fa7..94c5487eaa 100644 --- a/src/assets/translations/it-IT.json +++ b/src/assets/translations/it-IT.json @@ -394,6 +394,7 @@ "Delete Question": "Elimina domanda", "Delete Selected": "Elimina selezionato", "Delete Signature": "Elimina firma", + "Deselect All": "Deselezionare tutto", "Disable": "disattivare", "Dividends": "Dividendi", "Download": "Scaricamento", @@ -482,6 +483,7 @@ "Setup Organization": "Configurazione dell'organizzazione", "Setup Products": "Imposta prodotti", "Setup System": "Sistema di installazione", + "Select All": "Seleziona tutto", "Show more": "Mostra di più", "Show less": "Mostra meno", "Staff": "Personale", diff --git a/src/assets/translations/ko-KO.json b/src/assets/translations/ko-KO.json index 7c35a9ca9b..c88490d94f 100644 --- a/src/assets/translations/ko-KO.json +++ b/src/assets/translations/ko-KO.json @@ -394,6 +394,7 @@ "Delete Question": "질문 삭제", "Delete Selected": "선택된 것을 지워 라", "Delete Signature": "서명 삭제", + "Deselect All": "모두 선택 취소", "Disable": "장애를 입히다", "Dividends": "배당금", "Download": "다운로드", @@ -482,6 +483,7 @@ "Setup Organization": "조직 설정", "Setup Products": "설치 제품", "Setup System": "설정 시스템", + "Select All": "모두 선택", "Show more": "자세히보기", "Show less": "간략히 보기", "Staff": "직원", diff --git a/src/assets/translations/lt-LT.json b/src/assets/translations/lt-LT.json index 85003f2b4c..cd68df6b4d 100644 --- a/src/assets/translations/lt-LT.json +++ b/src/assets/translations/lt-LT.json @@ -394,6 +394,7 @@ "Delete Question": "Ištrinti klausimą", "Delete Selected": "Išštrinti pasirinktus", "Delete Signature": "Ištrinti parašą", + "Deselect All": "Atzymeti visus pasirinkimus", "Disable": "Išjungti", "Dividends": "Dividendai", "Download": "parsisiųsti", @@ -482,6 +483,7 @@ "Setup Organization": "Nustatykite organizaciją", "Setup Products": "Sąrankos produktai", "Setup System": "Sistemos sąranka", + "Select All": "Pasirinkti viską", "Show more": "Rodyti daugiau", "Show less": "Rodyti mažiau", "Staff": "Personalas", diff --git a/src/assets/translations/lv-LV.json b/src/assets/translations/lv-LV.json index 26961f5d70..0179c0dfce 100644 --- a/src/assets/translations/lv-LV.json +++ b/src/assets/translations/lv-LV.json @@ -394,6 +394,7 @@ "Delete Question": "Dzēst jautājumu", "Delete Selected": "Dzēst atlasītos", "Delete Signature": "Dzēst parakstu", + "Deselect All": "Atsijāt visu", "Disable": "Atspējot", "Dividends": "Dividendes", "Download": "Lejupielādēt", @@ -482,6 +483,7 @@ "Setup Organization": "Organizācijas iestatīšana", "Setup Products": "Iestatīšanas produkti", "Setup System": "Uzstādīšanas sistēma", + "Select All": "Izvēlēties visus", "Show more": "Parādīt vairāk", "Show less": "Rādīt mazāk", "Staff": "Personāls", diff --git a/src/assets/translations/ne-NE.json b/src/assets/translations/ne-NE.json index 69e6b7e81c..a39f4278dd 100644 --- a/src/assets/translations/ne-NE.json +++ b/src/assets/translations/ne-NE.json @@ -394,6 +394,7 @@ "Delete Question": "प्रश्न मेटाउनुहोस्", "Delete Selected": "चयन गरिएको मेटाउनुहोस्", "Delete Signature": "हस्ताक्षर मेटाउनुहोस्", + "Deselect All": "सबै अचयन गर्नुहोस्", "Disable": "असक्षम गर्नुहोस्", "Dividends": "लाभांश", "Download": "डाउनलोड गर्नुहोस्", @@ -482,6 +483,7 @@ "Setup Organization": "स्थापना संगठन", "Setup Products": "उत्पादनहरू सेटअप गर्नुहोस्", "Setup System": "सेटअप प्रणाली", + "Select All": "सबै छान्नु", "Show more": "थप देखाउनुहोस्", "Show less": "कम देखाउनुहोस्", "Staff": "कर्मचारी", diff --git a/src/assets/translations/pt-PT.json b/src/assets/translations/pt-PT.json index 6fd485b38c..6289052f38 100644 --- a/src/assets/translations/pt-PT.json +++ b/src/assets/translations/pt-PT.json @@ -394,6 +394,7 @@ "Delete Question": "Excluir pergunta", "Delete Selected": "Excluir selecionado", "Delete Signature": "Excluir assinatura", + "Deselect All": "Desmarcar todos", "Disable": "Desativar", "Dividends": "Dividendos", "Download": "Download", @@ -482,6 +483,7 @@ "Setup Organization": "Configurar organização", "Setup Products": "Configurar produtos", "Setup System": "Sistema de configuração", + "Select All": "Selecionar tudo", "Show more": "Mostre mais", "Show less": "Mostre menos", "Staff": "Funcionários", diff --git a/src/assets/translations/sw-SW.json b/src/assets/translations/sw-SW.json index 68038c7a31..1373d2b949 100644 --- a/src/assets/translations/sw-SW.json +++ b/src/assets/translations/sw-SW.json @@ -394,6 +394,7 @@ "Delete Question": "Futa Swali", "Delete Selected": "Futa Uliochaguliwa", "Delete Signature": "Futa Sahihi", + "Deselect All": "Usichague zote", "Disable": "Zima", "Dividends": "Gawio", "Download": "Pakua", @@ -482,6 +483,7 @@ "Setup Organization": "Shirika la Kuanzisha", "Setup Products": "Weka Bidhaa", "Setup System": "Kuanzisha Mfumo", + "Select All": "Chagua Zote", "Show more": "Onyesha zaidi", "Show less": "Onyesha kidogo", "Staff": "Wafanyakazi",

Name {{'labels.inputs.Name' | translate}} {{ role.name }} Description {{ 'labels.inputs.Description' | translate }} {{ role.description }} Status {{ 'labels.inputs.Status' | translate }}
- +
Actions{{ 'labels.inputs.Actions' | translate }}