From 7a6da10e1c241625aca54133b853e6a056e989f7 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Thu, 6 Feb 2025 17:00:36 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(i18n)=20add=20back=20the=20missing?= =?UTF-8?q?=20email=20translations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We changed the way we upload the translations to Crowdin, some translations were missing for the email templates. We add them back and improve the tests to make sure we don't forget them again. --- .../test_api_document_invitations.py | 4 +++ .../locale/de_DE/LC_MESSAGES/django.po | 25 +++++++++++++++++-- .../locale/en_US/LC_MESSAGES/django.po | 25 +++++++++++++++++-- .../locale/fr_FR/LC_MESSAGES/django.po | 25 +++++++++++++++++-- .../locale/nl_NL/LC_MESSAGES/django.po | 25 +++++++++++++++++-- 5 files changed, 96 insertions(+), 8 deletions(-) diff --git a/src/backend/core/tests/documents/test_api_document_invitations.py b/src/backend/core/tests/documents/test_api_document_invitations.py index 5a5e40f7..c901f276 100644 --- a/src/backend/core/tests/documents/test_api_document_invitations.py +++ b/src/backend/core/tests/documents/test_api_document_invitations.py @@ -458,6 +458,10 @@ def test_api_document_invitations_create_email_from_content_language(): email_content = " ".join(email.body.split()) assert f"{user.full_name} a partagé un document avec vous!" in email_content + assert ( + "Docs, votre nouvel outil incontournable pour organiser, partager et collaborer " + "sur vos documents en équipe." in email_content + ) def test_api_document_invitations_create_email_from_content_language_not_supported(): diff --git a/src/backend/locale/de_DE/LC_MESSAGES/django.po b/src/backend/locale/de_DE/LC_MESSAGES/django.po index 1e608dd4..1d2b67f5 100644 --- a/src/backend/locale/de_DE/LC_MESSAGES/django.po +++ b/src/backend/locale/de_DE/LC_MESSAGES/django.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: lasuite-docs\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-01-29 13:43+0000\n" -"PO-Revision-Date: 2025-01-30 10:24\n" +"POT-Creation-Date: 2025-02-06 15:30+0000\n" +"PO-Revision-Date: 2025-02-06 15:59\n" "Last-Translator: \n" "Language-Team: German\n" "Language: de_DE\n" @@ -391,3 +391,24 @@ msgstr "Französisch" msgid "German" msgstr "Deutsch" +#: core/templates/mail/html/invitation.html:162 +#: core/templates/mail/text/invitation.txt:3 +msgid "Logo email" +msgstr "Logo-E-Mail" + +#: core/templates/mail/html/invitation.html:209 +#: core/templates/mail/text/invitation.txt:10 +msgid "Open" +msgstr "Öffnen" + +#: core/templates/mail/html/invitation.html:226 +#: core/templates/mail/text/invitation.txt:14 +msgid " Docs, your new essential tool for organizing, sharing and collaborating on your documents as a team. " +msgstr " Docs, Ihr neues unentbehrliches Werkzeug für die Organisation, den Austausch und die Zusammenarbeit in Ihren Dokumenten als Team. " + +#: core/templates/mail/html/invitation.html:233 +#: core/templates/mail/text/invitation.txt:16 +#, python-format +msgid " Brought to you by %(brandname)s " +msgstr " Erstellt von %(brandname)s " + diff --git a/src/backend/locale/en_US/LC_MESSAGES/django.po b/src/backend/locale/en_US/LC_MESSAGES/django.po index 525e28d3..05c67e91 100644 --- a/src/backend/locale/en_US/LC_MESSAGES/django.po +++ b/src/backend/locale/en_US/LC_MESSAGES/django.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: lasuite-docs\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-01-29 13:43+0000\n" -"PO-Revision-Date: 2025-01-30 10:24\n" +"POT-Creation-Date: 2025-02-06 15:30+0000\n" +"PO-Revision-Date: 2025-02-06 15:57\n" "Last-Translator: \n" "Language-Team: English\n" "Language: en_US\n" @@ -391,3 +391,24 @@ msgstr "" msgid "German" msgstr "" +#: core/templates/mail/html/invitation.html:162 +#: core/templates/mail/text/invitation.txt:3 +msgid "Logo email" +msgstr "" + +#: core/templates/mail/html/invitation.html:209 +#: core/templates/mail/text/invitation.txt:10 +msgid "Open" +msgstr "" + +#: core/templates/mail/html/invitation.html:226 +#: core/templates/mail/text/invitation.txt:14 +msgid " Docs, your new essential tool for organizing, sharing and collaborating on your documents as a team. " +msgstr "" + +#: core/templates/mail/html/invitation.html:233 +#: core/templates/mail/text/invitation.txt:16 +#, python-format +msgid " Brought to you by %(brandname)s " +msgstr "" + diff --git a/src/backend/locale/fr_FR/LC_MESSAGES/django.po b/src/backend/locale/fr_FR/LC_MESSAGES/django.po index beea0690..927fece3 100644 --- a/src/backend/locale/fr_FR/LC_MESSAGES/django.po +++ b/src/backend/locale/fr_FR/LC_MESSAGES/django.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: lasuite-docs\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-01-29 13:43+0000\n" -"PO-Revision-Date: 2025-01-30 10:24\n" +"POT-Creation-Date: 2025-02-06 15:30+0000\n" +"PO-Revision-Date: 2025-02-06 15:59\n" "Last-Translator: \n" "Language-Team: French\n" "Language: fr_FR\n" @@ -391,3 +391,24 @@ msgstr "" msgid "German" msgstr "" +#: core/templates/mail/html/invitation.html:162 +#: core/templates/mail/text/invitation.txt:3 +msgid "Logo email" +msgstr "Logo de l'e-mail" + +#: core/templates/mail/html/invitation.html:209 +#: core/templates/mail/text/invitation.txt:10 +msgid "Open" +msgstr "Ouvrir" + +#: core/templates/mail/html/invitation.html:226 +#: core/templates/mail/text/invitation.txt:14 +msgid " Docs, your new essential tool for organizing, sharing and collaborating on your documents as a team. " +msgstr " Docs, votre nouvel outil incontournable pour organiser, partager et collaborer sur vos documents en équipe. " + +#: core/templates/mail/html/invitation.html:233 +#: core/templates/mail/text/invitation.txt:16 +#, python-format +msgid " Brought to you by %(brandname)s " +msgstr " Proposé par %(brandname)s " + diff --git a/src/backend/locale/nl_NL/LC_MESSAGES/django.po b/src/backend/locale/nl_NL/LC_MESSAGES/django.po index 79b4f0b1..b4506cdf 100644 --- a/src/backend/locale/nl_NL/LC_MESSAGES/django.po +++ b/src/backend/locale/nl_NL/LC_MESSAGES/django.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: lasuite-docs\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-01-29 13:43+0000\n" -"PO-Revision-Date: 2025-01-30 10:24\n" +"POT-Creation-Date: 2025-02-06 15:30+0000\n" +"PO-Revision-Date: 2025-02-06 15:57\n" "Last-Translator: \n" "Language-Team: Dutch\n" "Language: nl_NL\n" @@ -391,3 +391,24 @@ msgstr "" msgid "German" msgstr "" +#: core/templates/mail/html/invitation.html:162 +#: core/templates/mail/text/invitation.txt:3 +msgid "Logo email" +msgstr "" + +#: core/templates/mail/html/invitation.html:209 +#: core/templates/mail/text/invitation.txt:10 +msgid "Open" +msgstr "" + +#: core/templates/mail/html/invitation.html:226 +#: core/templates/mail/text/invitation.txt:14 +msgid " Docs, your new essential tool for organizing, sharing and collaborating on your documents as a team. " +msgstr "" + +#: core/templates/mail/html/invitation.html:233 +#: core/templates/mail/text/invitation.txt:16 +#, python-format +msgid " Brought to you by %(brandname)s " +msgstr "" +