Fixed missing translation in PDF title and filename.

This commit is contained in:
Emanuel Schuetze 2012-07-23 12:57:47 +02:00
parent 219b1e936e
commit bf5181e241
2 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,7 @@ from django.core.urlresolvers import reverse
from django.contrib import messages
from django.db import transaction
from django.db.models import Model
from django.utils.translation import ugettext as _
from django.utils.translation import ugettext as _, ugettext_lazy
from django.views.generic.detail import SingleObjectMixin
from openslides.utils.pdf import stylesheet
@ -236,8 +236,8 @@ class AgendaPDF(PDFView):
Create a full agenda-PDF.
"""
permission_required = 'agenda.can_see_agenda'
filename = _('Agenda')
document_title = _('Agenda')
filename = ugettext_lazy('Agenda')
document_title = ugettext_lazy('Agenda')
def append_to_pdf(self, story):
for item in Item.objects.all():

View File

@ -602,7 +602,7 @@ class ParticipantsListPDF(PDFView):
Generate the userliste as PDF.
"""
permission_required = 'participant.can_see_participant'
filename = _("Participant-list")
filename = ugettext_lazy("Participant-list")
document_title = ugettext_lazy('List of Participants')
def append_to_pdf(self, story):
@ -643,7 +643,7 @@ class ParticipantsPasswordsPDF(PDFView):
Generate the Welcomepaper for the users.
"""
permission_required = 'participant.can_manage_participant'
filename = _("Participant-passwords")
filename = ugettext_lazy("Participant-passwords")
top_space = 0
def get_template(self, buffer):