aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/translations/es_419
diff options
context:
space:
mode:
authorzorun <github@bitsofnetworks.org>2020-05-21 21:13:33 +0200
committerGitHub <noreply@github.com>2020-05-21 21:13:33 +0200
commitdf6ffc7d86b7334b2a3c309318cc8020cd8e781a (patch)
treef4399df34a5d918f15ec17680878dff08459a19b /ihatemoney/translations/es_419
parente10ea6c776339342dae098524742722c99d6b2bf (diff)
downloadihatemoney-mirror-df6ffc7d86b7334b2a3c309318cc8020cd8e781a.zip
ihatemoney-mirror-df6ffc7d86b7334b2a3c309318cc8020cd8e781a.tar.gz
ihatemoney-mirror-df6ffc7d86b7334b2a3c309318cc8020cd8e781a.tar.bz2
Improve error handling when sending emails (#595)
In one case, we were not catching a family of possible exceptions (socket.error), and in the two other cases there was no error handling at all. Sending emails can easily fail if no email server is configured, so it is really necessary to handle these errors instead of crashing with a HTTP 500 error. Refactor email sending code and add proper error handling. Show alert messages that tell the user if an email was sent or if there was an error. When sending a password reminder email or inviting people by email, we don't proceed to the next step in case of error, because sending emails is the whole point of these actions.
Diffstat (limited to 'ihatemoney/translations/es_419')
-rw-r--r--ihatemoney/translations/es_419/LC_MESSAGES/messages.po26
1 files changed, 23 insertions, 3 deletions
diff --git a/ihatemoney/translations/es_419/LC_MESSAGES/messages.po b/ihatemoney/translations/es_419/LC_MESSAGES/messages.po
index b8d6c30..b446ff8 100644
--- a/ihatemoney/translations/es_419/LC_MESSAGES/messages.po
+++ b/ihatemoney/translations/es_419/LC_MESSAGES/messages.po
@@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-05-09 21:41+0200\n"
+"POT-Creation-Date: 2020-05-18 15:11+0200\n"
"PO-Revision-Date: 2020-05-03 15:20+0000\n"
"Last-Translator: Fabian Rodriguez <fabian@fabianrodriguez.com>\n"
"Language: es_419\n"
@@ -13,7 +13,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Generated-By: Babel 2.7.0\n"
+"Generated-By: Babel 2.8.0\n"
msgid ""
"Not a valid amount or expression. Only numbers and + - * / operators are "
@@ -182,13 +182,24 @@ msgstr "Este código privado no es el correcto"
msgid "You have just created '%(project)s' to share your expenses"
msgstr "Acabas de crear '%(project)s' para compartir tus gastos"
-msgid "Error while sending reminder email"
+msgid "A reminder email has just been sent to you"
+msgstr ""
+
+msgid ""
+"We tried to send you an reminder email, but there was an error. You can "
+"still use the project normally."
msgstr ""
#, python-format
msgid "The project identifier is %(project)s"
msgstr ""
+msgid ""
+"Sorry, there was an error while sending you an email with password reset "
+"instructions. Please check the email configuration of the server or "
+"contact the administrator."
+msgstr ""
+
msgid "No token provided"
msgstr "No se proporciono ningún token"
@@ -217,6 +228,12 @@ msgstr "Usted ha sido invitado a compartir sus gastos para %(project)s"
msgid "Your invitations have been sent"
msgstr "Sus invitaciones han sido enviadas"
+msgid ""
+"Sorry, there was an error while trying to send the invitation emails. "
+"Please check the email configuration of the server or contact the "
+"administrator."
+msgstr ""
+
#, python-format
msgid "%(member)s has been added"
msgstr "Se añadieron %(member)s"
@@ -806,3 +823,6 @@ msgstr "Período"
#~ msgid "each"
#~ msgstr "Cada"
+#~ msgid "Error while sending reminder email"
+#~ msgstr ""
+