Author: ks156
Date: 2009-01-12 14:01:43 +0100 (Mon, 12 Jan 2009)
New Revision: 3408
Modified:
software_suite_v2/software/gadgets/tuxdroid-gadget-mail/trunk/tuxdroid-gadget-mail/resources/es.po
software_suite_v2/software/gadgets/tuxdroid-gadget-mail/trunk/tuxdroid-gadget-mail/resources/fr.po
software_suite_v2/software/gadgets/tuxdroid-gadget-mail/trunk/tuxdroid-gadget-mail/resources/gadget.pot
software_suite_v2/software/gadgets/tuxdroid-gadget-mail/trunk/tuxdroid-gadget-mail/resources/nl.po
software_suite_v2/software/gadgets/tuxdroid-gadget-mail/trunk/tuxdroid-gadget-mail/sources/net/karmaLab/tuxDroid/gadgets/MailGadget.java
Log:
* Added a TTS feedback for the connection failed exceptions and for bad
parameters.
Modified:
software_suite_v2/software/gadgets/tuxdroid-gadget-mail/trunk/tuxdroid-gadget-mail/resources/es.po
===================================================================
---
software_suite_v2/software/gadgets/tuxdroid-gadget-mail/trunk/tuxdroid-gadget-mail/resources/es.po
2009-01-12 11:16:43 UTC (rev 3407)
+++
software_suite_v2/software/gadgets/tuxdroid-gadget-mail/trunk/tuxdroid-gadget-mail/resources/es.po
2009-01-12 13:01:43 UTC (rev 3408)
@@ -35,4 +35,10 @@
msgstr "El asunto del mensaje es : {0}"
msgid "No new mail."
-msgstr "No tiene correo."
\ No newline at end of file
+msgstr "No tiene correo."
+
+msgid "Sorry, I could not connect to the mail server. Please check your
internet connection or try again later."
+msgstr "Sorry, I could not connect to the mail server. Please check your
internet connection or try again later."
+
+msgid "Sorry, there was an error when connecting to the mail server. Please
check your email configuration."
+msgstr "Sorry, there was an error when connecting to the mail server. Please
check your email configuration."
Modified:
software_suite_v2/software/gadgets/tuxdroid-gadget-mail/trunk/tuxdroid-gadget-mail/resources/fr.po
===================================================================
---
software_suite_v2/software/gadgets/tuxdroid-gadget-mail/trunk/tuxdroid-gadget-mail/resources/fr.po
2009-01-12 11:16:43 UTC (rev 3407)
+++
software_suite_v2/software/gadgets/tuxdroid-gadget-mail/trunk/tuxdroid-gadget-mail/resources/fr.po
2009-01-12 13:01:43 UTC (rev 3408)
@@ -69,3 +69,9 @@
msgid "Subject filter to apply"
msgstr "Filtre 'sujet' à appliquer"
+
+msgid "Sorry, I could not connect to the mail server. Please check your
internet connection or try again later."
+msgstr "Désolé, je ne peux pas me connecter au serveur de messagerie. Merci de
contrôler votre connexion internet ou de réessayer plus tard."
+
+msgid "Sorry, there was an error when connecting to the mail server. Please
check your email configuration."
+msgstr "Désolé, il y a eu une erreur lors de la connexion au serveur de
messagerie. Merci de contrôler les paramêtres du gadget."
Modified:
software_suite_v2/software/gadgets/tuxdroid-gadget-mail/trunk/tuxdroid-gadget-mail/resources/gadget.pot
===================================================================
---
software_suite_v2/software/gadgets/tuxdroid-gadget-mail/trunk/tuxdroid-gadget-mail/resources/gadget.pot
2009-01-12 11:16:43 UTC (rev 3407)
+++
software_suite_v2/software/gadgets/tuxdroid-gadget-mail/trunk/tuxdroid-gadget-mail/resources/gadget.pot
2009-01-12 13:01:43 UTC (rev 3408)
@@ -69,3 +69,9 @@
msgid "Subject filter to apply"
msgstr ""
+
+msgid "Sorry, I could not connect to the mail server. Please check your
internet connection or try again later."
+msgstr ""
+
+msgid "Sorry, there was an error when connecting to the mail server. Please
check your email configuration."
+msgstr ""
Modified:
software_suite_v2/software/gadgets/tuxdroid-gadget-mail/trunk/tuxdroid-gadget-mail/resources/nl.po
===================================================================
---
software_suite_v2/software/gadgets/tuxdroid-gadget-mail/trunk/tuxdroid-gadget-mail/resources/nl.po
2009-01-12 11:16:43 UTC (rev 3407)
+++
software_suite_v2/software/gadgets/tuxdroid-gadget-mail/trunk/tuxdroid-gadget-mail/resources/nl.po
2009-01-12 13:01:43 UTC (rev 3408)
@@ -47,4 +47,10 @@
msgstr "Onderwerp filter gebruiken"
msgid "Subject filter to apply"
-msgstr "Onderwerp filter configuratie"
\ No newline at end of file
+msgstr "Onderwerp filter configuratie"
+
+msgid "Sorry, I could not connect to the mail server. Please check your
internet connection or try again later."
+msgstr "Sorry, ik kan geen connectie maken met de mailserver. Controleer je
internet connectie of probeer later opnieuw."
+
+msgid "Sorry, there was an error when connecting to the mail server. Please
check your email configuration."
+msgstr "Sorry, ik kan niet inloggen op de mailserver. Controleer of je email
configuratie correct is."
Modified:
software_suite_v2/software/gadgets/tuxdroid-gadget-mail/trunk/tuxdroid-gadget-mail/sources/net/karmaLab/tuxDroid/gadgets/MailGadget.java
===================================================================
---
software_suite_v2/software/gadgets/tuxdroid-gadget-mail/trunk/tuxdroid-gadget-mail/sources/net/karmaLab/tuxDroid/gadgets/MailGadget.java
2009-01-12 11:16:43 UTC (rev 3407)
+++
software_suite_v2/software/gadgets/tuxdroid-gadget-mail/trunk/tuxdroid-gadget-mail/sources/net/karmaLab/tuxDroid/gadgets/MailGadget.java
2009-01-12 13:01:43 UTC (rev 3408)
@@ -86,7 +86,21 @@
break;
}
}
- store.connect(configuration().getHost(), port,
configuration().getUser(), configuration().getPassword());
+ try {
+ store.connect(configuration().getHost(), port,
configuration().getUser(), configuration().getPassword());
+ }
+ // Authentification exception (login / password / protocol /
etc)
+ catch (javax.mail.AuthenticationFailedException e)
+ {
+ throwMessage("Sorry, there was an error when connecting to
the mail server. Please check your email configuration.");
+ }
+ // Connection failed exception (timeout / network unreachable)
+ catch (javax.mail.MessagingException e)
+ {
+ throwMessage("Sorry, I could not connect to the mail
server. Please check your internet connection or try again later.");
+ }
+
+
Folder folder = store.getFolder(configuration().getFolder());
folder.open(Folder.READ_ONLY);
Message messages[] = folder.getMessages();
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn