Fixed translation issues

This commit is contained in:
Raphael Michel
2016-03-15 17:17:33 +01:00
parent 8a2c2db6c8
commit 7f524af79a
3 changed files with 38 additions and 28 deletions

View File

@@ -214,8 +214,8 @@ def _invoice_generate_german(invoice, f):
textobject.textLine(str(invoice.event.name))
if invoice.event.settings.show_date_to:
textobject.textLines(
_('%s\nuntil %s') % (invoice.event.get_date_from_display(),
invoice.event.get_date_to_display()))
_('{from_date}\nuntil {to_date}').format(from_date=invoice.event.get_date_from_display(),
to_date=invoice.event.get_date_to_display()))
else:
textobject.textLine(invoice.event.get_date_from_display())
canvas.drawText(textobject)