Skip to content

Commit d842800

Browse files
committed
✏️(email) change the quotation marks around role
The quotation marks around role have been changed to the wrong ones. This commit fixes this issue.
1 parent 1af2ad0 commit d842800

File tree

10 files changed

+18
-18
lines changed

10 files changed

+18
-18
lines changed

src/backend/core/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ def send_invitation_email(self, email, role, sender, language=None):
594594
name=sender_name
595595
),
596596
"message": _(
597-
"{name} invited you with the role ``{role}`` on the following document:"
597+
'{name} invited you with the role "{role}" on the following document:'
598598
).format(name=sender_name_email, role=role.lower()),
599599
}
600600
subject = _("{name} shared a document with you: {title}").format(

src/backend/core/tests/documents/test_api_document_accesses_create.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def test_api_document_accesses_create_authenticated_administrator(via, mock_user
173173
email_content = " ".join(email.body.split())
174174
assert f"{user.full_name} shared a document with you!" in email_content
175175
assert (
176-
f"{user.full_name} ({user.email}) invited you with the role ``{role}`` "
176+
f"{user.full_name} ({user.email}) invited you with the role "{role}" "
177177
f"on the following document: {document.title}"
178178
) in email_content
179179
assert "docs/" + str(document.id) + "/" in email_content
@@ -231,7 +231,7 @@ def test_api_document_accesses_create_authenticated_owner(via, mock_user_teams):
231231
email_content = " ".join(email.body.split())
232232
assert f"{user.full_name} shared a document with you!" in email_content
233233
assert (
234-
f"{user.full_name} ({user.email}) invited you with the role ``{role}`` "
234+
f"{user.full_name} ({user.email}) invited you with the role "{role}" "
235235
f"on the following document: {document.title}"
236236
) in email_content
237237
assert "docs/" + str(document.id) + "/" in email_content

src/backend/core/tests/documents/test_api_document_invitations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def test_api_document_invitations_create_privileged_members(
406406
email_content = " ".join(email.body.split())
407407
assert f"{user.full_name} shared a document with you!" in email_content
408408
assert (
409-
f"{user.full_name} ({user.email}) invited you with the role ``{invited}`` "
409+
f"{user.full_name} ({user.email}) invited you with the role "{invited}" "
410410
f"on the following document: {document.title}"
411411
) in email_content
412412
assert "My brand name" in email_content
@@ -536,7 +536,7 @@ def test_api_document_invitations_create_email_full_name_empty():
536536
email_content = " ".join(email.body.split())
537537
assert f"{user.email} shared a document with you!" in email_content
538538
assert (
539-
f"{user.email.capitalize()} invited you with the role ``reader`` on the "
539+
f"{user.email.capitalize()} invited you with the role "reader" on the "
540540
f"following document: {document.title}" in email_content
541541
)
542542

src/backend/core/tests/test_models_documents.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def test_models_documents__email_invitation__success():
441441
email_content = " ".join(email.body.split())
442442

443443
assert (
444-
f"Test Sender ([email protected]) invited you with the role ``editor`` "
444+
f"Test Sender ([email protected]) invited you with the role "editor" "
445445
f"on the following document: {document.title}" in email_content
446446
)
447447
assert f"docs/{document.id}/" in email_content
@@ -476,8 +476,8 @@ def test_models_documents__email_invitation__success_fr():
476476
email_content = " ".join(email.body.split())
477477

478478
assert (
479-
f"Test Sender2 ([email protected]) vous a invité avec le rôle ``propriétaire`` "
480-
f"sur le document suivant : {document.title}" in email_content
479+
f"Test Sender2 ([email protected]) vous a invité avec le rôle "propriétaire" "
480+
f"sur le document suivant: {document.title}" in email_content
481481
)
482482
assert f"docs/{document.id}/" in email_content
483483

0 Bytes
Binary file not shown.

src/backend/locale/de_DE/LC_MESSAGES/django.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ msgid ""
22
msgstr ""
33
"Project-Id-Version: lasuite-people\n"
44
"Report-Msgid-Bugs-To: \n"
5-
"POT-Creation-Date: 2024-12-13 15:17+0000\n"
6-
"PO-Revision-Date: 2024-12-13 15:22\n"
5+
"POT-Creation-Date: 2024-12-17 15:50+0000\n"
6+
"PO-Revision-Date: 2024-12-17 15:53\n"
77
"Last-Translator: \n"
88
"Language-Team: German\n"
99
"Language: de_DE\n"
@@ -220,7 +220,7 @@ msgstr ""
220220

221221
#: core/models.py:597
222222
#, python-brace-format
223-
msgid "{name} invited you with the role ``{role}`` on the following document:"
223+
msgid "{name} invited you with the role \"{role}\" on the following document:"
224224
msgstr ""
225225

226226
#: core/models.py:600
0 Bytes
Binary file not shown.

src/backend/locale/en_US/LC_MESSAGES/django.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ msgid ""
22
msgstr ""
33
"Project-Id-Version: lasuite-people\n"
44
"Report-Msgid-Bugs-To: \n"
5-
"POT-Creation-Date: 2024-12-13 15:17+0000\n"
6-
"PO-Revision-Date: 2024-12-13 15:22\n"
5+
"POT-Creation-Date: 2024-12-17 15:50+0000\n"
6+
"PO-Revision-Date: 2024-12-17 15:53\n"
77
"Last-Translator: \n"
88
"Language-Team: English\n"
99
"Language: en_US\n"
@@ -220,7 +220,7 @@ msgstr ""
220220

221221
#: core/models.py:597
222222
#, python-brace-format
223-
msgid "{name} invited you with the role ``{role}`` on the following document:"
223+
msgid "{name} invited you with the role \"{role}\" on the following document:"
224224
msgstr ""
225225

226226
#: core/models.py:600
-5 Bytes
Binary file not shown.

src/backend/locale/fr_FR/LC_MESSAGES/django.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ msgid ""
22
msgstr ""
33
"Project-Id-Version: lasuite-people\n"
44
"Report-Msgid-Bugs-To: \n"
5-
"POT-Creation-Date: 2024-12-13 15:17+0000\n"
6-
"PO-Revision-Date: 2024-12-13 16:47\n"
5+
"POT-Creation-Date: 2024-12-17 15:50+0000\n"
6+
"PO-Revision-Date: 2024-12-17 15:53\n"
77
"Last-Translator: \n"
88
"Language-Team: French\n"
99
"Language: fr_FR\n"
@@ -220,8 +220,8 @@ msgstr "{name} a partagé un document avec vous!"
220220

221221
#: core/models.py:597
222222
#, python-brace-format
223-
msgid "{name} invited you with the role ``{role}`` on the following document:"
224-
msgstr "{name} vous a invité avec le rôle ``{role}`` sur le document suivant :"
223+
msgid "{name} invited you with the role \"{role}\" on the following document:"
224+
msgstr "{name} vous a invité avec le rôle \"{role}\" sur le document suivant:"
225225

226226
#: core/models.py:600
227227
#, python-brace-format

0 commit comments

Comments
 (0)