From aac4e3b99c76473e4a59538c2b5f08ff5b1df0ee Mon Sep 17 00:00:00 2001 From: Cyl Date: Mon, 14 Oct 2019 00:32:11 +0200 Subject: [PATCH] Minor fix for requestGala --- counter/models.py | 22 +++++++++++++--------- locale/fr/LC_MESSAGES/django.po | 4 ++-- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/counter/models.py b/counter/models.py index 04c7073a..d3d3b39a 100644 --- a/counter/models.py +++ b/counter/models.py @@ -490,7 +490,7 @@ class Selling(models.Model): event = self.product.eticket.event_title or _("Unknown event") subject = _("Eticket bought for the event %(event)s") % {"event": event} message_html = _( - "You bought an eticket for the event %(event)s.\nYou can download it directly from this link %(eticket)s.\nYou can also retreive all your e-tickets on your account page %(url)s." + "You bought an eticket for the event %(event)s.\nYou can download it directly from this link %(eticket)s.\nYou can also retrieve all your e-tickets on your account page %(url)s." ) % { "event": event, "url": "".join( @@ -502,14 +502,22 @@ class Selling(models.Model): "", ) ), - "eticket": "" + self.get_eticket_full_url() + "" + "eticket": "".join( + ( + '', + self.get_eticket_full_url(), + "", + ) + ), } message_txt = _( - "You bought an eticket for the event %(event)s.\nYou can download it directly from this link %(eticket)s.\nYou can also retreive all your e-tickets on your account page %(url)s." + "You bought an eticket for the event %(event)s.\nYou can download it directly from this link %(eticket)s.\nYou can also retrieve all your e-tickets on your account page %(url)s." ) % { "event": event, "url": self.customer.get_full_url(), - "eticket": "" + self.get_eticket_full_url() + "" + "eticket": self.get_eticket_full_url(), } self.customer.user.email_user(subject, message_txt, html_message=message_html) @@ -597,11 +605,7 @@ class Selling(models.Model): def get_eticket_full_url(self): eticket_url = reverse("counter:eticket_pdf", kwargs={"selling_id": self.id}) - return "".join( - [ - "https://", settings.SITH_URL, eticket_url - ] - ) + return "".join(["https://", settings.SITH_URL, eticket_url]) class Permanency(models.Model): diff --git a/locale/fr/LC_MESSAGES/django.po b/locale/fr/LC_MESSAGES/django.po index e0c792f0..bb935af5 100644 --- a/locale/fr/LC_MESSAGES/django.po +++ b/locale/fr/LC_MESSAGES/django.po @@ -2724,7 +2724,7 @@ msgstr "" #: core/templates/core/login.jinja:18 msgid "Please login or create an account to see this page." -msgstr "Merci de vous identifier ou vous créer un compte pour voir cette page." +msgstr "Merci de vous identifier ou de créer un compte pour voir cette page." #: core/templates/core/login.jinja:28 #: counter/templates/counter/counter_main.jinja:51 @@ -3822,7 +3822,7 @@ msgstr "Eticket acheté pour l'événement %(event)s" msgid "" "You bought an eticket for the event %(event)s.\n" "You can download it directly from this link %(eticket)s.\n" -"You can also retreive all your e-tickets on your account page %(url)s." +"You can also retrieve all your e-tickets on your account page %(url)s." msgstr "" "Vous avez acheté un e-ticket pour l'événement %(event)s.\n" "Vous pouvez le télécharger directement depuis ce lien: %(eticket)s.\n"