mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 20:19:21 +00:00
Completed posts component translation.
This commit is contained in:
parent
2cd9338417
commit
28edb3122f
@ -25,7 +25,7 @@ ComunicWeb.components.posts.actions = {
|
|||||||
|
|
||||||
//Check for errors
|
//Check for errors
|
||||||
if(infos.error){
|
if(infos.error){
|
||||||
ComunicWeb.common.notificationSystem.showNotification("An error occured while getting information about the post !", "danger");
|
ComunicWeb.common.notificationSystem.showNotification(lang("posts_actions_err_get_single"), "danger");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ ComunicWeb.components.posts.edit = {
|
|||||||
appendTo: modalHeader,
|
appendTo: modalHeader,
|
||||||
type: "h4",
|
type: "h4",
|
||||||
class: "modal-title",
|
class: "modal-title",
|
||||||
innerHTML: "Update the post"
|
innerHTML: lang("posts_edit_title")
|
||||||
});
|
});
|
||||||
|
|
||||||
//Modal body
|
//Modal body
|
||||||
@ -77,7 +77,7 @@ ComunicWeb.components.posts.edit = {
|
|||||||
appendTo: modalFooter,
|
appendTo: modalFooter,
|
||||||
type: "button",
|
type: "button",
|
||||||
class: "btn btn-default pull-left",
|
class: "btn btn-default pull-left",
|
||||||
innerHTML: "Cancel"
|
innerHTML: lang("posts_edit_cancel")
|
||||||
});
|
});
|
||||||
cancelButton.setAttribute("data-confirm", "false");
|
cancelButton.setAttribute("data-confirm", "false");
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ ComunicWeb.components.posts.edit = {
|
|||||||
appendTo: modalFooter,
|
appendTo: modalFooter,
|
||||||
type: "button",
|
type: "button",
|
||||||
class: "btn btn-primary",
|
class: "btn btn-primary",
|
||||||
innerHTML: "Update"
|
innerHTML: lang("posts_edit_update")
|
||||||
});
|
});
|
||||||
confirmButton.setAttribute("data-confirm", "true");
|
confirmButton.setAttribute("data-confirm", "true");
|
||||||
|
|
||||||
@ -135,7 +135,7 @@ ComunicWeb.components.posts.edit = {
|
|||||||
|
|
||||||
//Check the new post content
|
//Check the new post content
|
||||||
if(!ComunicWeb.components.posts.form._check_message(new_content)){
|
if(!ComunicWeb.components.posts.form._check_message(new_content)){
|
||||||
ComunicWeb.common.notificationSystem.showNotification("Please check your message content !", "danger");
|
ComunicWeb.common.notificationSystem.showNotification(lang("posts_edit_err_invalid_content"), "danger");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -147,13 +147,13 @@ ComunicWeb.components.posts.edit = {
|
|||||||
|
|
||||||
//Check for errors
|
//Check for errors
|
||||||
if(response.error){
|
if(response.error){
|
||||||
ComunicWeb.common.notificationSystem.showNotification("An error occured while trying to udpate post !", "danger");
|
ComunicWeb.common.notificationSystem.showNotification(lang("posts_edit_err_update_content"), "danger");
|
||||||
confirmButton.disabled = false;
|
confirmButton.disabled = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Display success
|
//Display success
|
||||||
ComunicWeb.common.notificationSystem.showNotification("The post has been updated !", "success");
|
ComunicWeb.common.notificationSystem.showNotification(lang("posts_edit_success_update"), "success");
|
||||||
|
|
||||||
//Reload post
|
//Reload post
|
||||||
ComunicWeb.components.posts.actions.reload_post(infos.ID, root);
|
ComunicWeb.components.posts.actions.reload_post(infos.ID, root);
|
||||||
|
@ -56,6 +56,17 @@ ComunicWeb.common.langs.en = {
|
|||||||
menu_bar_action_settings: "Settings",
|
menu_bar_action_settings: "Settings",
|
||||||
_menu_bar_action_logout: "Logout",
|
_menu_bar_action_logout: "Logout",
|
||||||
|
|
||||||
|
//Posts - Actions
|
||||||
|
posts_actions_err_get_single: "An error occured while getting information about the post !",
|
||||||
|
|
||||||
|
//Posts - Editor
|
||||||
|
posts_edit_cancel: "Cancel",
|
||||||
|
posts_edit_update: "Update",
|
||||||
|
posts_edit_err_invalid_content: "Please check your message content !",
|
||||||
|
posts_edit_err_update_content: "An error occured while trying to udpate post !",
|
||||||
|
posts_edit_success_update: "The post has been updated !",
|
||||||
|
posts_edit_title: "Update the post",
|
||||||
|
|
||||||
//Posts - UI
|
//Posts - UI
|
||||||
posts_ui_error: "Error",
|
posts_ui_error: "Error",
|
||||||
posts_ui_err_update_visibility: "Couldn't change post visibility level !",
|
posts_ui_err_update_visibility: "Couldn't change post visibility level !",
|
||||||
|
Loading…
Reference in New Issue
Block a user