diff --git a/assets/js/langs/en.inc.js b/assets/js/langs/en.inc.js index f5431dd8..da6ce407 100644 --- a/assets/js/langs/en.inc.js +++ b/assets/js/langs/en.inc.js @@ -73,4 +73,14 @@ ComunicWeb.common.langs.en = { _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", + + //Create account page + form_create_account_title: "Create an account", + form_create_account_intro: "Use the following form to create an account and join the network : ", + form_create_account_first_name_label: "First name", + form_create_account_first_name_placeholder: "Your first name", + form_create_account_last_name_label: "Last name", + form_create_account_last_name_placeholder: "Your last name", + form_create_account_email_address_label: "Email address Warning! You will not be able to change this later !", + form_create_account_email_address_placeholder: "Your email address", } \ No newline at end of file diff --git a/assets/js/pages/createAccount.js b/assets/js/pages/createAccount.js index fed409e5..397bbe05 100644 --- a/assets/js/pages/createAccount.js +++ b/assets/js/pages/createAccount.js @@ -37,14 +37,14 @@ ComunicWeb.pages.createAccount = { createElem2({ appendTo: formRoot, type: "h2", - innerHTML: "Create an account" + innerHTML: lang("form_create_account_title") }); //Add a message createElem2({ appendTo: formRoot, type: "p", - innerHTML: "Use the following form to create an account and join the network : " + innerHTML: lang("form_create_account_intro") }); //Create the message target @@ -56,24 +56,24 @@ ComunicWeb.pages.createAccount = { //Input user first name var firstNameInput = createFormGroup({ target: formRoot, - label: "First name", - placeholder: "Your first name", + label: lang("form_create_account_first_name_label"), + placeholder: lang("form_create_account_first_name_placeholder"), type: "text" }); //Input user last name var lastNameInput = createFormGroup({ target: formRoot, - label: "Last name", - placeholder: "Your last name", + label: lang("form_create_account_last_name_label"), + placeholder: lang("form_create_account_last_name_placeholder"), type: "text" }); //Input user email var emailInput = createFormGroup({ target: formRoot, - label: "Email address Warning! You will not be able to change this later !", - placeholder: "Your email address", + label: lang("form_create_account_email_address_label"), + placeholder: lang("form_create_account_email_address_placeholder"), type: "email" });