mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Translated like button.
This commit is contained in:
		@@ -57,10 +57,10 @@ ComunicWeb.components.like.button = {
 | 
				
			|||||||
			else {
 | 
								else {
 | 
				
			||||||
				//Update message
 | 
									//Update message
 | 
				
			||||||
				if(count == 1){
 | 
									if(count == 1){
 | 
				
			||||||
					likeMsg.innerHTML = "1 like";
 | 
										likeMsg.innerHTML = lang("like_btn_one_like");
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
				else
 | 
									else
 | 
				
			||||||
					likeMsg.innerHTML = count + " likes";
 | 
										likeMsg.innerHTML = lang("like_btn_x_likes", [count]);
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
@@ -69,10 +69,10 @@ ComunicWeb.components.like.button = {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
			//Update the message
 | 
								//Update the message
 | 
				
			||||||
			if(liking == true){
 | 
								if(liking == true){
 | 
				
			||||||
				likeMsg.innerHTML = "Liking"
 | 
									likeMsg.innerHTML = lang("like_btn_liking")
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			else {
 | 
								else {
 | 
				
			||||||
				likeMsg.innerHTML = "Like";
 | 
									likeMsg.innerHTML = lang("like_btn_like");
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			//Add total count if possible
 | 
								//Add total count if possible
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -67,6 +67,12 @@ ComunicWeb.common.langs.en = {
 | 
				
			|||||||
    form_post_err_send_new_post: "An error occured while trying to send a new post !",
 | 
					    form_post_err_send_new_post: "An error occured while trying to send a new post !",
 | 
				
			||||||
    form_post_success_create_post: "The post has been successfully created !",
 | 
					    form_post_success_create_post: "The post has been successfully created !",
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    //Like - Button
 | 
				
			||||||
 | 
					    like_btn_one_like: "1 like",
 | 
				
			||||||
 | 
					    like_btn_x_likes: "%p likes",
 | 
				
			||||||
 | 
					    like_btn_liking: "Liking",
 | 
				
			||||||
 | 
					    like_btn_like: "Like",
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Pages
 | 
					     * Pages
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user