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 11804a61..448c70dc 100644 Binary files a/src/backend/locale/de_DE/LC_MESSAGES/django.mo and b/src/backend/locale/de_DE/LC_MESSAGES/django.mo differ diff --git a/src/backend/locale/de_DE/LC_MESSAGES/django.po b/src/backend/locale/de_DE/LC_MESSAGES/django.po index 485f63a1..68dee902 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-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: German\n" "Language: de_DE\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/en_US/LC_MESSAGES/django.mo b/src/backend/locale/en_US/LC_MESSAGES/django.mo index 3c151c10..446a85cf 100644 Binary files a/src/backend/locale/en_US/LC_MESSAGES/django.mo and b/src/backend/locale/en_US/LC_MESSAGES/django.mo differ 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 88b38f2e..dc598e85 100644 Binary files a/src/backend/locale/fr_FR/LC_MESSAGES/django.mo and b/src/backend/locale/fr_FR/LC_MESSAGES/django.mo differ 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