mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-03 19:54:14 +00:00 
			
		
		
		
	Added translation for lastest posts page.
This commit is contained in:
		@@ -104,5 +104,11 @@ ComunicWeb.common.langs.en = {
 | 
				
			|||||||
    //Account created page
 | 
					    //Account created page
 | 
				
			||||||
    account_created_message_title: "Congratulations!",
 | 
					    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_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){
 | 
								if(response.error){
 | 
				
			||||||
				
 | 
									
 | 
				
			||||||
				//Display modal 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";
 | 
									error.className += " latestPostsError";
 | 
				
			||||||
				target.appendChild(error);
 | 
									target.appendChild(error);
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
@@ -134,7 +134,7 @@ ComunicWeb.pages.latestPosts.main = {
 | 
				
			|||||||
		//Check if there aren't any post to display
 | 
							//Check if there aren't any post to display
 | 
				
			||||||
		if(list.length == 0){
 | 
							if(list.length == 0){
 | 
				
			||||||
			//Display message
 | 
								//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";
 | 
								message.className += " noLatestPosts";
 | 
				
			||||||
			target.appendChild(message);
 | 
								target.appendChild(message);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user