Fixed a typo. Closes #519

This commit is contained in:
Manuel Cortez 2023-03-23 08:48:02 -06:00
parent d01856f436
commit ae5515b6e1
No known key found for this signature in database
GPG Key ID: 9E0735CA15EFE790
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ def compose_notification(notification, db, relative_times, show_screen_names, sa
if notification.type == "status": if notification.type == "status":
text = _("{username} has posted: {status}").format(username=user, status=",".join(compose_post(notification.status, db, relative_times, show_screen_names, safe=safe))) text = _("{username} has posted: {status}").format(username=user, status=",".join(compose_post(notification.status, db, relative_times, show_screen_names, safe=safe)))
elif notification.type == "mention": elif notification.type == "mention":
text = _("{username} has mentionned you: {status}").format(username=user, status=",".join(compose_post(notification.status, db, relative_times, show_screen_names, safe=safe))) text = _("{username} has mentioned you: {status}").format(username=user, status=",".join(compose_post(notification.status, db, relative_times, show_screen_names, safe=safe)))
elif notification.type == "reblog": elif notification.type == "reblog":
text = _("{username} has boosted: {status}").format(username=user, status=",".join(compose_post(notification.status, db, relative_times, show_screen_names, safe=safe))) text = _("{username} has boosted: {status}").format(username=user, status=",".join(compose_post(notification.status, db, relative_times, show_screen_names, safe=safe)))
elif notification.type == "favourite": elif notification.type == "favourite":

View File

@ -152,7 +152,7 @@ def render_notification(notification, template, post_template, relative_times=Fa
if notification.type == "status": if notification.type == "status":
text = _("has posted: {status}").format(status=render_post(notification.status, post_template, relative_times, offset_hours)) text = _("has posted: {status}").format(status=render_post(notification.status, post_template, relative_times, offset_hours))
elif notification.type == "mention": elif notification.type == "mention":
text = _("has mentionned you: {status}").format(status=render_post(notification.status, post_template, relative_times, offset_hours)) text = _("has mentioned you: {status}").format(status=render_post(notification.status, post_template, relative_times, offset_hours))
elif notification.type == "reblog": elif notification.type == "reblog":
text = _("has boosted: {status}").format(status=render_post(notification.status, post_template, relative_times, offset_hours)) text = _("has boosted: {status}").format(status=render_post(notification.status, post_template, relative_times, offset_hours))
elif notification.type == "favourite": elif notification.type == "favourite":