diff --git a/openslides/utils/pdf.py b/openslides/utils/pdf.py index 8dbc727a6..81af42171 100755 --- a/openslides/utils/pdf.py +++ b/openslides/utils/pdf.py @@ -20,7 +20,8 @@ from reportlab.pdfbase.ttfonts import TTFont from reportlab.rl_config import defaultPageSize from django.conf import settings -from django.utils.translation import ugettext as _ +# Import gettext for python 2.5 support +from django.utils.translation import ugettext as _, gettext from openslides.config.models import config @@ -221,7 +222,7 @@ def firstPage(canvas, doc): # time canvas.setFont('Ubuntu', 7) - time = datetime.now().strftime(_("%Y-%m-%d %H:%Mh")) + time = datetime.now().strftime(gettext("%Y-%m-%d %H:%Mh")) canvas.drawString(15 * cm, 28 * cm, _("Printed: %s") % time) # title