Fixed missing translation in PDF title and filename.
This commit is contained in:
parent
219b1e936e
commit
bf5181e241
@ -16,7 +16,7 @@ from django.core.urlresolvers import reverse
|
|||||||
from django.contrib import messages
|
from django.contrib import messages
|
||||||
from django.db import transaction
|
from django.db import transaction
|
||||||
from django.db.models import Model
|
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 django.views.generic.detail import SingleObjectMixin
|
||||||
|
|
||||||
from openslides.utils.pdf import stylesheet
|
from openslides.utils.pdf import stylesheet
|
||||||
@ -236,8 +236,8 @@ class AgendaPDF(PDFView):
|
|||||||
Create a full agenda-PDF.
|
Create a full agenda-PDF.
|
||||||
"""
|
"""
|
||||||
permission_required = 'agenda.can_see_agenda'
|
permission_required = 'agenda.can_see_agenda'
|
||||||
filename = _('Agenda')
|
filename = ugettext_lazy('Agenda')
|
||||||
document_title = _('Agenda')
|
document_title = ugettext_lazy('Agenda')
|
||||||
|
|
||||||
def append_to_pdf(self, story):
|
def append_to_pdf(self, story):
|
||||||
for item in Item.objects.all():
|
for item in Item.objects.all():
|
||||||
|
@ -602,7 +602,7 @@ class ParticipantsListPDF(PDFView):
|
|||||||
Generate the userliste as PDF.
|
Generate the userliste as PDF.
|
||||||
"""
|
"""
|
||||||
permission_required = 'participant.can_see_participant'
|
permission_required = 'participant.can_see_participant'
|
||||||
filename = _("Participant-list")
|
filename = ugettext_lazy("Participant-list")
|
||||||
document_title = ugettext_lazy('List of Participants')
|
document_title = ugettext_lazy('List of Participants')
|
||||||
|
|
||||||
def append_to_pdf(self, story):
|
def append_to_pdf(self, story):
|
||||||
@ -643,7 +643,7 @@ class ParticipantsPasswordsPDF(PDFView):
|
|||||||
Generate the Welcomepaper for the users.
|
Generate the Welcomepaper for the users.
|
||||||
"""
|
"""
|
||||||
permission_required = 'participant.can_manage_participant'
|
permission_required = 'participant.can_manage_participant'
|
||||||
filename = _("Participant-passwords")
|
filename = ugettext_lazy("Participant-passwords")
|
||||||
top_space = 0
|
top_space = 0
|
||||||
|
|
||||||
def get_template(self, buffer):
|
def get_template(self, buffer):
|
||||||
|
Loading…
Reference in New Issue
Block a user