diff --git a/assets/js/components/friends/friendsBar.js b/assets/js/components/friends/friendsBar.js index fa87f7cc..e5cdb5bb 100644 --- a/assets/js/components/friends/friendsBar.js +++ b/assets/js/components/friends/friendsBar.js @@ -125,7 +125,7 @@ ComunicWeb.components.friends.bar = { noFriendMessage.style.color = "#3c8dbc"; noFriendMessage.style.fontSize = "150%"; noFriendMessage.style.textAlign = "justify"; - noFriendMessage.innerHTML = "You have no friends yet! We can't display anything here for you for now... :(" + noFriendMessage.innerHTML = lang("friends_bar_no_friends_notice") } //Enable slimscroll @@ -276,9 +276,9 @@ ComunicWeb.components.friends.bar = { //Change statusRow style if(accepted) - statusRow.innerHTML = "Accepted"; + statusRow.innerHTML = lang("friends_bar_accepted"); else - statusRow.innerHTML = "Refused"; + statusRow.innerHTML = lang("friends_bar_rejected"); //Perform an API request ComunicWeb.components.friends.list.respondRequest(friendID, accepted); diff --git a/assets/js/langs/en.inc.js b/assets/js/langs/en.inc.js index cb2073a8..df710712 100644 --- a/assets/js/langs/en.inc.js +++ b/assets/js/langs/en.inc.js @@ -67,6 +67,11 @@ 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 !", + //Friends - bar + friends_bar_no_friends_notice: "You have no friends yet! We can't display anything here for you for now... :(", + friends_bar_accepted: "Accepted", + friends_bar_rejected: "Refused", + //Like - Button like_btn_one_like: "1 like", like_btn_x_likes: "%p likes",