diff --git a/assets/js/components/like/button.js b/assets/js/components/like/button.js index 59646942..196be79c 100644 --- a/assets/js/components/like/button.js +++ b/assets/js/components/like/button.js @@ -57,10 +57,10 @@ ComunicWeb.components.like.button = { else { //Update message if(count == 1){ - likeMsg.innerHTML = "1 like"; + likeMsg.innerHTML = lang("like_btn_one_like"); } else - likeMsg.innerHTML = count + " likes"; + likeMsg.innerHTML = lang("like_btn_x_likes", [count]); } } @@ -69,10 +69,10 @@ ComunicWeb.components.like.button = { //Update the message if(liking == true){ - likeMsg.innerHTML = "Liking" + likeMsg.innerHTML = lang("like_btn_liking") } else { - likeMsg.innerHTML = "Like"; + likeMsg.innerHTML = lang("like_btn_like"); } //Add total count if possible diff --git a/assets/js/langs/en.inc.js b/assets/js/langs/en.inc.js index beb93124..cb2073a8 100644 --- a/assets/js/langs/en.inc.js +++ b/assets/js/langs/en.inc.js @@ -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_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