diff --git a/assets/js/langs/en.inc.js b/assets/js/langs/en.inc.js index d9e88ec5..b7ac4e77 100644 --- a/assets/js/langs/en.inc.js +++ b/assets/js/langs/en.inc.js @@ -141,4 +141,12 @@ ComunicWeb.common.langs.en = { user_page_posts_err_get_posts: "Couldn't get user posts!", user_page_posts_notice_no_posts_title: "No post yet", user_page_posts_notice_no_posts_message: "Nobody has posted a message on this page yet.", + + //User page - access forbidden page + user_page_forbidden_err_sign_in_title: "Sign in required", + user_page_forbidden_err_sign_in_message: "Please sign in to get access to this page.", + user_page_forbidden_err_access_denied_title: "Access denied", + user_page_forbidden_access_denied_message: "You don't have the right to access this page.", + user_page_forbidden_private_account_notice: "This account is private.", + user_page_forbidden_loading: "Loading...", } \ No newline at end of file diff --git a/assets/js/pages/userPage/accessForbidden.js b/assets/js/pages/userPage/accessForbidden.js index cf27aa66..dede3a32 100644 --- a/assets/js/pages/userPage/accessForbidden.js +++ b/assets/js/pages/userPage/accessForbidden.js @@ -22,8 +22,8 @@ ComunicWeb.pages.userPage.accessForbidden = { //Inform user that he must sign in to continue elem = ComunicWeb.common.messages.createCalloutElem( - "Sign in required", - "Please sign in to get access to this page.", + lang("user_page_forbidden_err_sign_in_title"), + lang("user_page_forbidden_err_sign_in_message"), "danger" ); @@ -43,8 +43,8 @@ ComunicWeb.pages.userPage.accessForbidden = { //Inform user it is impossible for him to access this page elem = ComunicWeb.common.messages.createCalloutElem( - "Access denied", - "You don't have the right to access this page.", + lang("user_page_forbidden_err_access_denied_title"), + lang("user_page_forbidden_access_denied_message"), "danger" ); @@ -109,7 +109,7 @@ ComunicWeb.pages.userPage.accessForbidden = { appendTo: boxBody, type: "p", class: "text-center", - innerHTML: "This account is private." + innerHTML: lang("user_page_forbidden_private_account_notice") }); //Add friendship request message @@ -117,7 +117,7 @@ ComunicWeb.pages.userPage.accessForbidden = { appendTo: boxBody, type: "div", class: "text-center", - innerHTML: "Loading..." + innerHTML: lang("user_page_forbidden_loading") }); //Load friendship infos