From d842800df3848278e902293b61bd367084f08a85 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Tue, 17 Dec 2024 17:15:30 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F(email)=20change=20the=20quot?= =?UTF-8?q?ation=20marks=20around=20role?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The quotation marks around role have been changed to the wrong ones. This commit fixes this issue. --- src/backend/core/models.py | 2 +- .../test_api_document_accesses_create.py | 4 ++-- .../test_api_document_invitations.py | 4 ++-- .../core/tests/test_models_documents.py | 6 +++--- .../locale/de_DE/LC_MESSAGES/django.mo | Bin 2280 -> 2280 bytes .../locale/de_DE/LC_MESSAGES/django.po | 6 +++--- .../locale/en_US/LC_MESSAGES/django.mo | Bin 484 -> 484 bytes .../locale/en_US/LC_MESSAGES/django.po | 6 +++--- .../locale/fr_FR/LC_MESSAGES/django.mo | Bin 1913 -> 1908 bytes .../locale/fr_FR/LC_MESSAGES/django.po | 8 ++++---- 10 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/backend/core/models.py b/src/backend/core/models.py index 3bc9f2e0..b7fb8e79 100644 --- a/src/backend/core/models.py +++ b/src/backend/core/models.py @@ -594,7 +594,7 @@ class Document(BaseModel): name=sender_name ), "message": _( - "{name} invited you with the role ``{role}`` on the following document:" + '{name} invited you with the role "{role}" on the following document:' ).format(name=sender_name_email, role=role.lower()), } subject = _("{name} shared a document with you: {title}").format( diff --git a/src/backend/core/tests/documents/test_api_document_accesses_create.py b/src/backend/core/tests/documents/test_api_document_accesses_create.py index dc5cb0ee..8be7865f 100644 --- a/src/backend/core/tests/documents/test_api_document_accesses_create.py +++ b/src/backend/core/tests/documents/test_api_document_accesses_create.py @@ -173,7 +173,7 @@ def test_api_document_accesses_create_authenticated_administrator(via, mock_user email_content = " ".join(email.body.split()) assert f"{user.full_name} shared a document with you!" in email_content assert ( - f"{user.full_name} ({user.email}) invited you with the role ``{role}`` " + f"{user.full_name} ({user.email}) invited you with the role "{role}" " f"on the following document: {document.title}" ) in email_content assert "docs/" + str(document.id) + "/" in email_content @@ -231,7 +231,7 @@ def test_api_document_accesses_create_authenticated_owner(via, mock_user_teams): email_content = " ".join(email.body.split()) assert f"{user.full_name} shared a document with you!" in email_content assert ( - f"{user.full_name} ({user.email}) invited you with the role ``{role}`` " + f"{user.full_name} ({user.email}) invited you with the role "{role}" " f"on the following document: {document.title}" ) in email_content assert "docs/" + str(document.id) + "/" in email_content 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 15ea274e..6542330d 100644 --- a/src/backend/core/tests/documents/test_api_document_invitations.py +++ b/src/backend/core/tests/documents/test_api_document_invitations.py @@ -406,7 +406,7 @@ def test_api_document_invitations_create_privileged_members( email_content = " ".join(email.body.split()) assert f"{user.full_name} shared a document with you!" in email_content assert ( - f"{user.full_name} ({user.email}) invited you with the role ``{invited}`` " + f"{user.full_name} ({user.email}) invited you with the role "{invited}" " f"on the following document: {document.title}" ) in email_content assert "My brand name" in email_content @@ -536,7 +536,7 @@ def test_api_document_invitations_create_email_full_name_empty(): email_content = " ".join(email.body.split()) assert f"{user.email} shared a document with you!" in email_content assert ( - f"{user.email.capitalize()} invited you with the role ``reader`` on the " + f"{user.email.capitalize()} invited you with the role "reader" on the " f"following document: {document.title}" in email_content ) diff --git a/src/backend/core/tests/test_models_documents.py b/src/backend/core/tests/test_models_documents.py index 5fe0d4fd..8ddaa018 100644 --- a/src/backend/core/tests/test_models_documents.py +++ b/src/backend/core/tests/test_models_documents.py @@ -441,7 +441,7 @@ def test_models_documents__email_invitation__success(): email_content = " ".join(email.body.split()) assert ( - f"Test Sender (sender@example.com) invited you with the role ``editor`` " + f"Test Sender (sender@example.com) invited you with the role "editor" " f"on the following document: {document.title}" in email_content ) assert f"docs/{document.id}/" in email_content @@ -476,8 +476,8 @@ def test_models_documents__email_invitation__success_fr(): email_content = " ".join(email.body.split()) assert ( - f"Test Sender2 (sender2@example.com) vous a invité avec le rôle ``propriétaire`` " - f"sur le document suivant : {document.title}" in email_content + f"Test Sender2 (sender2@example.com) vous a invité avec le rôle "propriétaire" " + f"sur le document suivant: {document.title}" in email_content ) assert f"docs/{document.id}/" in email_content diff --git a/src/backend/locale/de_DE/LC_MESSAGES/django.mo b/src/backend/locale/de_DE/LC_MESSAGES/django.mo index 11804a613696967fe56e70d78d59cf860cb8ef68..448c70dc006b29f6e622e0215f4e75b674f64c5c 100644 GIT binary patch delta 20 bcmaDM_(E`l6)U^Bf}yFEsqtn<*5%9qMgj%v delta 20 bcmaDM_(E`l6)U^3f}yFEkpby diff --git a/src/backend/locale/en_US/LC_MESSAGES/django.po b/src/backend/locale/en_US/LC_MESSAGES/django.po index 8f735249..1b2f03c3 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-people\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-12-13 15:17+0000\n" -"PO-Revision-Date: 2024-12-13 15:22\n" +"POT-Creation-Date: 2024-12-17 15:50+0000\n" +"PO-Revision-Date: 2024-12-17 15:53\n" "Last-Translator: \n" "Language-Team: English\n" "Language: en_US\n" @@ -220,7 +220,7 @@ msgstr "" #: core/models.py:597 #, python-brace-format -msgid "{name} invited you with the role ``{role}`` on the following document:" +msgid "{name} invited you with the role \"{role}\" on the following document:" msgstr "" #: core/models.py:600 diff --git a/src/backend/locale/fr_FR/LC_MESSAGES/django.mo b/src/backend/locale/fr_FR/LC_MESSAGES/django.mo index 88b38f2e3f973f6d3f4f6ecda3a794a08ab1688c..dc598e85ec39d354ea6e7991481c6a6c2f4b9597 100644 GIT binary patch delta 249 zcmey#_l0l5oO%}q1_nuH1_mV{9S5YffOI2}Uctz~um(uW0QsS;3=DZdx(Gkr!fV3cxHU-i^#NZAjc!9JZkmd%`F+f@fNM`_PAY!Oy0~*H; zWHbSJoItt@NZSMHDL~p4NM8Zc8bDeKsK@|FJ8$-6{K&|mR9%#xlUl1Z*@byOySaj) rsgFq<+|;}hAV0G#F|TB@EPD(98oDOt delta 234 zcmYk!zY76z7{~GF9Czo}m77i}$0UP@D2p=aZnIgW?_!ZC*(3v_L9R^x0F%WZ;J@$> z_y;J9&3jZ&&+Ga0JUt)#Yah;=o`__1ks>NA;}$QP$Q5(sK}=+ZORV4%ZFCHg6c*6J z3TCi{lmxUi_A!YgbZ~-{tPS3o3_DUB_t?P``uM;S<~gdOe+#s?mQZT7m`}%RrNXX$ ZH|t)l*>1FMR`eD5+Z|0;^Fr4g{s1dEAv6F0 diff --git a/src/backend/locale/fr_FR/LC_MESSAGES/django.po b/src/backend/locale/fr_FR/LC_MESSAGES/django.po index 4994d9b7..8e860803 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-people\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-12-13 15:17+0000\n" -"PO-Revision-Date: 2024-12-13 16:47\n" +"POT-Creation-Date: 2024-12-17 15:50+0000\n" +"PO-Revision-Date: 2024-12-17 15:53\n" "Last-Translator: \n" "Language-Team: French\n" "Language: fr_FR\n" @@ -220,8 +220,8 @@ msgstr "{name} a partagé un document avec vous!" #: core/models.py:597 #, python-brace-format -msgid "{name} invited you with the role ``{role}`` on the following document:" -msgstr "{name} vous a invité avec le rôle ``{role}`` sur le document suivant :" +msgid "{name} invited you with the role \"{role}\" on the following document:" +msgstr "{name} vous a invité avec le rôle \"{role}\" sur le document suivant:" #: core/models.py:600 #, python-brace-format