mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 20:19:21 +00:00
Added translation for lastest posts page.
This commit is contained in:
parent
499aefbc1d
commit
1e1021fd49
@ -104,5 +104,11 @@ ComunicWeb.common.langs.en = {
|
||||
//Account created page
|
||||
account_created_message_title: "Congratulations!",
|
||||
account_created_message_body: "Your account has been successfully created! <br /> Login now to use all the features of Comunic!",
|
||||
account_created_message_login: "Login"
|
||||
account_created_message_login: "Login",
|
||||
|
||||
//Latest posts page
|
||||
page_latest_posts_err_get_list_title: "Error",
|
||||
page_latest_posts_err_get_list_message: "Could not get the list of the latest posts ! Please try to refresh the page...",
|
||||
page_latest_posts_notice_no_post_title: "No post to display",
|
||||
page_latest_posts_notice_no_posts_message: "Posts from you and your friend will appear here...",
|
||||
}
|
@ -98,7 +98,7 @@ ComunicWeb.pages.latestPosts.main = {
|
||||
if(response.error){
|
||||
|
||||
//Display modal error
|
||||
var error = ComunicWeb.common.messages.createCalloutElem("Error", "Could not get the list of the latest posts ! Please try to refresh the page...", "danger");
|
||||
var error = ComunicWeb.common.messages.createCalloutElem(lang("page_latest_posts_err_get_list_title"), lang("page_latest_posts_err_get_list_message"), "danger");
|
||||
error.className += " latestPostsError";
|
||||
target.appendChild(error);
|
||||
}
|
||||
@ -134,7 +134,7 @@ ComunicWeb.pages.latestPosts.main = {
|
||||
//Check if there aren't any post to display
|
||||
if(list.length == 0){
|
||||
//Display message
|
||||
var message = ComunicWeb.common.messages.createCalloutElem("No post to display", "Posts from you and your friend will appear here...", "info");
|
||||
var message = ComunicWeb.common.messages.createCalloutElem(lang("page_latest_posts_notice_no_post_title"), lang("page_latest_posts_notice_no_posts_message"), "info");
|
||||
message.className += " noLatestPosts";
|
||||
target.appendChild(message);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user