mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 20:19:21 +00:00
Translated conversations dropdown.
This commit is contained in:
parent
50b40ac5b0
commit
52d1328f93
@ -51,7 +51,7 @@ ComunicWeb.components.conversations.unreadDropdown = {
|
|||||||
appendTo: dropdownMenu,
|
appendTo: dropdownMenu,
|
||||||
type: "li",
|
type: "li",
|
||||||
class: "header",
|
class: "header",
|
||||||
innerHTML: "Unread conversations"
|
innerHTML: lang("conversations_dropdown_header")
|
||||||
});
|
});
|
||||||
|
|
||||||
//Add conversations list
|
//Add conversations list
|
||||||
@ -107,7 +107,7 @@ ComunicWeb.components.conversations.unreadDropdown = {
|
|||||||
//Check for errors
|
//Check for errors
|
||||||
if(conversations.error){
|
if(conversations.error){
|
||||||
//Display an error
|
//Display an error
|
||||||
ComunicWeb.common.notificationSystem.showNotification("Could not retrieve the list of unread conversations !", "danger");
|
ComunicWeb.common.notificationSystem.showNotification(lang("conversations_dropdown_err_get_list"), "danger");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -129,7 +129,7 @@ ComunicWeb.components.conversations.unreadDropdown = {
|
|||||||
//Check for errors
|
//Check for errors
|
||||||
if(usersInfos.error){
|
if(usersInfos.error){
|
||||||
//Display an error
|
//Display an error
|
||||||
ComunicWeb.common.notificationSystem.showNotification("Could not get informations about some users !", "danger");
|
ComunicWeb.common.notificationSystem.showNotification(lang("conversations_dropdown_err_get_user_info"), "danger");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -243,7 +243,7 @@ ComunicWeb.components.conversations.unreadDropdown = {
|
|||||||
appendTo: target,
|
appendTo: target,
|
||||||
type: "p",
|
type: "p",
|
||||||
class: "no-unread-conversation-msg",
|
class: "no-unread-conversation-msg",
|
||||||
innerHTML: "You do not have any unread messages in the conversations you are following..."
|
innerHTML: lang("conversations_dropdown_no_unread_notice")
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -81,6 +81,12 @@ ComunicWeb.common.langs.en = {
|
|||||||
like_btn_liking: "Liking",
|
like_btn_liking: "Liking",
|
||||||
like_btn_like: "Like",
|
like_btn_like: "Like",
|
||||||
|
|
||||||
|
//Conversations dropdown
|
||||||
|
conversations_dropdown_header: "Unread conversations",
|
||||||
|
conversations_dropdown_err_get_list: "Could not retrieve the list of unread conversations !",
|
||||||
|
conversations_dropdown_err_get_user_info: "Could not get informations about some users !",
|
||||||
|
conversations_dropdown_no_unread_notice: "You do not have any unread messages in the conversations you are following...",
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pages
|
* Pages
|
||||||
|
Loading…
Reference in New Issue
Block a user