Skip to content

Commit

Permalink
fix a string not getting marked by gettext
Browse files Browse the repository at this point in the history
  • Loading branch information
felixrindt committed Jul 13, 2023
1 parent 40dd2f6 commit cfc420e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ephios/core/signup/participants.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ def reverse_event_detail(self, event):

@property
def icon(self):
title = _(
"Placeholder"
) # not getting marked for translation when inside f-string for some reason
return mark_safe(
f'<span class="fa fa-user-tag" data-toggle="tooltip" data-placement="left" title="{_("Placeholder")}"></span>'
f'<span class="fa fa-user-tag" data-toggle="tooltip" data-placement="left" title="{title}"></span>'
)

0 comments on commit cfc420e

Please sign in to comment.