Translated friends bar.

This commit is contained in:
Pierre HUBERT 2018-08-04 09:37:36 +02:00
parent 6e08208fed
commit f859abcb2f
2 changed files with 8 additions and 3 deletions

View File

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

View File

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