From af7e480d523aff6436d9378e06df74d999c29ac0 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Tue, 13 Aug 2024 13:57:44 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AC(mail)=20improve=20email=20text?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - replace occurences of Impress with Docs in the email - replace occurences of Impress with Docs in the email subject --- src/backend/core/models.py | 2 +- .../core/tests/test_models_invitations.py | 4 ++-- src/mail/mjml/invitation.mjml | 18 ++++++++---------- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/backend/core/models.py b/src/backend/core/models.py index 66631359..a64250b8 100644 --- a/src/backend/core/models.py +++ b/src/backend/core/models.py @@ -805,7 +805,7 @@ class Invitation(BaseModel): """Email invitation to the user.""" try: with override(self.issuer.language): - title = _("Invitation to join Impress!") + title = _("Invitation to join Docs!") template_vars = {"title": title, "site": Site.objects.get_current()} msg_html = render_to_string("mail/html/invitation.html", template_vars) msg_plain = render_to_string("mail/text/invitation.txt", template_vars) diff --git a/src/backend/core/tests/test_models_invitations.py b/src/backend/core/tests/test_models_invitations.py index d07b5818..57bef891 100644 --- a/src/backend/core/tests/test_models_invitations.py +++ b/src/backend/core/tests/test_models_invitations.py @@ -186,10 +186,10 @@ def test_models_document_invitations_email(): email = mail.outbox[0] assert email.to == [invitation.email] - assert email.subject == "Invitation to join Impress!" + assert email.subject == "Invitation to join Docs!" email_content = " ".join(email.body.split()) - assert "Invitation to join Impress!" in email_content + assert "Invitation to join Docs!" in email_content assert "[//example.com]" in email_content diff --git a/src/mail/mjml/invitation.mjml b/src/mail/mjml/invitation.mjml index 74b2b471..d0c54ce7 100644 --- a/src/mail/mjml/invitation.mjml +++ b/src/mail/mjml/invitation.mjml @@ -10,32 +10,30 @@ - -

{% trans "Invitation to join a team" %}

+ +

{% trans "Invitation to join a document !" %}

-

{% blocktrans %}Welcome to Impress{% endblocktrans %}

+

{% blocktrans %}Welcome to Docs!{% endblocktrans %}

- - - - {% trans "We are delighted to welcome you to our community on Impress, your new companion to collaborate on documents efficiently, intuitively, and securely." %} + {% trans "We are delighted to welcome you to our community on Docs, your new companion to collaborate on documents efficiently, intuitively, and securely." %} {% trans "Our application is designed to help you organize, collaborate, and manage permissions." %} - {% trans "With Impress, you will be able to:" %} + {% trans "With Docs, you will be able to:" %}
  • {% trans "Create documents."%}
  • +
  • {% trans "Work offline."%}
  • {% trans "Invite members of your document or community in just a few clicks."%}
- {% trans "Visit Impress"%} + {% trans "Visit Docs"%} - {% trans "We are confident that Impress will help you increase efficiency and productivity while strengthening the bond among members." %} + {% trans "We are confident that Docs will help you increase efficiency and productivity while strengthening the bond among members." %} {% trans "Feel free to explore all the features of the application and share your feedback and suggestions with us. Your feedback is valuable to us and will enable us to continually improve our service." %} {% trans "Once again, welcome aboard! We are eager to accompany you on you collaboration adventure." %}