From 0b670ea3977afa3e78fc5e847f0dd13a4ea0d910 Mon Sep 17 00:00:00 2001
From: "hamza.hramchi" <hamza.hramchi@xelians.fr>
Date: Fri, 4 Dec 2020 09:57:06 +0100
Subject: [PATCH] FEAT #15550 TIME 0:03 use instant translate

---
 lang/en.json                                    | 9 +++++----
 lang/fr.json                                    | 3 ++-
 src/frontend/app/document/document.component.ts | 2 +-
 3 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/lang/en.json b/lang/en.json
index 5e1dc84429..6266b16a36 100755
--- a/lang/en.json
+++ b/lang/en.json
@@ -192,7 +192,7 @@
         "no": "No",
         "ldapEnabled": "LDAP enabled",
         "kerberosEnabled": "Kerberos enabled",
-		"x509Enabled": "Certificate x509 enbaled",
+        "x509Enabled": "Certificate x509 enbaled",
         "userCreation": "Add a user",
         "manage_ldap_configurations": "Ldap",
         "manage_ldap_configurationsDesc": "Add / Update / Delete ldap entries in order to authenticate users.",
@@ -213,8 +213,8 @@
         "manage_connectionsDesc": "Manage all available connections modes in application.",
         "defaultConnection": "Default",
         "ldapConnection": "Ldap",
-        "kerberosConnection" : "Kerberos",
-		"x509Connection" : "Certificate x509",
+        "kerberosConnection": "Kerberos",
+        "x509Connection": "Certificate x509",
         "connectionMode": "Connection mode",
         "connectionModeUpdated": "Connection mode updated",
         "changeConnectionWarn": "This cause a change in login mechanics for users !",
@@ -383,6 +383,7 @@
         "generateLangVarIgnoreTranslate": "Generate language variables (IGNORE __TO_TRANSLATE)",
         "close": "Close",
         "signatureInDocAddedAlt": "Signature affixed",
-        "proof": "Body of evidence"
+        "proof": "Body of evidence",
+        "loadingDocument": "Loading the document"
     }
 }
\ No newline at end of file
diff --git a/lang/fr.json b/lang/fr.json
index bcaaac91a3..30a148be45 100755
--- a/lang/fr.json
+++ b/lang/fr.json
@@ -384,6 +384,7 @@
 		"generateLangVarIgnoreTranslate": "Générer les variables de langues (IGNORE __TO_TRANSLATE)",
 		"close": "Fermer",
 		"reorder" : "Réorganiser",
-		"goToPage": "Aller à la page"
+		"goToPage": "Aller à la page",
+		"loadingDocument": "Chargement du document"
 	}
 }
diff --git a/src/frontend/app/document/document.component.ts b/src/frontend/app/document/document.component.ts
index e9bb52f93b..5c8f0b29ab 100755
--- a/src/frontend/app/document/document.component.ts
+++ b/src/frontend/app/document/document.component.ts
@@ -558,7 +558,7 @@ export class DocumentComponent implements OnInit {
     goTo(page: number) {
         setTimeout(() => {
             this.loadingController.create({
-                message: 'Chargement du document',
+                message: this.translate.instant('lang.loadingDocument'),
                 spinner: 'dots'
             }).then((load: HTMLIonLoadingElement) => {
                 this.load = load;
-- 
GitLab