Skip to content

Commit

Permalink
Revert "feat(notification): parametrise action_verb sur messages séri…
Browse files Browse the repository at this point in the history
…alisés"

This reverts commit ab48e75.
  • Loading branch information
calummackervoy committed Jul 3, 2024
1 parent ab48e75 commit 9563595
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 2 additions & 3 deletions lacommunaute/notification/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from datetime import datetime

from django.utils.timezone import now, timedelta
from django.utils.translation import gettext_lazy as _

from lacommunaute.notification.enums import EmailSentTrackKind
from lacommunaute.notification.models import EmailSentTrack
Expand All @@ -18,11 +17,11 @@ def collect_new_users_for_onboarding():
)


def get_serialized_messages(notifications, action_verb=_("responded to")):
def get_serialized_messages(notifications):
return [
{
"poster": n.post.poster_display_name,
"action": f"{action_verb} '{n.post.subject}'",
"action": f"a répondu à '{n.post.subject}'",
"forum": n.post.topic.forum.name,
"url": n.post.topic.get_absolute_url(with_fqdn=True),
}
Expand Down
Binary file modified locale/fr/LC_MESSAGES/django.mo
Binary file not shown.
4 changes: 0 additions & 4 deletions locale/fr/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,3 @@ msgstr "Dès que possible"

msgid "The following day"
msgstr "Le jour suivant"

#: lacommunaute/notification/utils.py
msgid "responded to"
msgstr "a répondu à"

0 comments on commit 9563595

Please sign in to comment.