✏️(email) change the quotation marks around role
The quotation marks around role have been changed to the wrong ones. This commit fixes this issue.
This commit is contained in:
@@ -594,7 +594,7 @@ class Document(BaseModel):
|
|||||||
name=sender_name
|
name=sender_name
|
||||||
),
|
),
|
||||||
"message": _(
|
"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()),
|
).format(name=sender_name_email, role=role.lower()),
|
||||||
}
|
}
|
||||||
subject = _("{name} shared a document with you: {title}").format(
|
subject = _("{name} shared a document with you: {title}").format(
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ def test_api_document_accesses_create_authenticated_administrator(via, mock_user
|
|||||||
email_content = " ".join(email.body.split())
|
email_content = " ".join(email.body.split())
|
||||||
assert f"{user.full_name} shared a document with you!" in email_content
|
assert f"{user.full_name} shared a document with you!" in email_content
|
||||||
assert (
|
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}"
|
f"on the following document: {document.title}"
|
||||||
) in email_content
|
) in email_content
|
||||||
assert "docs/" + str(document.id) + "/" 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())
|
email_content = " ".join(email.body.split())
|
||||||
assert f"{user.full_name} shared a document with you!" in email_content
|
assert f"{user.full_name} shared a document with you!" in email_content
|
||||||
assert (
|
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}"
|
f"on the following document: {document.title}"
|
||||||
) in email_content
|
) in email_content
|
||||||
assert "docs/" + str(document.id) + "/" in email_content
|
assert "docs/" + str(document.id) + "/" in email_content
|
||||||
|
|||||||
@@ -406,7 +406,7 @@ def test_api_document_invitations_create_privileged_members(
|
|||||||
email_content = " ".join(email.body.split())
|
email_content = " ".join(email.body.split())
|
||||||
assert f"{user.full_name} shared a document with you!" in email_content
|
assert f"{user.full_name} shared a document with you!" in email_content
|
||||||
assert (
|
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}"
|
f"on the following document: {document.title}"
|
||||||
) in email_content
|
) in email_content
|
||||||
assert "My brand name" 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())
|
email_content = " ".join(email.body.split())
|
||||||
assert f"{user.email} shared a document with you!" in email_content
|
assert f"{user.email} shared a document with you!" in email_content
|
||||||
assert (
|
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
|
f"following document: {document.title}" in email_content
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -441,7 +441,7 @@ def test_models_documents__email_invitation__success():
|
|||||||
email_content = " ".join(email.body.split())
|
email_content = " ".join(email.body.split())
|
||||||
|
|
||||||
assert (
|
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
|
f"on the following document: {document.title}" in email_content
|
||||||
)
|
)
|
||||||
assert f"docs/{document.id}/" 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())
|
email_content = " ".join(email.body.split())
|
||||||
|
|
||||||
assert (
|
assert (
|
||||||
f"Test Sender2 (sender2@example.com) vous a invité avec le rôle ``propriétaire`` "
|
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"sur le document suivant: {document.title}" in email_content
|
||||||
)
|
)
|
||||||
assert f"docs/{document.id}/" in email_content
|
assert f"docs/{document.id}/" in email_content
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: lasuite-people\n"
|
"Project-Id-Version: lasuite-people\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2024-12-13 15:17+0000\n"
|
"POT-Creation-Date: 2024-12-17 15:50+0000\n"
|
||||||
"PO-Revision-Date: 2024-12-13 15:22\n"
|
"PO-Revision-Date: 2024-12-17 15:53\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: German\n"
|
"Language-Team: German\n"
|
||||||
"Language: de_DE\n"
|
"Language: de_DE\n"
|
||||||
@@ -220,7 +220,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: core/models.py:597
|
#: core/models.py:597
|
||||||
#, python-brace-format
|
#, 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 ""
|
msgstr ""
|
||||||
|
|
||||||
#: core/models.py:600
|
#: core/models.py:600
|
||||||
|
|||||||
Binary file not shown.
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: lasuite-people\n"
|
"Project-Id-Version: lasuite-people\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2024-12-13 15:17+0000\n"
|
"POT-Creation-Date: 2024-12-17 15:50+0000\n"
|
||||||
"PO-Revision-Date: 2024-12-13 15:22\n"
|
"PO-Revision-Date: 2024-12-17 15:53\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: English\n"
|
"Language-Team: English\n"
|
||||||
"Language: en_US\n"
|
"Language: en_US\n"
|
||||||
@@ -220,7 +220,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: core/models.py:597
|
#: core/models.py:597
|
||||||
#, python-brace-format
|
#, 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 ""
|
msgstr ""
|
||||||
|
|
||||||
#: core/models.py:600
|
#: core/models.py:600
|
||||||
|
|||||||
Binary file not shown.
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: lasuite-people\n"
|
"Project-Id-Version: lasuite-people\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2024-12-13 15:17+0000\n"
|
"POT-Creation-Date: 2024-12-17 15:50+0000\n"
|
||||||
"PO-Revision-Date: 2024-12-13 16:47\n"
|
"PO-Revision-Date: 2024-12-17 15:53\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: French\n"
|
"Language-Team: French\n"
|
||||||
"Language: fr_FR\n"
|
"Language: fr_FR\n"
|
||||||
@@ -220,8 +220,8 @@ msgstr "{name} a partagé un document avec vous!"
|
|||||||
|
|
||||||
#: core/models.py:597
|
#: core/models.py:597
|
||||||
#, python-brace-format
|
#, 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 "{name} vous a invité avec le rôle ``{role}`` sur le document suivant :"
|
msgstr "{name} vous a invité avec le rôle \"{role}\" sur le document suivant:"
|
||||||
|
|
||||||
#: core/models.py:600
|
#: core/models.py:600
|
||||||
#, python-brace-format
|
#, python-brace-format
|
||||||
|
|||||||
Reference in New Issue
Block a user