- Name:
+ {{'labels.inputs.Name' | translate}}:
@@ -38,7 +38,7 @@
- Description:
+ {{ 'labels.inputs.Role Description' | translate }}:
@@ -62,13 +62,13 @@
@@ -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 c306d9205..489f148f3 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 5b772d4f3..83f3173f9 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 2daf2c8a8..d70ea5018 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 d5b7a20b9..076469b7d 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 b42b58c4e..c92736e69 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 61ff6901f..785111c89 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 06e17a7fa..94c5487ea 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 7c35a9ca9..c88490d94 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 85003f2b4..cd68df6b4 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 26961f5d7..0179c0dfc 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 69e6b7e81..a39f4278d 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 6fd485b38..6289052f3 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 68038c7a3..1373d2b94 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",