From 2607adf510e397e4fb6a46c96164cbb7a29bb713 Mon Sep 17 00:00:00 2001
From: "florian.azizian" <florian.azizian@maarch.org>
Date: Thu, 27 Jun 2019 10:23:54 +0100
Subject: [PATCH] FEAT #10771 TIME 0:20 translate wording

---
 .../app/administration/user/user-administration.component.ts   | 3 +++
 src/frontend/lang/lang-en.ts                                   | 1 +
 src/frontend/lang/lang-fr.ts                                   | 1 +
 src/frontend/lang/lang-nl.ts                                   | 1 +
 4 files changed, 6 insertions(+)

diff --git a/src/frontend/app/administration/user/user-administration.component.ts b/src/frontend/app/administration/user/user-administration.component.ts
index 3bcaf764935..c0aa8818496 100755
--- a/src/frontend/app/administration/user/user-administration.component.ts
+++ b/src/frontend/app/administration/user/user-administration.component.ts
@@ -218,6 +218,9 @@ export class UserAdministrationComponent extends AutoCompletePlugin implements O
                 this.checkInfoMaarchParapheurAccount();
                 this.notify.success(this.lang.accountAdded);
             }, (err) => {
+                if (err.error.errors == 'Login already exists') {
+                    err.error.errors = this.lang.loginAlreadyExistsInMaarchParapheur
+                }
                 this.notify.error(err.error.errors);
             });
     }
diff --git a/src/frontend/lang/lang-en.ts b/src/frontend/lang/lang-en.ts
index e02c5108928..c65570b2566 100755
--- a/src/frontend/lang/lang-en.ts
+++ b/src/frontend/lang/lang-en.ts
@@ -1017,4 +1017,5 @@ export const LANG_EN = {
     "maarchParapheurAccountMsg2" : " will be created in Maarch Parapheur.",
     "searchUserInMaarchParapheur" : "Search an user in Maarch Parapheur",
     "newLoginInMaarchParapheur" : "New Maarch Parapheur Login",
+    "loginAlreadyExistsInMaarchParapheur" : "Login already exists in Maarch Parapheur"
 };
diff --git a/src/frontend/lang/lang-fr.ts b/src/frontend/lang/lang-fr.ts
index ef66ace40b4..974b9b4fa59 100755
--- a/src/frontend/lang/lang-fr.ts
+++ b/src/frontend/lang/lang-fr.ts
@@ -1050,4 +1050,5 @@ export const LANG_FR = {
     "maarchParapheurAccountMsg2" : "sera créé dans Maarch Parapheur.",
     "searchUserInMaarchParapheur" : "Recherche un utilisateur dans Maarch Parapheur",
     "newLoginInMaarchParapheur" : "Nouvel identifiant Maarch Parapheur",
+    "loginAlreadyExistsInMaarchParapheur" : "Ce login existe déjà dans Maarch Parapheur"
 };
\ No newline at end of file
diff --git a/src/frontend/lang/lang-nl.ts b/src/frontend/lang/lang-nl.ts
index 56454e4ef3c..9d599317277 100755
--- a/src/frontend/lang/lang-nl.ts
+++ b/src/frontend/lang/lang-nl.ts
@@ -1043,4 +1043,5 @@ export const LANG_NL = {
     "maarchParapheurAccountMsg2" : " will be created in Maarch Parapheur.", //_TO_TRANSLATE
     "searchUserInMaarchParapheur" : "Search unlinked an user in Maarch Parapheur", //_TO_TRANSLATE
     "newLoginInMaarchParapheur" : "New Maarch Parapheur Login", //_TO_TRANSLATE
+    "loginAlreadyExistsInMaarchParapheur" : "Login already exists in Maarch Parapheur", //_TO_TRANSLATE
 };
-- 
GitLab