Translated like button.

This commit is contained in:
Pierre HUBERT 2018-08-04 09:35:28 +02:00
parent 391c74df62
commit 6e08208fed
2 changed files with 10 additions and 4 deletions

View File

@ -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

View File

@ -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