From 3fadb99ffd3c22d31c19594c4ed63316b3f17aa8 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Fri, 5 Jul 2013 15:49:10 +0200 Subject: [PATCH] Fixed #803 (Groups not translated on user detail view and overview pdf) --- .../participant/templates/participant/user_detail.html | 7 ++++++- openslides/participant/views.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/openslides/participant/templates/participant/user_detail.html b/openslides/participant/templates/participant/user_detail.html index 8a0540e00..40f0925a0 100644 --- a/openslides/participant/templates/participant/user_detail.html +++ b/openslides/participant/templates/participant/user_detail.html @@ -52,7 +52,12 @@ {{ shown_user.committee }} {% 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 %} diff --git a/openslides/participant/views.py b/openslides/participant/views.py index c8e19d8cd..882b90c56 100644 --- a/openslides/participant/views.py +++ b/openslides/participant/views.py @@ -219,7 +219,7 @@ class ParticipantsListPDF(PDFView): groups = '' for group in user.groups.all(): if group.pk != 2: - groups += "%s
" % unicode(group) + groups += "%s
" % unicode(_(group.name)) data.append([ counter, Paragraph(user.title, stylesheet['Tablecell']),