mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 22:09:21 +00:00
Translated profile infos about user section.
This commit is contained in:
parent
ad67f6d852
commit
536570abf1
@ -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_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_post_title: "No post to display",
|
||||||
page_latest_posts_notice_no_posts_message: "Posts from you and your friend will appear here...",
|
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",
|
||||||
}
|
}
|
@ -116,7 +116,7 @@ ComunicWeb.pages.userPage.profileInfos = {
|
|||||||
createElem2({
|
createElem2({
|
||||||
appendTo: friendsLi,
|
appendTo: friendsLi,
|
||||||
type: "b",
|
type: "b",
|
||||||
innerHTML: "Friends"
|
innerHTML: lang("user_page_profile_info_friends_link")
|
||||||
});
|
});
|
||||||
var friendsListLink = createElem2({
|
var friendsListLink = createElem2({
|
||||||
appendTo: friendsLi,
|
appendTo: friendsLi,
|
||||||
@ -140,7 +140,7 @@ ComunicWeb.pages.userPage.profileInfos = {
|
|||||||
var userStatus = createElem2({
|
var userStatus = createElem2({
|
||||||
appendTo: boxBody,
|
appendTo: boxBody,
|
||||||
type: "div",
|
type: "div",
|
||||||
innerHTML: "Loading...",
|
innerHTML: lang("user_page_profile_info_loading"),
|
||||||
});
|
});
|
||||||
userStatus.style.textAlign = "center";
|
userStatus.style.textAlign = "center";
|
||||||
ComunicWeb.pages.userPage.friendshipStatus.display(infos.userID, userStatus);
|
ComunicWeb.pages.userPage.friendshipStatus.display(infos.userID, userStatus);
|
||||||
@ -153,7 +153,7 @@ ComunicWeb.pages.userPage.profileInfos = {
|
|||||||
appendTo: boxBody,
|
appendTo: boxBody,
|
||||||
type: "button",
|
type: "button",
|
||||||
class: "btn btn-default btn-block",
|
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(){
|
conversationButton.onclick = function(){
|
||||||
@ -191,7 +191,7 @@ ComunicWeb.pages.userPage.profileInfos = {
|
|||||||
appendTo: boxHeader,
|
appendTo: boxHeader,
|
||||||
type: "h3",
|
type: "h3",
|
||||||
class: "box-title",
|
class: "box-title",
|
||||||
innerHTML: "About " + infos.firstName
|
innerHTML: lang("user_page_profile_info_about_box_title", [infos.firstName])
|
||||||
});
|
});
|
||||||
|
|
||||||
//Create box body
|
//Create box body
|
||||||
@ -216,7 +216,7 @@ ComunicWeb.pages.userPage.profileInfos = {
|
|||||||
createElem2({
|
createElem2({
|
||||||
appendTo: userWebsite,
|
appendTo: userWebsite,
|
||||||
type: "span",
|
type: "span",
|
||||||
innerHTML: "Website"
|
innerHTML: lang("user_page_profile_info_website")
|
||||||
});
|
});
|
||||||
var websiteLinkContainer = createElem2({
|
var websiteLinkContainer = createElem2({
|
||||||
appendTo: boxBody,
|
appendTo: boxBody,
|
||||||
@ -251,7 +251,7 @@ ComunicWeb.pages.userPage.profileInfos = {
|
|||||||
createElem2({
|
createElem2({
|
||||||
appendTo: userNote,
|
appendTo: userNote,
|
||||||
type: "span",
|
type: "span",
|
||||||
innerHTML: "Note"
|
innerHTML: lang("user_page_profile_info_note")
|
||||||
});
|
});
|
||||||
var publicNotes = createElem2({
|
var publicNotes = createElem2({
|
||||||
appendTo: boxBody,
|
appendTo: boxBody,
|
||||||
@ -285,13 +285,13 @@ ComunicWeb.pages.userPage.profileInfos = {
|
|||||||
createElem2({
|
createElem2({
|
||||||
appendTo: membershipInfos,
|
appendTo: membershipInfos,
|
||||||
type: "span",
|
type: "span",
|
||||||
innerHTML: "Membership"
|
innerHTML: lang("user_page_profile_info_membership")
|
||||||
});
|
});
|
||||||
createElem2({
|
createElem2({
|
||||||
appendTo: boxBody,
|
appendTo: boxBody,
|
||||||
type: "p",
|
type: "p",
|
||||||
class: "text-muted",
|
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)])
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user