From bf5181e2414b7e85db9d6f282549086760fc8ec7 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Mon, 23 Jul 2012 12:57:47 +0200 Subject: [PATCH] Fixed missing translation in PDF title and filename. --- openslides/agenda/views.py | 6 +++--- openslides/participant/views.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/openslides/agenda/views.py b/openslides/agenda/views.py index aa7c13132..9e5f69ac3 100644 --- a/openslides/agenda/views.py +++ b/openslides/agenda/views.py @@ -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(): diff --git a/openslides/participant/views.py b/openslides/participant/views.py index 87e7aa04c..3e6d3df68 100644 --- a/openslides/participant/views.py +++ b/openslides/participant/views.py @@ -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):