From 93f9e2dc979099e958c08d40e553283481fc7ded Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Fri, 20 Jul 2012 11:40:36 +0200 Subject: [PATCH] fix error in the translation of the participant-list --- openslides/participant/views.py | 4 ++-- openslides/utils/views.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openslides/participant/views.py b/openslides/participant/views.py index 273513a29..87e7aa04c 100644 --- a/openslides/participant/views.py +++ b/openslides/participant/views.py @@ -34,7 +34,7 @@ from django.contrib.auth.forms import PasswordChangeForm from django.contrib.auth.views import login as django_login from django.core.urlresolvers import reverse from django.shortcuts import redirect -from django.utils.translation import ugettext as _, ungettext +from django.utils.translation import ugettext as _, ungettext, ugettext_lazy from openslides.utils import csv_ext from openslides.utils.pdf import stylesheet @@ -603,7 +603,7 @@ class ParticipantsListPDF(PDFView): """ permission_required = 'participant.can_see_participant' filename = _("Participant-list") - document_title = _('List of Participants') + document_title = ugettext_lazy('List of Participants') def append_to_pdf(self, story): data= [['#', _('Last Name'), _('First Name'), _('Group'), _('Type'), diff --git a/openslides/utils/views.py b/openslides/utils/views.py index 769427ec6..6329f5462 100644 --- a/openslides/utils/views.py +++ b/openslides/utils/views.py @@ -267,7 +267,7 @@ class PDFView(PermissionMixin, View): return self.top_space def get_document_title(self): - return self.document_title + return unicode(self.document_title) def get_filename(self): return self.filename