From afd92d4e0615a14dbdf876bc9444fbff38e705f6 Mon Sep 17 00:00:00 2001 From: Pierre Date: Fri, 23 Feb 2018 11:46:21 +0100 Subject: [PATCH] Translated menu bar login form --- assets/js/components/menuBar/notAuthenticated.js | 6 +++--- assets/js/langs/en.inc.js | 5 +++++ assets/js/langs/fr.inc.js | 5 +++++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/assets/js/components/menuBar/notAuthenticated.js b/assets/js/components/menuBar/notAuthenticated.js index da5ce566..456cb1d9 100644 --- a/assets/js/components/menuBar/notAuthenticated.js +++ b/assets/js/components/menuBar/notAuthenticated.js @@ -29,7 +29,7 @@ ComunicWeb.components.menuBar.notAuthenticated = { //Add email input var emailInput = createElem("input", emailFormGroup); emailInput.className = "form-control"; - emailInput.placeholder = "Email address"; + emailInput.placeholder = lang("_menu_bar_login_email"); emailInput.type = "email"; emailInput.value = ComunicWeb.components.mailCaching.get(); @@ -40,7 +40,7 @@ ComunicWeb.components.menuBar.notAuthenticated = { //Add password input var passwordInput = createElem("input", passwordFormGroup); passwordInput.className = "form-control"; - passwordInput.placeholder = "Password"; + passwordInput.placeholder = lang("_menu_bar_login_passwd"); passwordInput.type = "password"; //Add submit button formGroup @@ -50,7 +50,7 @@ ComunicWeb.components.menuBar.notAuthenticated = { //Add submit input var submitInput = createElem("input", submitFromGroup); submitInput.className = "form-control"; - submitInput.value = "Login"; + submitInput.value = lang("_menu_bar_login_btn"); submitInput.type = "submit"; //Add submit form behaviour diff --git a/assets/js/langs/en.inc.js b/assets/js/langs/en.inc.js index 2ed71171..64ee236d 100644 --- a/assets/js/langs/en.inc.js +++ b/assets/js/langs/en.inc.js @@ -18,4 +18,9 @@ ComunicWeb.common.langs.en = { _login_page_error_head: "Login failed", _login_page_error_message: "Please check your usermail and password !", _login_page_bad_input: "Please check what you've typed !", + + //Menu bar - login form + _menu_bar_login_btn: "Login", + _menu_bar_login_passwd: "Password", + _menu_bar_login_email: "Email address", } \ No newline at end of file diff --git a/assets/js/langs/fr.inc.js b/assets/js/langs/fr.inc.js index 14535231..e50ced07 100644 --- a/assets/js/langs/fr.inc.js +++ b/assets/js/langs/fr.inc.js @@ -18,4 +18,9 @@ ComunicWeb.common.langs.fr = { _login_page_error_head: "La connexion a échouée", _login_page_error_message: "Veuillez vérifier votre identifiant et votre mot de passe !", _login_page_bad_input: "Veuillez vérifier votre saisie...", + + //Menu bar - login form + _menu_bar_login_btn: "Connexion", + _menu_bar_login_passwd: "Mot de passe", + _menu_bar_login_email: "Addresse mail", } \ No newline at end of file