Fix trans

This commit is contained in:
cuom1999 2023-04-03 11:55:13 -05:00
parent eb36ed4f79
commit 9ce925fd6a
3 changed files with 64 additions and 63 deletions

View file

@ -40,7 +40,7 @@ class NotificationList(ListView):
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["unseen_count"] = self.unseen_cnt
context["title"] = _("Notifications (%d unseen)" % context["unseen_count"])
context["title"] = _("Notifications (%d unseen)") % context["unseen_count"]
context["has_notifications"] = self.queryset.exists()
return context

View file

@ -624,10 +624,7 @@ class OrganizationRequestBaseView(
return organization
def get_content_title(self):
href = reverse("organization_home", args=[self.object.id, self.object.slug])
return mark_safe(
f'Manage join requests for <a href="{href}">{self.object.name}</a>'
)
return _("Manage join requests")
def get_context_data(self, **kwargs):
context = super(OrganizationRequestBaseView, self).get_context_data(**kwargs)