mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 12:14:12 +00:00 
			
		
		
		
	Translated messages script.
This commit is contained in:
		@@ -47,7 +47,7 @@ ComunicWeb.common.messages.createCalloutElem = function(calloutTitle, calloutMes
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
ComunicWeb.common.messages.createLoadingCallout = function(target){
 | 
					ComunicWeb.common.messages.createLoadingCallout = function(target){
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    var elem = this.createCalloutElem("Loading", "Please wait while this page is loading...", "info");
 | 
					    var elem = this.createCalloutElem(lang("messages_loading_layout_title"), lang("messages_loading_layout_message"), "info");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if(target)
 | 
					    if(target)
 | 
				
			||||||
        target.appendChild(elem);
 | 
					        target.appendChild(elem);
 | 
				
			||||||
@@ -138,7 +138,7 @@ ComunicWeb.common.messages.createDialogSkeleton = function(info){
 | 
				
			|||||||
        appendTo: data.modalFooter,
 | 
					        appendTo: data.modalFooter,
 | 
				
			||||||
        type: "button",
 | 
					        type: "button",
 | 
				
			||||||
        class: "btn btn-default",
 | 
					        class: "btn btn-default",
 | 
				
			||||||
        innerHTML: "Cancel"
 | 
					        innerHTML: lang("messages_dialog_cancel")
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return data;
 | 
					    return data;
 | 
				
			||||||
@@ -197,7 +197,7 @@ ComunicWeb.common.messages.confirm = function(message, callback){
 | 
				
			|||||||
        appendTo: modalHeader,
 | 
					        appendTo: modalHeader,
 | 
				
			||||||
        type: "h4",
 | 
					        type: "h4",
 | 
				
			||||||
        class: "modal-title",
 | 
					        class: "modal-title",
 | 
				
			||||||
        innerHTML: "Confirm the operation"
 | 
					        innerHTML: lang("messages_dialog_confirm_title")
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    //Modal body
 | 
					    //Modal body
 | 
				
			||||||
@@ -219,7 +219,7 @@ ComunicWeb.common.messages.confirm = function(message, callback){
 | 
				
			|||||||
        appendTo: modalFooter,
 | 
					        appendTo: modalFooter,
 | 
				
			||||||
        type: "button",
 | 
					        type: "button",
 | 
				
			||||||
        class: "btn btn-default pull-left",
 | 
					        class: "btn btn-default pull-left",
 | 
				
			||||||
        innerHTML: "Cancel"
 | 
					        innerHTML: lang("messages_dialog_confirm_cancel")
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
    cancelButton.setAttribute("data-confirm", "false");
 | 
					    cancelButton.setAttribute("data-confirm", "false");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -227,7 +227,7 @@ ComunicWeb.common.messages.confirm = function(message, callback){
 | 
				
			|||||||
        appendTo: modalFooter,
 | 
					        appendTo: modalFooter,
 | 
				
			||||||
        type: "button",
 | 
					        type: "button",
 | 
				
			||||||
        class: "btn btn-danger",
 | 
					        class: "btn btn-danger",
 | 
				
			||||||
        innerHTML: "Confirm"
 | 
					        innerHTML: lang("messages_dialog_confirm_confirm")
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
    confirmButton.setAttribute("data-confirm", "true");
 | 
					    confirmButton.setAttribute("data-confirm", "true");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -341,7 +341,7 @@ ComunicWeb.common.messages.inputString = function(title, message, defaultValue,
 | 
				
			|||||||
        appendTo: modalFooter,
 | 
					        appendTo: modalFooter,
 | 
				
			||||||
        type: "button",
 | 
					        type: "button",
 | 
				
			||||||
        class: "btn btn-default pull-left",
 | 
					        class: "btn btn-default pull-left",
 | 
				
			||||||
        innerHTML: "Cancel"
 | 
					        innerHTML: lang("messages_dialog_input_string_cancel")
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
    cancelButton.setAttribute("data-confirm", "false");
 | 
					    cancelButton.setAttribute("data-confirm", "false");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -349,7 +349,7 @@ ComunicWeb.common.messages.inputString = function(title, message, defaultValue,
 | 
				
			|||||||
        appendTo: modalFooter,
 | 
					        appendTo: modalFooter,
 | 
				
			||||||
        type: "button",
 | 
					        type: "button",
 | 
				
			||||||
        class: "btn btn-primary",
 | 
					        class: "btn btn-primary",
 | 
				
			||||||
        innerHTML: "Submit"
 | 
					        innerHTML: lang("messages_dialog_input_string_submit")
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
    submitButton.setAttribute("data-confirm", "true");
 | 
					    submitButton.setAttribute("data-confirm", "true");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,6 +18,15 @@ ComunicWeb.common.langs.en = {
 | 
				
			|||||||
    "__fatal_error": "Fatal error",
 | 
					    "__fatal_error": "Fatal error",
 | 
				
			||||||
    "__fatal_error_explanation": "A fatal error occured : <i>%p</i>. Please try to refresh the page...",
 | 
					    "__fatal_error_explanation": "A fatal error occured : <i>%p</i>. Please try to refresh the page...",
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    //Messages
 | 
				
			||||||
 | 
					    messages_loading_layout_title: "Loading",
 | 
				
			||||||
 | 
					    messages_loading_layout_message: "Please wait while this page is loading...",
 | 
				
			||||||
 | 
					    messages_dialog_cancel: "Cancel",
 | 
				
			||||||
 | 
					    messages_dialog_confirm_title: "Confirm the operation",
 | 
				
			||||||
 | 
					    messages_dialog_confirm_confirm: "Confirm",
 | 
				
			||||||
 | 
					    messages_dialog_confirm_cancel: "Cancel",
 | 
				
			||||||
 | 
					    messages_dialog_input_string_cancel: "Cancel",
 | 
				
			||||||
 | 
					    messages_dialog_input_string_submit: "Submit",
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Components
 | 
					     * Components
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user