#290 fix unicode problem for python 2.5 in strftime
This commit is contained in:
parent
a1152af7ea
commit
84a78e8584
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user