Translated profile infos about user section.

This commit is contained in:
Pierre HUBERT 2018-08-04 09:21:49 +02:00
parent ad67f6d852
commit 536570abf1
2 changed files with 18 additions and 8 deletions

View File

@ -125,4 +125,14 @@ ComunicWeb.common.langs.en = {
page_latest_posts_err_get_list_message: "Could not get the list of the latest posts ! Please try to refresh the page...",
page_latest_posts_notice_no_post_title: "No post to display",
page_latest_posts_notice_no_posts_message: "Posts from you and your friend will appear here...",
//User page - Profile information
user_page_profile_info_friends_link: "Friends",
user_page_profile_info_loading: "Loading...",
user_page_profile_info_conversation_button: "Conversation",
user_page_profile_info_about_box_title: "About %p",
user_page_profile_info_website: "Website",
user_page_profile_info_note: "Note",
user_page_profile_info_membership: "Membership",
user_page_profile_info_member_for: "Member for %p",
}

View File

@ -116,7 +116,7 @@ ComunicWeb.pages.userPage.profileInfos = {
createElem2({
appendTo: friendsLi,
type: "b",
innerHTML: "Friends"
innerHTML: lang("user_page_profile_info_friends_link")
});
var friendsListLink = createElem2({
appendTo: friendsLi,
@ -140,7 +140,7 @@ ComunicWeb.pages.userPage.profileInfos = {
var userStatus = createElem2({
appendTo: boxBody,
type: "div",
innerHTML: "Loading...",
innerHTML: lang("user_page_profile_info_loading"),
});
userStatus.style.textAlign = "center";
ComunicWeb.pages.userPage.friendshipStatus.display(infos.userID, userStatus);
@ -153,7 +153,7 @@ ComunicWeb.pages.userPage.profileInfos = {
appendTo: boxBody,
type: "button",
class: "btn btn-default btn-block",
innerHTML: "<i class='fa fa-comments'></i> Conversation"
innerHTML: "<i class='fa fa-comments'></i> " + lang("user_page_profile_info_conversation_button")
});
conversationButton.onclick = function(){
@ -191,7 +191,7 @@ ComunicWeb.pages.userPage.profileInfos = {
appendTo: boxHeader,
type: "h3",
class: "box-title",
innerHTML: "About " + infos.firstName
innerHTML: lang("user_page_profile_info_about_box_title", [infos.firstName])
});
//Create box body
@ -216,7 +216,7 @@ ComunicWeb.pages.userPage.profileInfos = {
createElem2({
appendTo: userWebsite,
type: "span",
innerHTML: "Website"
innerHTML: lang("user_page_profile_info_website")
});
var websiteLinkContainer = createElem2({
appendTo: boxBody,
@ -251,7 +251,7 @@ ComunicWeb.pages.userPage.profileInfos = {
createElem2({
appendTo: userNote,
type: "span",
innerHTML: "Note"
innerHTML: lang("user_page_profile_info_note")
});
var publicNotes = createElem2({
appendTo: boxBody,
@ -285,13 +285,13 @@ ComunicWeb.pages.userPage.profileInfos = {
createElem2({
appendTo: membershipInfos,
type: "span",
innerHTML: "Membership"
innerHTML: lang("user_page_profile_info_membership")
});
createElem2({
appendTo: boxBody,
type: "p",
class: "text-muted",
innerHTML: "Member for " + ComunicWeb.common.date.timeDiffToStr(infos.account_creation_time)
innerHTML: lang("user_page_profile_info_member_for", [ComunicWeb.common.date.timeDiffToStr(infos.account_creation_time)])
});
},