From 95199d24178caf0d6ac3620c1c7550f4689dd2e9 Mon Sep 17 00:00:00 2001
From: Damien <damien.burel@maarch.org>
Date: Mon, 28 Oct 2019 15:09:19 +0100
Subject: [PATCH] FEAT #12003 TIME 1:20 Privileges lang

---
 .../doctypes-administration.component.html    |  2 +-
 .../doctypes-administration.component.ts      |  2 +-
 ...ministration-redirect-modal.component.html |  4 +-
 ...ministration-redirect-modal.component.html |  4 +-
 .../administration/privilege/privileges.ts    | 42 ++++++++++++-------
 .../user/users-administration.component.html  |  4 +-
 src/frontend/lang/lang-en.ts                  | 14 ++++++-
 src/frontend/lang/lang-fr.ts                  | 14 ++++++-
 src/frontend/lang/lang-nl.ts                  | 14 ++++++-
 9 files changed, 72 insertions(+), 28 deletions(-)

diff --git a/src/frontend/app/administration/doctype/doctypes-administration.component.html b/src/frontend/app/administration/doctype/doctypes-administration.component.html
index 4a14b7597b4..93b5127ed23 100755
--- a/src/frontend/app/administration/doctype/doctypes-administration.component.html
+++ b/src/frontend/app/administration/doctype/doctypes-administration.component.html
@@ -46,7 +46,7 @@
                     <input matInput id="jstree_search" name="jstree_search" type="text" placeholder="{{lang.search}}">
                 </mat-form-field>
                 <div id="jstree"></div>
-                <div class="mat-paginator" style="min-height:48px;min-height: 48px;display: flex;justify-content: end;align-items: center;padding-right: 20px;">{{doctypes.length}} {{lang.doctypesAdmin}}</div>
+                <div class="mat-paginator" style="min-height:48px;min-height: 48px;display: flex;justify-content: end;align-items: center;padding-right: 20px;">{{doctypes.length}} {{lang.documentTypesAlt}}</div>
             </mat-card>
         </mat-sidenav-content>
 
diff --git a/src/frontend/app/administration/doctype/doctypes-administration.component.ts b/src/frontend/app/administration/doctype/doctypes-administration.component.ts
index 4b5fc80156f..cbb7ac8f0ac 100755
--- a/src/frontend/app/administration/doctype/doctypes-administration.component.ts
+++ b/src/frontend/app/administration/doctype/doctypes-administration.component.ts
@@ -57,7 +57,7 @@ export class DoctypesAdministrationComponent implements OnInit {
     }
 
     ngOnInit(): void {
-        this.headerService.setHeader(this.lang.administration + ' ' + this.lang.doctypesAdmin);
+        this.headerService.setHeader(this.lang.administration + ' ' + this.lang.documentTypes);
         window['MainHeaderComponent'].setSnav(this.sidenavLeft);
         window['MainHeaderComponent'].setSnavRight(this.sidenavRight);
 
diff --git a/src/frontend/app/administration/entity/entities-administration-redirect-modal.component.html b/src/frontend/app/administration/entity/entities-administration-redirect-modal.component.html
index d8e55dded09..f212abf1c71 100755
--- a/src/frontend/app/administration/entity/entities-administration-redirect-modal.component.html
+++ b/src/frontend/app/administration/entity/entities-administration-redirect-modal.component.html
@@ -18,7 +18,7 @@
                 <mat-icon color="primary" mat-list-icon class="fa fa-user fa-2x"></mat-icon>
                 <p mat-line>
                     <b>{{data.entity.entity_label}}</b> {{lang.isLinkedTo | lowercase}}
-                    <b>{{data.entity.users.length}}</b> {{lang.users | lowercase}}</p>
+                    <b>{{data.entity.users.length}}</b> {{lang.usersAlt | lowercase}}</p>
             </mat-list-item>
             <mat-list-item *ngIf="data.entity.templates.length > 0">
                 <mat-icon color="primary" mat-list-icon class="fa fa-file-alt fa-2x"></mat-icon>
@@ -35,4 +35,4 @@
 <mat-dialog-actions>
     <button style="margin:auto;" mat-raised-button color="warn" type="submit" class="btn btn-danger" (click)="dialogRef.close(data.entity)"
         [disabled]="data.entity.redirectEntity === undefined || data.entity.redirectEntity == data.entity.entity_id">{{lang.delete}}</button>
-</mat-dialog-actions>
\ No newline at end of file
+</mat-dialog-actions>
diff --git a/src/frontend/app/administration/group/groups-administration-redirect-modal.component.html b/src/frontend/app/administration/group/groups-administration-redirect-modal.component.html
index 7cc92c25111..0cb1fa20c18 100755
--- a/src/frontend/app/administration/group/groups-administration-redirect-modal.component.html
+++ b/src/frontend/app/administration/group/groups-administration-redirect-modal.component.html
@@ -3,7 +3,7 @@
     <form #changeGroupUsersForm="ngForm">
         <div class="alert alert-warning" role="alert">
             Le groupe
-            <b>{{this.data.group_desc}}</b> {{lang.isAssociatedTo}} <b>{{this.data.users.length}}</b> {{lang.users}}:
+            <b>{{this.data.group_desc}}</b> {{lang.isAssociatedTo}} <b>{{this.data.users.length}}</b> {{lang.usersAlt}}:
             <mat-list>
                 <mat-list-item *ngFor="let user of this.data.users" style="height:25px;">
                     <mat-icon mat-list-icon class="fa fa-user" color="primary"></mat-icon>
@@ -27,4 +27,4 @@
             <button mat-raised-button color="primary" type="submit" [disabled]="!changeGroupUsersForm.form.valid" (click)="dialogRef.close(this.data.group_redirect)">{{lang.validate}}</button>
         </mat-dialog-actions>
     </form>
-</mat-dialog-content>
\ No newline at end of file
+</mat-dialog-content>
diff --git a/src/frontend/app/administration/privilege/privileges.ts b/src/frontend/app/administration/privilege/privileges.ts
index 3739c70210a..c67b4c33673 100644
--- a/src/frontend/app/administration/privilege/privileges.ts
+++ b/src/frontend/app/administration/privilege/privileges.ts
@@ -55,8 +55,10 @@ export const PRIVILEGES = [
     //ADMINISTRATION
     {
         "id"        : "admin_users",
-        "label"     : "_USERS",
-        "comment"   : "_ADMIN_USERS_DESC",
+        "label2"     : "_USERS",
+        "label"     : lang.users,
+        "comment2"   : "_ADMIN_USERS_DESC",
+        "comment"   : lang.adminUsersDesc,
         "route"     : "/administration/users",
         "type"      : "admin",
         "unit"      : "organisation",
@@ -65,8 +67,10 @@ export const PRIVILEGES = [
     },
     {
         "id"        : "admin_groups",
-        "label"     : "_GROUPS",
-        "comment"   : "_ADMIN_GROUPS_DESC",
+        "label2"     : "_GROUPS",
+        "label"     : lang.groups,
+        "comment2"   : "_ADMIN_GROUPS_DESC",
+        "comment"   : lang.adminGroupsDesc,
         "route"     : "/administration/groups",
         "type"      : "admin",
         "unit"      : "organisation",
@@ -75,8 +79,10 @@ export const PRIVILEGES = [
     },
     {
         "id"        : "manage_entities",
-        "label"     : "_ENTITIES",
-        "comment"   : "_MANAGE_ENTITIES_DESC",
+        "label2"     : "_ENTITIES",
+        "label"     : lang.entities,
+        "comment2"   : "_MANAGE_ENTITIES_DESC",
+        "comment"   : lang.adminEntitiesDesc,
         "route"     : "/administration/entities",
         "type"      : "admin",
         "unit"      : "organisation",
@@ -85,8 +91,10 @@ export const PRIVILEGES = [
     },
     {
         "id"        : "admin_listmodels",
-        "label"     : "_LISTMODELS_WORKFLOW",
-        "comment"   : "_MANAGE_LISTMODELS_WORKFLOW_DESC",
+        "label2"     : "_LISTMODELS_WORKFLOW",
+        "label"     : lang.workflowModels,
+        "comment2"   : "_MANAGE_LISTMODELS_WORKFLOW_DESC",
+        "comment"   : lang.adminWorkflowModelsDesc,
         "route"     : "/administration/diffusionModels",
         "type"      : "admin",
         "unit"      : "organisation",
@@ -95,8 +103,10 @@ export const PRIVILEGES = [
     },
     {
         "id"        : "admin_architecture",
-        "label"     : "_DOCTYPES",
-        "comment"   : "_ADMIN_DOCTYPES_DESC",
+        "label2"     : "_DOCTYPES",
+        "label"     : lang.documentTypes,
+        "comment2"   : "_ADMIN_DOCTYPES_DESC",
+        "comment"   : lang.adminDocumentTypesDesc,
         "route"     : "/administration/doctypes",
         "type"      : "admin",
         "unit"      : "classement",
@@ -105,8 +115,10 @@ export const PRIVILEGES = [
     },
     {
         "id"        : "admin_tag",
-        "label"     : "_TAGS",
-        "comment"   : "_ADMIN_TAGS_DESC",
+        "label2"     : "_TAGS",
+        "label"     : lang.tags,
+        "comment2"   : "_ADMIN_TAGS_DESC",
+        "comment"   : lang.adminTagsDesc,
         "route"     : "index.php?page=manage_tag_list_controller&amp;module=tags",
         "type"      : "admin",
         "unit"      : "classement",
@@ -115,8 +127,10 @@ export const PRIVILEGES = [
     },
     {
         "id"        : "admin_baskets",
-        "label"     : "_BASKETS",
-        "comment"   : "_ADMIN_BASKETS_DESC",
+        "label2"     : "_BASKETS",
+        "label"     : lang.baskets,
+        "comment2"   : "_ADMIN_BASKETS_DESC",
+        "comment"   : lang.adminBasketsDesc,
         "route"     : "/administration/baskets",
         "type"      : "admin",
         "unit"      : "production",
diff --git a/src/frontend/app/administration/user/users-administration.component.html b/src/frontend/app/administration/user/users-administration.component.html
index 7d9cc4b4e41..57dc0f0945e 100755
--- a/src/frontend/app/administration/user/users-administration.component.html
+++ b/src/frontend/app/administration/user/users-administration.component.html
@@ -86,11 +86,11 @@
                     <mat-row *matRowDef="let row; columns: displayedColumns;" routerLink="/administration/users/{{row.id}}" style="cursor:pointer;"
                         matTooltip="{{lang.view}}"></mat-row>
                 </mat-table>
-                <div class="mat-paginator" style="min-height:48px;min-height: 48px;display: flex;justify-content: end;align-items: center;padding-right: 20px;">{{data.length}} {{lang.users}}</div>
+                <div class="mat-paginator" style="min-height:48px;min-height: 48px;display: flex;justify-content: end;align-items: center;padding-right: 20px;">{{data.length}} {{lang.usersAlt}}</div>
             </mat-card>
         </mat-sidenav-content>
         <mat-sidenav #snav2 [mode]="appService.getViewMode() ? 'over' : 'side'" [fixedInViewport]="appService.getViewMode()" fixedTopGap="56"
             position='end' [opened]="appService.getViewMode() ? false : false">
         </mat-sidenav>
     </mat-sidenav-container>
-</div>
\ No newline at end of file
+</div>
diff --git a/src/frontend/lang/lang-en.ts b/src/frontend/lang/lang-en.ts
index 843987b92b9..10681f40f58 100755
--- a/src/frontend/lang/lang-en.ts
+++ b/src/frontend/lang/lang-en.ts
@@ -112,6 +112,7 @@ export const LANG_EN = {
     "basketNotFound"                        : "Basket not found",
     "basketNotification"                    : "Toggle notification for this basket",
     "baskets"                               : "Baskets",
+    "adminBasketsDesc"                      : "Define the baskets content and associate them to users groups.",
     "basketsAssigned"                       : "Assigned basket(s)",
     "basketsAssignedShort"                  : "Assigned basket(s)",
     "basketsColor"                          : "Baskets color",
@@ -309,7 +310,9 @@ export const LANG_EN = {
     "docserverUpdated"                      : "Doctype updated",
     "doctype"                               : "Document types",
     "doctypes"                              : "Document types",
-    "doctypesAdmin"                         : "Document types",
+    "documentTypes"                         : "Document types",
+    "documentTypesAlt"                      : "Document(s) types",
+    "adminDocumentTypesDesc"                : "Define the intern layout of a file (file/ sub-file/ document type)",
     "documentation"                         : "Documentation",
     "documentOutOfPerimeter"                : "This document is out of perimeter",
     "documents"                             : "document(s)",
@@ -353,6 +356,9 @@ export const LANG_EN = {
     "enabledContactsFilling"                : "Contacts filling disabled",
     "enterValue"                            : "You must enter a value",
     "entities"                              : "Entities",
+    "adminEntitiesDesc"                     : "Manage your organization (poles,services, etc.). Also diffusion models and visa circuit linked to services.",
+    "workflowModels"                        : "Workflow models",
+    "adminWorkflowModelsDesc"               : "Manage avis and visa circuit models, which can be used in document.",
     "entity_label"                          : "Entity",
     "entityAdded"                           : "Entité added",
     "entityDeleted"                         : "Entité deleted",
@@ -429,6 +435,7 @@ export const LANG_EN = {
     "groupModification"                     : "Modify group",
     "groupRedirect"                         : "Group change",
     "groups"                                : "Groups",
+    "adminGroupsDesc"                       : "Add or update groups. Add privileges or access.",
     "groupServicesUpdated"                  : "Services updated",
     "groupUpdated"                          : "Group updated",
     "hello"                                 : "Hello",
@@ -874,6 +881,7 @@ export const LANG_EN = {
     "system"                                : "System",
     "systemParameters"                      : "System parameters",
     "tags"                                  : "Tags",
+    "adminTagsDesc"                         : "Allows to modify, erase, add or merge tags.",
     "templateAdded"                         : "Template added",
     "templateAssociateEntities"             : "List of entities already associated with a template",
     "templateCheckEntities"                 : "The following entities already have a registered template for the type : ",
@@ -959,7 +967,9 @@ export const LANG_EN = {
     "userMaarchParapheur"                   : "Maarch Parapheur user",
     "userModification"                      : "User Modification",
     "userReplacement"                       : "User replacement",
-    "users"                                 : "User(s)",
+    "users"                                 : "Users",
+    "adminUsersDesc"                        : "Add, suspend or modify users profiles.",
+    "usersAlt"                              : "User(s)",
     "userSuspended"                         : "User suspended",
     "userUpdated"                           : "User updated",
     "validate"                              : "Validate",
diff --git a/src/frontend/lang/lang-fr.ts b/src/frontend/lang/lang-fr.ts
index 009a81d935d..49103ba9e06 100755
--- a/src/frontend/lang/lang-fr.ts
+++ b/src/frontend/lang/lang-fr.ts
@@ -117,6 +117,7 @@ export const LANG_FR = {
     "basketNotFound"                        : "Bannette non trouvée",
     "basketNotification"                    : "Activer / désactiver la notification de cette bannette",
     "baskets"                               : "Bannettes",
+    "adminBasketsDesc"                      : "Définir le contenu des bannettes et les affecter à des groupes d'utilisateurs. Enumérer les actions possibles lors de l'utilisation de la bannette par un groupe donné. Attribuer un format d'affichage de la bannette pour un groupe.",
     "basketsAssigned"                       : "Bannette(s) assignée(s) par un autre utilisateur",
     "basketsAssignedShort"                  : "Bannette(s) assignée(s)",
     "basketsColor"                          : "Couleur des bannettes",
@@ -323,7 +324,9 @@ export const LANG_FR = {
     "docserverUpdated"                      : "Zone de stockage modifiée",
     "doctype"                               : "Type de document",
     "doctypes"                              : "Types de documents",
-    "doctypesAdmin"                         : "Typologie(s) de courrier(s)",
+    "documentTypes"                         : "Typologies de courriers",
+    "documentTypesAlt"                      : "Typologie(s) de courrier(s)",
+    "adminDocumentTypesDesc"                : "Définir la structure interne d'un dossier (chemise / sous-chemise / type de document).",
     "documentation"                         : "Documentation",
     "documentOutOfPerimeter"                : "Ce document est en dehors de votre périmètre",
     "documents"                             : "document(s)",
@@ -367,6 +370,9 @@ export const LANG_FR = {
     "enabledContactsFilling"                : "Complétude désactivée",
     "enterValue"                            : "Vous devez entrer une valeur",
     "entities"                              : "Entités",
+    "adminEntitiesDesc"                     : "Gérer la structure de votre organisation (pôles, services et bureaux). Ainsi que les modèles de diffusion et circuits de visa associés aux entités.",
+    "workflowModels"                        : "Modèles de circuit",
+    "adminWorkflowModelsDesc"               : "Gérer les modèles de circuits d'avis et de visa pouvant être utilisés dans un courrier.",
     "entity_label"                          : "Entité",
     "entityAdded"                           : "Entité ajoutée",
     "entityDeleted"                         : "Entité supprimée",
@@ -449,6 +455,7 @@ export const LANG_FR = {
     "groupModification"                     : "Modification d'un groupe",
     "groupRedirect"                         : "Changement de groupe",
     "groups"                                : "Groupes",
+    "adminGroupsDesc"                       : "Ajouter, suspendre, ou modifier des groupes d'utilisateurs. Attribuer des privilèges ou des autorisations d'accès aux ressources.",
     "groupServicesUpdated"                  : "Privilèges modifiés",
     "groupUpdated"                          : "Groupe modifié",
     "hello"                                 : "Bonjour",
@@ -907,6 +914,7 @@ export const LANG_FR = {
     "system"                                : "Système",
     "systemParameters"                      : "paramètres système",
     "tags"                                  : "Mots clés",
+    "adminTagsDesc"                         : "Permet de modifier, supprimer, ajouter ou fusionner des mots-clés depuis l'interface d'administration.",
     "templateAdded"                         : "Modèle ajouté",
     "templateAssociateEntities"             : "Liste des entités déjà associées à un modèle",
     "templateCheckEntities"                 : "Les entités suivantes ont déjà un modèle enregistré pour le type : ",
@@ -992,7 +1000,9 @@ export const LANG_FR = {
     "userMaarchParapheur"                   : "Attributaire Maarch Parapheur",
     "userModification"                      : "Modification de l'utilisateur",
     "userReplacement"                       : "Utilisateur de remplacement",
-    "users"                                 : "Utilisateur(s)",
+    "users"                                 : "Utilisateurs",
+    "adminUsersDesc"                        : "Ajouter, suspendre, ou modifier des profils utilisateurs.",
+    "usersAlt"                              : "Utilisateur(s)",
     "userSuspended"                         : "Utilisateur suspendu",
     "userUpdated"                           : "Utilisateur modifié",
     "validate"                              : "Valider",
diff --git a/src/frontend/lang/lang-nl.ts b/src/frontend/lang/lang-nl.ts
index 238f0c3f045..8b295890ee7 100755
--- a/src/frontend/lang/lang-nl.ts
+++ b/src/frontend/lang/lang-nl.ts
@@ -111,6 +111,7 @@ export const LANG_NL = {
     "basketNotFound"                        : "Bakjes niet gevonden",
     "basketNotification"                    : "De melding van dit bakje inschakelen / uitschakelen",
     "baskets"                               : "Bakjes",
+    "adminBasketsDesc"                      : "De inhoud van de bakjes bepalen en deze aan gebruikersgroepen toewijzen. De mogelijke omleidingen opnoemen bij het gebruik van het bakje door een gegeven groep. Een weergaveformaat van het bakje toekennen door deze groep.",
     "basketsAssigned"                       : "Bakjes door een andere gebruiker toegewezen",
     "basketsAssignedShort"                  : "_TO_TRANSLATE",
     "basketsColor"                          : "Kleur van de bakjes",
@@ -314,7 +315,9 @@ export const LANG_NL = {
     "docserverUpdated"                      : "Opslagruimte gewijzigd",
     "doctype"                               : "Documenttype",
     "doctypes"                              : "Documenttypes",
-    "doctypesAdmin"                         : "Documenttypologie(ën)",
+    "documentTypes"                         : "Documenttypes",
+    "documentTypesAlt"                      : "Documenttypologie(ën)",
+    "adminDocumentTypesDesc"                : "De interne structuur van een map bepalen (map / submap / documenttype).",
     "documentation"                         : "Documentatie",
     "documentOutOfPerimeter"                : "Dit document ligt buiten uw perimeter",
     "documents"                             : "document(en)",
@@ -359,6 +362,9 @@ export const LANG_NL = {
     "enabledContactsFilling"                : "Volledigheid uitgeschakeld",
     "enterValue"                            : "U moet een waarde invoeren",
     "entities"                              : "Eenheden",
+    "adminEntitiesDesc"                     : "De structuur van uw organisatie beheren (polen, diensten en kantoren). Evenals de verdelingsmodellen en de goedkeuringscircuits die aan de eenheden gekoppeld zijn.",
+    "workflowModels"                        : "Circuitmodellen",
+    "adminWorkflowModelsDesc"               : "De modellen van de berichten- en goedkeuringscircuits beheren die in een brief gebruikt kunnen worden.",
     "entity_label"                          : "_TO_TRANSLATE",
     "entityAdded"                           : "Toegevoegde eenheid",
     "entityDeleted"                         : "Verwijderde eenheid",
@@ -438,6 +444,7 @@ export const LANG_NL = {
     "groupModification"                     : "Wijziging van een groep",
     "groupRedirect"                         : "Groepswijziging",
     "groups"                                : "Groepen",
+    "adminGroupsDesc"                       : "Gebruikersgroepen toevoegen, opschorten of wijzigen. Privileges of toegangstoelatingen aan assets toekennen.",
     "groupServicesUpdated"                  : "Gewijzigde voorrechten",
     "groupUpdated"                          : "Gewijzigde groep",
     "hello"                                 : "Hallo",
@@ -902,6 +909,7 @@ export const LANG_NL = {
     "system"                                : "Systeem",
     "systemParameters"                      : "systeeminstellingen",
     "tags"                                  : "Sleutelwoorden",
+    "adminTagsDesc"                         : "Voor het wijzigen, verwijderen, toevoegen of fusioneren van sleutelwoorden vanuit de beheerinterface.",
     "templateAdded"                         : "Model toegevoegd",
     "templateAssociateEntities"             : "List of entities already associated with a template", //_TO_TRANSLATE
     "templateCheckEntities"                 : "The following entities already have a registered template for the type : ", //_TO_TRANSLATE
@@ -985,7 +993,9 @@ export const LANG_NL = {
     "userMaarchParapheur"                   : "Maarch Parapheur user", //_TO_TRANSLATE
     "userModification"                      : "Wijziging van de gebruiker",
     "userReplacement"                       : "Vervangingsgebruiker",
-    "users"                                 : "Gebruiker(s)",
+    "users"                                 : "Gebruikers",
+    "adminUsersDesc"                        : "Gebruikersprofielen toevoegen, opschorten of wijzigen.",
+    "usersAlt"                              : "Gebruiker(s)",
     "userSuspended"                         : "Geschorste gebruiker",
     "userToRedirect"                        : "Hier klikken om door te sturen",
     "userUpdated"                           : "Gewijzigde gebruiker",
-- 
GitLab