fix error in the translation of the participant-list
This commit is contained in:
parent
8854f7f9ba
commit
93f9e2dc97
@ -34,7 +34,7 @@ from django.contrib.auth.forms import PasswordChangeForm
|
|||||||
from django.contrib.auth.views import login as django_login
|
from django.contrib.auth.views import login as django_login
|
||||||
from django.core.urlresolvers import reverse
|
from django.core.urlresolvers import reverse
|
||||||
from django.shortcuts import redirect
|
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 import csv_ext
|
||||||
from openslides.utils.pdf import stylesheet
|
from openslides.utils.pdf import stylesheet
|
||||||
@ -603,7 +603,7 @@ class ParticipantsListPDF(PDFView):
|
|||||||
"""
|
"""
|
||||||
permission_required = 'participant.can_see_participant'
|
permission_required = 'participant.can_see_participant'
|
||||||
filename = _("Participant-list")
|
filename = _("Participant-list")
|
||||||
document_title = _('List of Participants')
|
document_title = ugettext_lazy('List of Participants')
|
||||||
|
|
||||||
def append_to_pdf(self, story):
|
def append_to_pdf(self, story):
|
||||||
data= [['#', _('Last Name'), _('First Name'), _('Group'), _('Type'),
|
data= [['#', _('Last Name'), _('First Name'), _('Group'), _('Type'),
|
||||||
|
@ -267,7 +267,7 @@ class PDFView(PermissionMixin, View):
|
|||||||
return self.top_space
|
return self.top_space
|
||||||
|
|
||||||
def get_document_title(self):
|
def get_document_title(self):
|
||||||
return self.document_title
|
return unicode(self.document_title)
|
||||||
|
|
||||||
def get_filename(self):
|
def get_filename(self):
|
||||||
return self.filename
|
return self.filename
|
||||||
|
Loading…
Reference in New Issue
Block a user