diff --git a/README.md b/README.md index 351b1bf..73059d6 100644 --- a/README.md +++ b/README.md @@ -102,8 +102,10 @@ Every dialog method ( confirm, wait,error,create ) return object with **result** ```javascript dialogs.confirm("Confirmation",'Do you want really do this action?') .result - .then( function(){ console.log("Yes"); } ) - .then( function(){ console.log("No"); } ); + .then( + function(){ console.log("Yes"); }, + function(){ console.log("No"); } + ); ``` diff --git a/dist/dialogs-default-translations.js b/dist/dialogs-default-translations.js index 12f2032..fa9a9db 100644 --- a/dist/dialogs-default-translations.js +++ b/dist/dialogs-default-translations.js @@ -170,6 +170,23 @@ DIALOGS_YES: "Ja", DIALOGS_NO: "Nej" }); + + $translateProvider.translations('it-IT',{ + DIALOGS_ERROR: "Errore", + DIALOGS_ERROR_MSG: "Si è verificato un errore sconosciuto.", + DIALOGS_CLOSE: "Chiudi", + DIALOGS_PLEASE_WAIT: "Attendere prego", + DIALOGS_PLEASE_WAIT_ELIPS: "Attendere prego...", + DIALOGS_PLEASE_WAIT_MSG: "Attendo il completamento dell'operazione.", + DIALOGS_PERCENT_COMPLETE: "% Completo", + DIALOGS_NOTIFICATION: "Notifica", + DIALOGS_NOTIFICATION_MSG: "Notifica dell'applicazione sconosciuta.", + DIALOGS_CONFIRMATION: "Conferma", + DIALOGS_CONFIRMATION_MSG: "Conferma richiesta.", + DIALOGS_OK: "OK", + DIALOGS_YES: "Sì", + DIALOGS_NO: "No" + }); $translateProvider.preferredLanguage('en-US'); }]); // end config diff --git a/dist/dialogs-default-translations.min.js b/dist/dialogs-default-translations.min.js index 3048c60..a6ea625 100644 --- a/dist/dialogs-default-translations.min.js +++ b/dist/dialogs-default-translations.min.js @@ -1 +1 @@ -angular.module("dialogs.default-translations",["pascalprecht.translate"]).config(["$translateProvider",function(O){O.translations("de-DE",{DIALOGS_ERROR:"Error",DIALOGS_ERROR_MSG:"Ein unbekannter Fehler ist aufgetreten.",DIALOGS_CLOSE:"Schließen",DIALOGS_PLEASE_WAIT:"Bitte warten",DIALOGS_PLEASE_WAIT_ELIPS:"Bitte warten...",DIALOGS_PLEASE_WAIT_MSG:"Warte auf Fertigstellung der Operation.",DIALOGS_PERCENT_COMPLETE:"% fertig",DIALOGS_NOTIFICATION:"Benachrichtigung",DIALOGS_NOTIFICATION_MSG:"Unbekannte Anwendungsbenachrichtigung.",DIALOGS_CONFIRMATION:"Bestätigung",DIALOGS_CONFIRMATION_MSG:"Bestätigung erforderlich.",DIALOGS_OK:"OK",DIALOGS_YES:"Ja",DIALOGS_NO:"Nein"}),O.translations("en-US",{DIALOGS_ERROR:"Error",DIALOGS_ERROR_MSG:"An unknown error has occurred.",DIALOGS_CLOSE:"Close",DIALOGS_PLEASE_WAIT:"Please Wait",DIALOGS_PLEASE_WAIT_ELIPS:"Please Wait...",DIALOGS_PLEASE_WAIT_MSG:"Waiting on operation to complete.",DIALOGS_PERCENT_COMPLETE:"% Complete",DIALOGS_NOTIFICATION:"Notification",DIALOGS_NOTIFICATION_MSG:"Unknown application notification.",DIALOGS_CONFIRMATION:"Confirmation",DIALOGS_CONFIRMATION_MSG:"Confirmation required.",DIALOGS_OK:"OK",DIALOGS_YES:"Yes",DIALOGS_NO:"No"}),O.translations("es-ES",{DIALOGS_ERROR:"Error",DIALOGS_ERROR_MSG:"Se ha producido un error.",DIALOGS_CLOSE:"Cerrar",DIALOGS_PLEASE_WAIT:"Espere por favor",DIALOGS_PLEASE_WAIT_ELIPS:"Espere por favor...",DIALOGS_PLEASE_WAIT_MSG:"Completando operación.",DIALOGS_PERCENT_COMPLETE:"% Completado",DIALOGS_NOTIFICATION:"Notificación",DIALOGS_NOTIFICATION_MSG:"Notificación de una aplicación desconocida.",DIALOGS_CONFIRMATION:"Confirmación",DIALOGS_CONFIRMATION_MSG:"Se requiere confirmacion.",DIALOGS_OK:"Aceptar",DIALOGS_YES:"Sí",DIALOGS_NO:"No"}),O.translations("fr-FR",{DIALOGS_ERROR:"Erreur",DIALOGS_ERROR_MSG:"Une erreur inconnue s'est produite.",DIALOGS_CLOSE:"Fermer",DIALOGS_PLEASE_WAIT:"Patientez svp",DIALOGS_PLEASE_WAIT_ELIPS:"Patienter svp...",DIALOGS_PLEASE_WAIT_MSG:"En attente de la fin de l'opération.",DIALOGS_PERCENT_COMPLETE:"% Terminer",DIALOGS_NOTIFICATION:"Notification",DIALOGS_NOTIFICATION_MSG:"Notification de l'application inconnue",DIALOGS_CONFIRMATION:"Confirmer",DIALOGS_CONFIRMATION_MSG:"Merci de confirmer",DIALOGS_OK:"OK",DIALOGS_YES:"Oui",DIALOGS_NO:"Non"}),O.translations("pt-BR",{DIALOGS_ERROR:"Erro",DIALOGS_ERROR_MSG:"Ocorreu um erro inesperado.",DIALOGS_CLOSE:"Fechar",DIALOGS_PLEASE_WAIT:"Por favor aguarde",DIALOGS_PLEASE_WAIT_ELIPS:"Por favor aguarde...",DIALOGS_PLEASE_WAIT_MSG:"Aguardando que a operação termine.",DIALOGS_PERCENT_COMPLETE:"% Completados",DIALOGS_NOTIFICATION:"Notificação",DIALOGS_NOTIFICATION_MSG:"Notificação de aplicação desconhecida.",DIALOGS_CONFIRMATION:"Confirmação",DIALOGS_CONFIRMATION_MSG:"Confirmação requerida.",DIALOGS_OK:"OK",DIALOGS_YES:"Sim",DIALOGS_NO:"Não"}),O.translations("tr-TR",{DIALOGS_ERROR:"Hata",DIALOGS_ERROR_MSG:"Bilinmeyen bir hata oluştu.",DIALOGS_CLOSE:"Kapat",DIALOGS_PLEASE_WAIT:"Lütfen Bekleyin",DIALOGS_PLEASE_WAIT_ELIPS:"Lütfen Bekleyin...",DIALOGS_PLEASE_WAIT_MSG:"İşlemin tamamlanması bekleniyor.",DIALOGS_PERCENT_COMPLETE:"% Tamamlandı",DIALOGS_NOTIFICATION:"Uyarı",DIALOGS_NOTIFICATION_MSG:"Bilinmeyen uygulama uyarısı.",DIALOGS_CONFIRMATION:"Konfirmasyon",DIALOGS_CONFIRMATION_MSG:"Konfirmasyon gereklidir.",DIALOGS_OK:"Tamam",DIALOGS_YES:"Evet",DIALOGS_NO:"Hayır"}),O.translations("zh-CN",{DIALOGS_ERROR:"错误",DIALOGS_ERROR_MSG:"出现未知错误。",DIALOGS_CLOSE:"关闭",DIALOGS_PLEASE_WAIT:"请稍候",DIALOGS_PLEASE_WAIT_ELIPS:"请稍候...",DIALOGS_PLEASE_WAIT_MSG:"请等待操作完成。",DIALOGS_PERCENT_COMPLETE:"% 已完成",DIALOGS_NOTIFICATION:"通知",DIALOGS_NOTIFICATION_MSG:"未知应用程序的通知。",DIALOGS_CONFIRMATION:"确认",DIALOGS_CONFIRMATION_MSG:"确认要求。",DIALOGS_OK:"确定",DIALOGS_YES:"确认",DIALOGS_NO:"取消"}),O.translations("sv-SE",{DIALOGS_ERROR:"Fel",DIALOGS_ERROR_MSG:"Ett okänt fel har uppstått.",DIALOGS_CLOSE:"Stäng",DIALOGS_PLEASE_WAIT:"Vänligen vänta",DIALOGS_PLEASE_WAIT_ELIPS:"Vänligen vänta...",DIALOGS_PLEASE_WAIT_MSG:"Väntar på att processen skall slutföras.",DIALOGS_PERCENT_COMPLETE:"% Färdigt",DIALOGS_NOTIFICATION:"Meddelande",DIALOGS_NOTIFICATION_MSG:"Okänt meddelande från applikationen.",DIALOGS_CONFIRMATION:"Bekräftelse",DIALOGS_CONFIRMATION_MSG:"Bekräftelse krävs.",DIALOGS_OK:"OK",DIALOGS_YES:"Ja",DIALOGS_NO:"Nej"}),O.preferredLanguage("en-US")}]); \ No newline at end of file +angular.module("dialogs.default-translations",["pascalprecht.translate"]).config(["$translateProvider",function(O){O.translations("de-DE",{DIALOGS_ERROR:"Error",DIALOGS_ERROR_MSG:"Ein unbekannter Fehler ist aufgetreten.",DIALOGS_CLOSE:"Schließen",DIALOGS_PLEASE_WAIT:"Bitte warten",DIALOGS_PLEASE_WAIT_ELIPS:"Bitte warten...",DIALOGS_PLEASE_WAIT_MSG:"Warte auf Fertigstellung der Operation.",DIALOGS_PERCENT_COMPLETE:"% fertig",DIALOGS_NOTIFICATION:"Benachrichtigung",DIALOGS_NOTIFICATION_MSG:"Unbekannte Anwendungsbenachrichtigung.",DIALOGS_CONFIRMATION:"Bestätigung",DIALOGS_CONFIRMATION_MSG:"Bestätigung erforderlich.",DIALOGS_OK:"OK",DIALOGS_YES:"Ja",DIALOGS_NO:"Nein"}),O.translations("en-US",{DIALOGS_ERROR:"Error",DIALOGS_ERROR_MSG:"An unknown error has occurred.",DIALOGS_CLOSE:"Close",DIALOGS_PLEASE_WAIT:"Please Wait",DIALOGS_PLEASE_WAIT_ELIPS:"Please Wait...",DIALOGS_PLEASE_WAIT_MSG:"Waiting on operation to complete.",DIALOGS_PERCENT_COMPLETE:"% Complete",DIALOGS_NOTIFICATION:"Notification",DIALOGS_NOTIFICATION_MSG:"Unknown application notification.",DIALOGS_CONFIRMATION:"Confirmation",DIALOGS_CONFIRMATION_MSG:"Confirmation required.",DIALOGS_OK:"OK",DIALOGS_YES:"Yes",DIALOGS_NO:"No"}),O.translations("es-ES",{DIALOGS_ERROR:"Error",DIALOGS_ERROR_MSG:"Se ha producido un error.",DIALOGS_CLOSE:"Cerrar",DIALOGS_PLEASE_WAIT:"Espere por favor",DIALOGS_PLEASE_WAIT_ELIPS:"Espere por favor...",DIALOGS_PLEASE_WAIT_MSG:"Completando operación.",DIALOGS_PERCENT_COMPLETE:"% Completado",DIALOGS_NOTIFICATION:"Notificación",DIALOGS_NOTIFICATION_MSG:"Notificación de una aplicación desconocida.",DIALOGS_CONFIRMATION:"Confirmación",DIALOGS_CONFIRMATION_MSG:"Se requiere confirmacion.",DIALOGS_OK:"Aceptar",DIALOGS_YES:"Sí",DIALOGS_NO:"No"}),O.translations("fr-FR",{DIALOGS_ERROR:"Erreur",DIALOGS_ERROR_MSG:"Une erreur inconnue s'est produite.",DIALOGS_CLOSE:"Fermer",DIALOGS_PLEASE_WAIT:"Patientez svp",DIALOGS_PLEASE_WAIT_ELIPS:"Patienter svp...",DIALOGS_PLEASE_WAIT_MSG:"En attente de la fin de l'opération.",DIALOGS_PERCENT_COMPLETE:"% Terminer",DIALOGS_NOTIFICATION:"Notification",DIALOGS_NOTIFICATION_MSG:"Notification de l'application inconnue",DIALOGS_CONFIRMATION:"Confirmer",DIALOGS_CONFIRMATION_MSG:"Merci de confirmer",DIALOGS_OK:"OK",DIALOGS_YES:"Oui",DIALOGS_NO:"Non"}),O.translations("pt-BR",{DIALOGS_ERROR:"Erro",DIALOGS_ERROR_MSG:"Ocorreu um erro inesperado.",DIALOGS_CLOSE:"Fechar",DIALOGS_PLEASE_WAIT:"Por favor aguarde",DIALOGS_PLEASE_WAIT_ELIPS:"Por favor aguarde...",DIALOGS_PLEASE_WAIT_MSG:"Aguardando que a operação termine.",DIALOGS_PERCENT_COMPLETE:"% Completados",DIALOGS_NOTIFICATION:"Notificação",DIALOGS_NOTIFICATION_MSG:"Notificação de aplicação desconhecida.",DIALOGS_CONFIRMATION:"Confirmação",DIALOGS_CONFIRMATION_MSG:"Confirmação requerida.",DIALOGS_OK:"OK",DIALOGS_YES:"Sim",DIALOGS_NO:"Não"}),O.translations("tr-TR",{DIALOGS_ERROR:"Hata",DIALOGS_ERROR_MSG:"Bilinmeyen bir hata oluştu.",DIALOGS_CLOSE:"Kapat",DIALOGS_PLEASE_WAIT:"Lütfen Bekleyin",DIALOGS_PLEASE_WAIT_ELIPS:"Lütfen Bekleyin...",DIALOGS_PLEASE_WAIT_MSG:"İşlemin tamamlanması bekleniyor.",DIALOGS_PERCENT_COMPLETE:"% Tamamlandı",DIALOGS_NOTIFICATION:"Uyarı",DIALOGS_NOTIFICATION_MSG:"Bilinmeyen uygulama uyarısı.",DIALOGS_CONFIRMATION:"Konfirmasyon",DIALOGS_CONFIRMATION_MSG:"Konfirmasyon gereklidir.",DIALOGS_OK:"Tamam",DIALOGS_YES:"Evet",DIALOGS_NO:"Hayır"}),O.translations("zh-CN",{DIALOGS_ERROR:"错误",DIALOGS_ERROR_MSG:"出现未知错误。",DIALOGS_CLOSE:"关闭",DIALOGS_PLEASE_WAIT:"请稍候",DIALOGS_PLEASE_WAIT_ELIPS:"请稍候...",DIALOGS_PLEASE_WAIT_MSG:"请等待操作完成。",DIALOGS_PERCENT_COMPLETE:"% 已完成",DIALOGS_NOTIFICATION:"通知",DIALOGS_NOTIFICATION_MSG:"未知应用程序的通知。",DIALOGS_CONFIRMATION:"确认",DIALOGS_CONFIRMATION_MSG:"确认要求。",DIALOGS_OK:"确定",DIALOGS_YES:"确认",DIALOGS_NO:"取消"}),O.translations("sv-SE",{DIALOGS_ERROR:"Fel",DIALOGS_ERROR_MSG:"Ett okänt fel har uppstått.",DIALOGS_CLOSE:"Stäng",DIALOGS_PLEASE_WAIT:"Vänligen vänta",DIALOGS_PLEASE_WAIT_ELIPS:"Vänligen vänta...",DIALOGS_PLEASE_WAIT_MSG:"Väntar på att processen skall slutföras.",DIALOGS_PERCENT_COMPLETE:"% Färdigt",DIALOGS_NOTIFICATION:"Meddelande",DIALOGS_NOTIFICATION_MSG:"Okänt meddelande från applikationen.",DIALOGS_CONFIRMATION:"Bekräftelse",DIALOGS_CONFIRMATION_MSG:"Bekräftelse krävs.",DIALOGS_OK:"OK",DIALOGS_YES:"Ja",DIALOGS_NO:"Nej"}),O.translations("it-IT",{DIALOGS_ERROR:"Errore",DIALOGS_ERROR_MSG:"Si è verificato un errore sconosciuto.",DIALOGS_CLOSE:"Chiudi",DIALOGS_PLEASE_WAIT:"Attendere prego",DIALOGS_PLEASE_WAIT_ELIPS:"Attendere prego...",DIALOGS_PLEASE_WAIT_MSG:"Attendo il completamento dell'operazione.",DIALOGS_PERCENT_COMPLETE:"% Completo",DIALOGS_NOTIFICATION:"Notifica",DIALOGS_NOTIFICATION_MSG:"Notifica dell'applicazione non consentita.",DIALOGS_CONFIRMATION:"Conferma",DIALOGS_CONFIRMATION_MSG:"Conferma richiesta.",DIALOGS_OK:"OK",DIALOGS_YES:"Sì",DIALOGS_NO:"No"}),O.preferredLanguage("en-US")}]);