See Changelog

Monotone-Parent: c3a22a583cea706854120e86a951cb29014d4b87
Monotone-Revision: 33b0351ec935bf11e615865737fa2434e2208e1b

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2010-11-10T20:12:18
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Francis Lachapelle 2010-11-10 20:12:18 +00:00
parent 1f64efe08a
commit 3608035caa
16 changed files with 129 additions and 20 deletions

View File

@ -1,5 +1,12 @@
2010-11-10 Francis Lachapelle <flachapelle@inverse.ca> 2010-11-10 Francis Lachapelle <flachapelle@inverse.ca>
* UI/MailerUI/UIxMailEditor.m (-sendAction): the error message (if
any) is now translated in the HTTP response.
* SoObjects/SOGo/SOGoMailer.m
(:_smtpSendData:toRecipients:sender:): added exception handling
when the smtp server is not accessible.
* UI/WebServerResources/MailerUI.js (openMailbox): improved * UI/WebServerResources/MailerUI.js (openMailbox): improved
behavior when reloading the mailbox. behavior when reloading the mailbox.
(onMenuEmptyTrashCallback): new callback exclusive to the "empty (onMenuEmptyTrashCallback): new callback exclusive to the "empty

View File

@ -282,3 +282,8 @@
"error_validationfailed" = "Validação falhou"; "error_validationfailed" = "Validação falhou";
"error_missingsubject" = "Está faltando o Assunto"; "error_missingsubject" = "Está faltando o Assunto";
"error_missingrecipients" = "Sem destinatários selecionados"; "error_missingrecipients" = "Sem destinatários selecionados";
/* Message sending */
"cannot send message: (smtp) all recipients discarded" = "Cannot send message: all recipients are invalid.";
"cannot send message (smtp) - recipients discarded:" = "Cannot send message. The following addresses are invalid:";
"cannot send message: (smtp) error when connecting" = "Cannot send message: error when connecting to the SMTP server.";

View File

@ -110,6 +110,9 @@
"Load Images" = "Carregar imatges"; "Load Images" = "Carregar imatges";
"Return Receipt" = "Justificant de recepció"; "Return Receipt" = "Justificant de recepció";
"The sender of this message has asked to be notified when you read this message. Do you with to notify the sender?" = "The sender of this message has asked to be notified when you read this message. Do you with to notify the sender?";
"Return Receipt (displayed) - %@"= "Return Receipt (displayed) - %@";
"This is a Return Receipt for the mail that you sent to %@.\n\nNote: This Return Receipt only acknowledges that the message was displayed on the recipient's computer. There is no guarantee that the recipient has read or understood the message contents." = "This is a Return Receipt for the mail that you sent to %@.\n\nNote: This Return Receipt only acknowledges that the message was displayed on the recipient's computer. There is no guarantee that the recipient has read or understood the message contents.";
"Priority" = "Prioritat"; "Priority" = "Prioritat";
"highest" = "Màxima"; "highest" = "Màxima";
@ -191,6 +194,8 @@
"Delete Folder" = "Esborrar carpeta"; "Delete Folder" = "Esborrar carpeta";
"Use This Folder For" = "Usar aquesta carpeta per a"; "Use This Folder For" = "Usar aquesta carpeta per a";
"Get Messages for Account" = "Rebre missatges per a compte"; "Get Messages for Account" = "Rebre missatges per a compte";
"Properties..." = "Properties...";
"Delegation..." = "Delegation...";
/* Use This Folder menu */ /* Use This Folder menu */
"Sent Messages" = "Enviar missatges"; "Sent Messages" = "Enviar missatges";
@ -269,7 +274,16 @@
"Copying a message into its own folder is impossible!" "Copying a message into its own folder is impossible!"
= "No es poden copiar missatges en la mateixa carpeta."; = "No es poden copiar missatges en la mateixa carpeta.";
/* Message operations */
"The messages could not be moved to the trash folder. Would you like to delete them immediately?"
= "The messages could not be moved to the trash folder. Would you like to delete them immediately?";
/* Message editing */ /* Message editing */
"error_validationfailed" = "Error de validació"; "error_validationfailed" = "Error de validació";
"error_missingsubject" = "No heu indicat l'assumpte"; "error_missingsubject" = "No heu indicat l'assumpte";
"error_missingrecipients" = "No heu indicat els destinataris"; "error_missingrecipients" = "No heu indicat els destinataris";
/* Message sending */
"cannot send message: (smtp) all recipients discarded" = "Cannot send message: all recipients are invalid.";
"cannot send message (smtp) - recipients discarded:" = "Cannot send message. The following addresses are invalid:";
"cannot send message: (smtp) error when connecting" = "Cannot send message: error when connecting to the SMTP server.";

View File

@ -184,7 +184,6 @@
"Open in New Mail Window" = "Otevřít v novém mailovém okně"; "Open in New Mail Window" = "Otevřít v novém mailovém okně";
"Copy Folder Location" = "Kopírovat adresu složky"; "Copy Folder Location" = "Kopírovat adresu složky";
"Subscribe..." = "Odebírat..."; "Subscribe..." = "Odebírat...";
"Properties..." = "Vlastnosti...";
"Mark Folder Read..." = "Označit složku jako přečtenou..."; "Mark Folder Read..." = "Označit složku jako přečtenou...";
"New Folder..." = "Nová složka..."; "New Folder..." = "Nová složka...";
"Compact This Folder" = "Provést údržbu složky"; "Compact This Folder" = "Provést údržbu složky";
@ -275,7 +274,16 @@
"Copying a message into its own folder is impossible!" "Copying a message into its own folder is impossible!"
= "Je nemožné zkopírovat zprávu do své vlastní složky!"; = "Je nemožné zkopírovat zprávu do své vlastní složky!";
/* Message operations */
"The messages could not be moved to the trash folder. Would you like to delete them immediately?"
= "The messages could not be moved to the trash folder. Would you like to delete them immediately?";
/* Message editing */ /* Message editing */
"error_validationfailed" = "Potvrzení selhalo"; "error_validationfailed" = "Potvrzení selhalo";
"error_missingsubject" = "Chybí předmět"; "error_missingsubject" = "Chybí předmět";
"error_missingrecipients" = "Příjemci nebyli specifikováni"; "error_missingrecipients" = "Příjemci nebyli specifikováni";
/* Message sending */
"cannot send message: (smtp) all recipients discarded" = "Cannot send message: all recipients are invalid.";
"cannot send message (smtp) - recipients discarded:" = "Cannot send message. The following addresses are invalid:";
"cannot send message: (smtp) error when connecting" = "Cannot send message: error when connecting to the SMTP server.";

View File

@ -282,3 +282,8 @@
"error_validationfailed" = "Validering mislukt!"; "error_validationfailed" = "Validering mislukt!";
"error_missingsubject" = "U heeft geen onderwerp opgegeven!"; "error_missingsubject" = "U heeft geen onderwerp opgegeven!";
"error_missingrecipients" = "U heeft geen ontvanger opgegeven!"; "error_missingrecipients" = "U heeft geen ontvanger opgegeven!";
/* Message sending */
"cannot send message: (smtp) all recipients discarded" = "Cannot send message: all recipients are invalid.";
"cannot send message (smtp) - recipients discarded:" = "Cannot send message. The following addresses are invalid:";
"cannot send message: (smtp) error when connecting" = "Cannot send message: error when connecting to the SMTP server.";

View File

@ -282,3 +282,8 @@
"error_validationfailed" = "Validation failed"; "error_validationfailed" = "Validation failed";
"error_missingsubject" = "Subject is missing"; "error_missingsubject" = "Subject is missing";
"error_missingrecipients" = "No recipients specified"; "error_missingrecipients" = "No recipients specified";
/* Message sending */
"cannot send message: (smtp) all recipients discarded" = "Cannot send message: all recipients are invalid.";
"cannot send message (smtp) - recipients discarded:" = "Cannot send message. The following addresses are invalid:";
"cannot send message: (smtp) error when connecting" = "Cannot send message: error when connecting to the SMTP server.";

View File

@ -282,3 +282,8 @@
"error_validationfailed" = "Message invalide"; "error_validationfailed" = "Message invalide";
"error_missingsubject" = "- le sujet est manquant"; "error_missingsubject" = "- le sujet est manquant";
"error_missingrecipients" = "- aucun destinataire spécifié"; "error_missingrecipients" = "- aucun destinataire spécifié";
/* Message sending */
"cannot send message: (smtp) all recipients discarded" = "Le message n'a pas pu être envoyé car aucune adresse n'est valide.";
"cannot send message (smtp) - recipients discarded:" = "Le message n'a pas pu être envoyé car les adresses suivantes sont invalides :";
"cannot send message: (smtp) error when connecting" = "Le message n'a pas pu être envoyé: une erreur est survenue en tentant de rejoindre le serveur SMTP.";

View File

@ -282,3 +282,8 @@
"error_validationfailed" = "Az ellenőrzés végrehatása nem sikerült"; "error_validationfailed" = "Az ellenőrzés végrehatása nem sikerült";
"error_missingsubject" = "Az üzenet tárgya hiányzik"; "error_missingsubject" = "Az üzenet tárgya hiányzik";
"error_missingrecipients" = "Nincsenek címzettek megadva"; "error_missingrecipients" = "Nincsenek címzettek megadva";
/* Message sending */
"cannot send message: (smtp) all recipients discarded" = "Cannot send message: all recipients are invalid.";
"cannot send message (smtp) - recipients discarded:" = "Cannot send message. The following addresses are invalid:";
"cannot send message: (smtp) error when connecting" = "Cannot send message: error when connecting to the SMTP server.";

View File

@ -13,15 +13,12 @@
"Print" = "Stampa"; "Print" = "Stampa";
"Stop" = "Stop"; "Stop" = "Stop";
"Write" = "Scrivi"; "Write" = "Scrivi";
"Attachment" = "Allegato";
"Unread" = "Non letta";
"Flagged" = "Contrassegnato";
"Send" = "Invia"; "Send" = "Invia";
"Contacts" = "Contatti"; "Contacts" = "Contatti";
"Attach" = "Allegato"; "Attach" = "Allegato";
"Save" = "Salva"; "Save" = "Salva";
"Priority" = "Priorità"; "Options" = "Options";
"Size" = "Dimensione"; "Size" = "Dimensione";
/* Tooltips */ /* Tooltips */
@ -40,6 +37,9 @@
"Mark the selected messages as junk" = "Contrassegna il messaggio selezionato come indesiderato"; "Mark the selected messages as junk" = "Contrassegna il messaggio selezionato come indesiderato";
"Print this message" = "Stampa questo messaggio"; "Print this message" = "Stampa questo messaggio";
"Stop the current transfer" = "Ferma il trasferimento in corso"; "Stop the current transfer" = "Ferma il trasferimento in corso";
"Attachment" = "Allegato";
"Unread" = "Non letti";
"Flagged" = "Contrassegnato";
/* Main Frame */ /* Main Frame */
@ -88,7 +88,7 @@
"From" = "Da"; "From" = "Da";
"Subject" = "Oggetto"; "Subject" = "Oggetto";
"To" = "A"; "To" = "A";
"Cc" = "Cc"; "Cc" = "Cc";
"Bcc" = "Bcc"; "Bcc" = "Bcc";
"Reply-To" = "Rispondi a"; "Reply-To" = "Rispondi a";
@ -109,6 +109,12 @@
"Edit Draft..." = "Modifica bozza..."; "Edit Draft..." = "Modifica bozza...";
"Load Images" = "Carica Immagini"; "Load Images" = "Carica Immagini";
"Return Receipt" = "Return Receipt";
"The sender of this message has asked to be notified when you read this message. Do you with to notify the sender?" = "The sender of this message has asked to be notified when you read this message. Do you with to notify the sender?";
"Return Receipt (displayed) - %@"= "Return Receipt (displayed) - %@";
"This is a Return Receipt for the mail that you sent to %@.\n\nNote: This Return Receipt only acknowledges that the message was displayed on the recipient's computer. There is no guarantee that the recipient has read or understood the message contents." = "This is a Return Receipt for the mail that you sent to %@.\n\nNote: This Return Receipt only acknowledges that the message was displayed on the recipient's computer. There is no guarantee that the recipient has read or understood the message contents.";
"Priority" = "Priorità";
"highest" = "Molto alta"; "highest" = "Molto alta";
"high" = "Alta"; "high" = "Alta";
"normal" = "Normale"; "normal" = "Normale";
@ -178,7 +184,6 @@
"Open in New Mail Window" = "Apri in una nuova finestra"; "Open in New Mail Window" = "Apri in una nuova finestra";
"Copy Folder Location" = "Copia cartella"; "Copy Folder Location" = "Copia cartella";
"Subscribe..." = "Sottoscrivi..."; "Subscribe..." = "Sottoscrivi...";
"Properties..." = "Proprietà...";
"Mark Folder Read..." = "Contrassegna cartella come già letta..."; "Mark Folder Read..." = "Contrassegna cartella come già letta...";
"New Folder..." = "Nuova cartella..."; "New Folder..." = "Nuova cartella...";
"Compact This Folder" = "Compatta cartella"; "Compact This Folder" = "Compatta cartella";
@ -237,9 +242,9 @@
/* Folder operations */ /* Folder operations */
"Name :" = "Nome :"; "Name :" = "Nome :";
"Enter the new name of your folder :" "Enter the new name of your folder :"
= "Inserisci il nuovo nome della cartella :"; = "Inserisci il nuovo nome della cartella :";
"Do you really want to move this folder into the trash ?" "Do you really want to move this folder into the trash ?"
= "Sei sicuro di voler spostare la cartella nel cestino ?"; = "Sei sicuro di voler spostare la cartella nel cestino ?";
"Operation failed" = "Operazione non riuscita"; "Operation failed" = "Operazione non riuscita";
"Quota" = "Spazio usato"; "Quota" = "Spazio usato";
@ -250,25 +255,35 @@
"Please select only one message to print." = "Per favore seleziona un solo messaggio da stampare."; "Please select only one message to print." = "Per favore seleziona un solo messaggio da stampare.";
"The message you have selected doesn't exist anymore." = "Il messaggio selezionato non esiste più."; "The message you have selected doesn't exist anymore." = "Il messaggio selezionato non esiste più.";
"The folder with name \"%{0}\" could not be created." "The folder with name \"%{0}\" could not be created."
= "La cartella con nome \"%{0}\" non può essere creata."; = "La cartella con nome \"%{0}\" non può essere creata.";
"This folder could not be renamed to \"%{0}\"." "This folder could not be renamed to \"%{0}\"."
= "Questa cartella non puo essere rinominata in \"%{0}\"."; = "Questa cartella non puo essere rinominata in \"%{0}\".";
"The folder could not be deleted." "The folder could not be deleted."
= "Questa cartella non può essere eliminata."; = "Questa cartella non può essere eliminata.";
"The trash could not be emptied." "The trash could not be emptied."
= "Il cestino non puo essere svuotato."; = "Il cestino non puo essere svuotato.";
"The folder functionality could not be changed." "The folder functionality could not be changed."
= "La funzionalita della cartella non puo essere cambiata."; = "La funzionalita della cartella non puo essere cambiata.";
"You need to choose a non-virtual folder!" = "Devi selezionare una cartella fisica, non virtuale!"; "You need to choose a non-virtual folder!" = "Devi selezionare una cartella fisica, non virtuale!";
"Moving a message into its own folder is impossible!" "Moving a message into its own folder is impossible!"
= "La cartella di destinazione coincide con la cartella di origine!"; = "La cartella di destinazione coincide con la cartella di origine!";
"Copying a message into its own folder is impossible!" "Copying a message into its own folder is impossible!"
= "La cartella di destinazione coincide con la cartella di origine!"; = "La cartella di destinazione coincide con la cartella di origine!";
/* Message operations */
"The messages could not be moved to the trash folder. Would you like to delete them immediately?"
= "The messages could not be moved to the trash folder. Would you like to delete them immediately?";
/* Message editing */ /* Message editing */
"error_validationfailed" = "Validazione fallita"; "error_validationfailed" = "Validazione fallita";
"error_missingsubject" = "Nessun oggetto specificato"; "error_missingsubject" = "Nessun oggetto specificato";
"error_missingrecipients" = "Nessun destinatario specificato"; "error_missingrecipients" = "Nessun destinatario specificato";
/* Message sending */
"cannot send message: (smtp) all recipients discarded" = "Cannot send message: all recipients are invalid.";
"cannot send message (smtp) - recipients discarded:" = "Cannot send message. The following addresses are invalid:";
"cannot send message: (smtp) error when connecting" = "Cannot send message: error when connecting to the SMTP server.";

View File

@ -282,3 +282,8 @@
"error_validationfailed" = "Weryfikacja zakończona niepowodzeniem"; "error_validationfailed" = "Weryfikacja zakończona niepowodzeniem";
"error_missingsubject" = "Brak tematu"; "error_missingsubject" = "Brak tematu";
"error_missingrecipients" = "Brak odbiorców"; "error_missingrecipients" = "Brak odbiorców";
/* Message sending */
"cannot send message: (smtp) all recipients discarded" = "Cannot send message: all recipients are invalid.";
"cannot send message (smtp) - recipients discarded:" = "Cannot send message. The following addresses are invalid:";
"cannot send message: (smtp) error when connecting" = "Cannot send message: error when connecting to the SMTP server.";

View File

@ -282,3 +282,8 @@
"error_validationfailed" = "Проверка завершилась неудачей"; "error_validationfailed" = "Проверка завершилась неудачей";
"error_missingsubject" = "Тема сообщения не указана"; "error_missingsubject" = "Тема сообщения не указана";
"error_missingrecipients" = "Не указан адрес получателя"; "error_missingrecipients" = "Не указан адрес получателя";
/* Message sending */
"cannot send message: (smtp) all recipients discarded" = "Cannot send message: all recipients are invalid.";
"cannot send message (smtp) - recipients discarded:" = "Cannot send message. The following addresses are invalid:";
"cannot send message: (smtp) error when connecting" = "Cannot send message: error when connecting to the SMTP server.";

View File

@ -282,3 +282,8 @@
"error_validationfailed" = "Error de validación"; "error_validationfailed" = "Error de validación";
"error_missingsubject" = "No ha indicado el asunto"; "error_missingsubject" = "No ha indicado el asunto";
"error_missingrecipients" = "No ha indicado el/los destinatario(s)"; "error_missingrecipients" = "No ha indicado el/los destinatario(s)";
/* Message sending */
"cannot send message: (smtp) all recipients discarded" = "Cannot send message: all recipients are invalid.";
"cannot send message (smtp) - recipients discarded:" = "Cannot send message. The following addresses are invalid:";
"cannot send message: (smtp) error when connecting" = "Cannot send message: error when connecting to the SMTP server.";

View File

@ -282,3 +282,8 @@
"error_validationfailed" = "Validering har misslyckats"; "error_validationfailed" = "Validering har misslyckats";
"error_missingsubject" = "Ämne saknas"; "error_missingsubject" = "Ämne saknas";
"error_missingrecipients" = "Ingen mottagare är angiven"; "error_missingrecipients" = "Ingen mottagare är angiven";
/* Message sending */
"cannot send message: (smtp) all recipients discarded" = "Cannot send message: all recipients are invalid.";
"cannot send message (smtp) - recipients discarded:" = "Cannot send message. The following addresses are invalid:";
"cannot send message: (smtp) error when connecting" = "Cannot send message: error when connecting to the SMTP server.";

View File

@ -580,6 +580,7 @@ static NSArray *infoKeys = nil;
SOGoDraftObject *co; SOGoDraftObject *co;
NSDictionary *jsonResponse; NSDictionary *jsonResponse;
NSException *error; NSException *error;
NSMutableArray *errorMsg;
co = [self clientObject]; co = [self clientObject];
@ -594,10 +595,17 @@ static NSArray *infoKeys = nil;
} }
if (error) if (error)
jsonResponse = [NSDictionary dictionaryWithObjectsAndKeys: {
@"failure", @"status", // Only the first line is translated
[error reason], @"message", errorMsg = [NSMutableArray arrayWithArray: [[error reason] componentsSeparatedByString: @"\n"]];
nil]; [errorMsg replaceObjectAtIndex: 0
withObject: [self labelForKey: [errorMsg objectAtIndex: 0]]];
jsonResponse = [NSDictionary dictionaryWithObjectsAndKeys:
@"failure", @"status",
[errorMsg componentsJoinedByString: @"\n"],
@"message",
nil];
}
else else
jsonResponse = [NSDictionary dictionaryWithObjectsAndKeys: jsonResponse = [NSDictionary dictionaryWithObjectsAndKeys:
@"success", @"status", @"success", @"status",

View File

@ -194,6 +194,8 @@
"Delete Folder" = "Вилучити"; "Delete Folder" = "Вилучити";
"Use This Folder For" = "Використати цю теку як"; "Use This Folder For" = "Використати цю теку як";
"Get Messages for Account" = "Отримати нові повідомлення"; "Get Messages for Account" = "Отримати нові повідомлення";
"Properties..." = "Properties...";
"Delegation..." = "Delegation...";
/* Use This Folder menu */ /* Use This Folder menu */
"Sent Messages" = "Відіслані"; "Sent Messages" = "Відіслані";
@ -280,3 +282,8 @@
"error_validationfailed" = "Перевірка зазнала невдачі"; "error_validationfailed" = "Перевірка зазнала невдачі";
"error_missingsubject" = "Не зазначено теми повідомлення"; "error_missingsubject" = "Не зазначено теми повідомлення";
"error_missingrecipients" = "Не зазначено адресу отримувача"; "error_missingrecipients" = "Не зазначено адресу отримувача";
/* Message sending */
"cannot send message: (smtp) all recipients discarded" = "Cannot send message: all recipients are invalid.";
"cannot send message (smtp) - recipients discarded:" = "Cannot send message. The following addresses are invalid:";
"cannot send message: (smtp) error when connecting" = "Cannot send message: error when connecting to the SMTP server.";

View File

@ -282,3 +282,8 @@
"error_validationfailed" = "Dilysiad wedi methu"; "error_validationfailed" = "Dilysiad wedi methu";
"error_missingsubject" = "Testun yn eisiau"; "error_missingsubject" = "Testun yn eisiau";
"error_missingrecipients" = "Dim derbynnydd wedi nodi"; "error_missingrecipients" = "Dim derbynnydd wedi nodi";
/* Message sending */
"cannot send message: (smtp) all recipients discarded" = "Cannot send message: all recipients are invalid.";
"cannot send message (smtp) - recipients discarded:" = "Cannot send message. The following addresses are invalid:";
"cannot send message: (smtp) error when connecting" = "Cannot send message: error when connecting to the SMTP server.";