Fixed #803 (Groups not translated on user detail view and overview pdf)
This commit is contained in:
parent
4625c4731d
commit
3fadb99ffd
@ -52,7 +52,12 @@
|
||||
{{ shown_user.committee }}
|
||||
<label>{% trans "Groups" %}</label>
|
||||
{% if shown_user.groups.all %}
|
||||
{{ shown_user.groups.all|join:", " }}
|
||||
{% for group in shown_user.groups.all %}
|
||||
{% if group.pk != 2 %}
|
||||
{% trans group.name %}
|
||||
{% if not forloop.last %}, {% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{% trans "The participant is not member of any group." %}
|
||||
{% endif %}
|
||||
|
@ -219,7 +219,7 @@ class ParticipantsListPDF(PDFView):
|
||||
groups = ''
|
||||
for group in user.groups.all():
|
||||
if group.pk != 2:
|
||||
groups += "%s<br/>" % unicode(group)
|
||||
groups += "%s<br/>" % unicode(_(group.name))
|
||||
data.append([
|
||||
counter,
|
||||
Paragraph(user.title, stylesheet['Tablecell']),
|
||||
|
Loading…
Reference in New Issue
Block a user