diff --git a/assets/js/langs/en.inc.js b/assets/js/langs/en.inc.js index 72360a6d..5b5860d2 100644 --- a/assets/js/langs/en.inc.js +++ b/assets/js/langs/en.inc.js @@ -5,6 +5,10 @@ */ ComunicWeb.common.langs.en = { + /** + * Common + */ + //Really really common messages _loading: "Loading...", _send: "Send", @@ -14,15 +18,10 @@ ComunicWeb.common.langs.en = { "__fatal_error": "Fatal error", "__fatal_error_explanation": "A fatal error occured : %p. Please try to refresh the page...", - //Login form - _login_page_top_msg: "Login to your Comunic account.", - _login_page_remember_me: "Remember me", - _login_page_email_placeholder: "Email", - _login_page_password_placeholder: "Password", - _login_page_submit: "Sign In", - _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 !", + + /** + * Components + */ //Menu bar - login form _menu_bar_login_btn: "Login", @@ -54,4 +53,19 @@ ComunicWeb.common.langs.en = { _err_drag_image_post: "Please do not drag images directly in the message !", + + /** + * Pages + */ + + //Login form + _login_page_top_msg: "Login to your Comunic account.", + _login_page_remember_me: "Remember me", + _login_page_email_placeholder: "Email", + _login_page_password_placeholder: "Password", + _login_page_submit: "Sign In", + _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 !", + _login_page_create_account_lnk: "Create an account", } \ No newline at end of file diff --git a/assets/js/langs/fr.inc.js b/assets/js/langs/fr.inc.js index cfbaf850..f6065264 100644 --- a/assets/js/langs/fr.inc.js +++ b/assets/js/langs/fr.inc.js @@ -5,6 +5,10 @@ */ ComunicWeb.common.langs.fr = { + /** + * Common + */ + //Really really common messages _loading: "Chargement...", _send: "Envoyer", @@ -13,15 +17,10 @@ ComunicWeb.common.langs.fr = { "__fatal_error": "Erreur fatale", "__fatal_error_explanation": "Une erreur fatale a survenue : %p. Veuillez réessayer de recharger la page...", - //Login form - _login_page_top_msg: "Connectez-vous à votre compte Comunic.", - _login_page_remember_me: "Se souvenir de moi", - _login_page_email_placeholder: "Email", - _login_page_password_placeholder: "Mot de passe", - _login_page_submit: "Connexion", - _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...", + + /** + * Components + */ //Menu bar - login form _menu_bar_login_btn: "Connexion", @@ -52,4 +51,20 @@ ComunicWeb.common.langs.fr = { _input_survey_answers_hint: "Saisissez vos réponses une par une. Appuyer sur entrée après avoir saisi une réponse pour la confirmer.", _err_drag_image_post: "Veuillez ne pas glisser d'images dans les messages !", + + + /** + * Pages + */ + //Login form + _login_page_top_msg: "Connectez-vous à votre compte Comunic.", + _login_page_remember_me: "Se souvenir de moi", + _login_page_email_placeholder: "Email", + _login_page_password_placeholder: "Mot de passe", + _login_page_submit: "Connexion", + _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...", + _login_page_create_account_lnk: "Créer un compte", + } \ No newline at end of file diff --git a/assets/js/pages/login.js b/assets/js/pages/login.js index da221878..de45d442 100644 --- a/assets/js/pages/login.js +++ b/assets/js/pages/login.js @@ -39,6 +39,7 @@ ComunicWeb.pages.login = { "email": lang("_login_page_email_placeholder"), "password": lang("_login_page_password_placeholder"), "sign_in": lang("_login_page_submit"), + "create_account": lang("_login_page_create_account_lnk") }; //Preparing next actions diff --git a/assets/templates/pages/login/loginPage.tpl b/assets/templates/pages/login/loginPage.tpl index 6715d276..91b70c15 100644 --- a/assets/templates/pages/login/loginPage.tpl +++ b/assets/templates/pages/login/loginPage.tpl @@ -40,7 +40,7 @@ - Create an account + {create_account}