diff --git a/src/pretix/locale/de/LC_MESSAGES/django.po b/src/pretix/locale/de/LC_MESSAGES/django.po index 7acf97bb8..cb51c1579 100644 --- a/src/pretix/locale/de/LC_MESSAGES/django.po +++ b/src/pretix/locale/de/LC_MESSAGES/django.po @@ -7982,6 +7982,10 @@ msgstr "Veranstaltungsdatum" msgid "Event begin date and time" msgstr "Veranstaltungsdatum und Uhrzeit" +#: pretix/plugins/ticketoutputpdf/templates/pretixplugins/ticketoutputpdf/index.html:270 +msgid "Event date range" +msgstr "Veranstaltungsdatum Beginn und Ende" + #: pretix/plugins/ticketoutputpdf/templates/pretixplugins/ticketoutputpdf/index.html:271 msgid "Event begin time" msgstr "Veranstaltungsuhrzeit" diff --git a/src/pretix/locale/de_Informal/LC_MESSAGES/django.po b/src/pretix/locale/de_Informal/LC_MESSAGES/django.po index bd58b2ec8..331a52051 100644 --- a/src/pretix/locale/de_Informal/LC_MESSAGES/django.po +++ b/src/pretix/locale/de_Informal/LC_MESSAGES/django.po @@ -7960,6 +7960,10 @@ msgstr "Veranstaltungsdatum" msgid "Event begin date and time" msgstr "Veranstaltungsdatum und Uhrzeit" +#: pretix/plugins/ticketoutputpdf/templates/pretixplugins/ticketoutputpdf/index.html:270 +msgid "Event date range" +msgstr "Veranstaltungsdatum Beginn und Ende" + #: pretix/plugins/ticketoutputpdf/templates/pretixplugins/ticketoutputpdf/index.html:271 msgid "Event begin time" msgstr "Veranstaltungsuhrzeit" diff --git a/src/pretix/plugins/ticketoutputpdf/static/pretixplugins/ticketoutputpdf/editor.js b/src/pretix/plugins/ticketoutputpdf/static/pretixplugins/ticketoutputpdf/editor.js index f36475899..7078e09d5 100644 --- a/src/pretix/plugins/ticketoutputpdf/static/pretixplugins/ticketoutputpdf/editor.js +++ b/src/pretix/plugins/ticketoutputpdf/static/pretixplugins/ticketoutputpdf/editor.js @@ -161,6 +161,7 @@ var editor = { "attendee_name": gettext("John Doe"), "event_name": gettext("Sample event name"), "event_date": gettext("May 31st, 2017"), + "event_date_range": gettext("May 31st – June 4th, 2017"), "event_begin_time": gettext("20:00"), "event_admission_time": gettext("19:00"), "event_begin": gettext("2017-05-31 20:00"), diff --git a/src/pretix/plugins/ticketoutputpdf/templates/pretixplugins/ticketoutputpdf/index.html b/src/pretix/plugins/ticketoutputpdf/templates/pretixplugins/ticketoutputpdf/index.html index 0920672c1..1d335ec17 100644 --- a/src/pretix/plugins/ticketoutputpdf/templates/pretixplugins/ticketoutputpdf/index.html +++ b/src/pretix/plugins/ticketoutputpdf/templates/pretixplugins/ticketoutputpdf/index.html @@ -267,6 +267,7 @@ + diff --git a/src/pretix/plugins/ticketoutputpdf/ticketoutput.py b/src/pretix/plugins/ticketoutputpdf/ticketoutput.py index e35e1af97..f11e384f6 100644 --- a/src/pretix/plugins/ticketoutputpdf/ticketoutput.py +++ b/src/pretix/plugins/ticketoutputpdf/ticketoutput.py @@ -85,6 +85,8 @@ class PdfTicketOutput(BaseTicketOutput): return str(order.event.location).replace("\n", "
\n") elif o['content'] == 'event_date': return order.event.get_date_from_display(show_times=False) + elif o['content'] == 'event_date_range': + return order.event.get_date_range_display() elif o['content'] == 'event_begin': return order.event.get_date_from_display(show_times=True) elif o['content'] == 'event_begin_time': @@ -231,8 +233,8 @@ class PdfTicketOutput(BaseTicketOutput): "fontfamily": "Open Sans", "bold": False, "italic": False, "width": "110.00", "content": "attendee_name", "text": "John Doe", "align": "left"}, {"type": "textarea", "left": "17.50", "bottom": "242.10", "fontsize": "13.0", "color": [0, 0, 0, 1], - "fontfamily": "Open Sans", "bold": False, "italic": False, "width": "110.00", "content": "event_date", - "text": "May 31st, 2017", "align": "left"}, + "fontfamily": "Open Sans", "bold": False, "italic": False, "width": "110.00", + "content": "event_date_range", "text": "May 31st, 2017", "align": "left"}, {"type": "textarea", "left": "17.50", "bottom": "204.80", "fontsize": "13.0", "color": [0, 0, 0, 1], "fontfamily": "Open Sans", "bold": False, "italic": False, "width": "110.00", "content": "event_location", "text": "Random City", "align": "left"},