Translated menu bar login form

This commit is contained in:
Pierre 2018-02-23 11:46:21 +01:00
parent 8d2e5dcb35
commit afd92d4e06
3 changed files with 13 additions and 3 deletions

View File

@ -29,7 +29,7 @@ ComunicWeb.components.menuBar.notAuthenticated = {
//Add email input //Add email input
var emailInput = createElem("input", emailFormGroup); var emailInput = createElem("input", emailFormGroup);
emailInput.className = "form-control"; emailInput.className = "form-control";
emailInput.placeholder = "Email address"; emailInput.placeholder = lang("_menu_bar_login_email");
emailInput.type = "email"; emailInput.type = "email";
emailInput.value = ComunicWeb.components.mailCaching.get(); emailInput.value = ComunicWeb.components.mailCaching.get();
@ -40,7 +40,7 @@ ComunicWeb.components.menuBar.notAuthenticated = {
//Add password input //Add password input
var passwordInput = createElem("input", passwordFormGroup); var passwordInput = createElem("input", passwordFormGroup);
passwordInput.className = "form-control"; passwordInput.className = "form-control";
passwordInput.placeholder = "Password"; passwordInput.placeholder = lang("_menu_bar_login_passwd");
passwordInput.type = "password"; passwordInput.type = "password";
//Add submit button formGroup //Add submit button formGroup
@ -50,7 +50,7 @@ ComunicWeb.components.menuBar.notAuthenticated = {
//Add submit input //Add submit input
var submitInput = createElem("input", submitFromGroup); var submitInput = createElem("input", submitFromGroup);
submitInput.className = "form-control"; submitInput.className = "form-control";
submitInput.value = "Login"; submitInput.value = lang("_menu_bar_login_btn");
submitInput.type = "submit"; submitInput.type = "submit";
//Add submit form behaviour //Add submit form behaviour

View File

@ -18,4 +18,9 @@ ComunicWeb.common.langs.en = {
_login_page_error_head: "Login failed", _login_page_error_head: "Login failed",
_login_page_error_message: "Please check your usermail and password !", _login_page_error_message: "Please check your usermail and password !",
_login_page_bad_input: "Please check what you've typed !", _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",
} }

View File

@ -18,4 +18,9 @@ ComunicWeb.common.langs.fr = {
_login_page_error_head: "La connexion a échouée", _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_error_message: "Veuillez vérifier votre identifiant et votre mot de passe !",
_login_page_bad_input: "Veuillez vérifier votre saisie...", _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",
} }