From cd77ee8b9172a9145436345fc763fa43353a0e5f Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Thu, 31 Oct 2024 21:14:16 +0100 Subject: [PATCH] add track name to PDF export --- pretalx_broadcast_tools/exporter.py | 7 +++++++ .../locale/de_DE/LC_MESSAGES/django.po | 16 ++++++++-------- .../locale/fr_FR/LC_MESSAGES/django.po | 16 ++++++++-------- 3 files changed, 23 insertions(+), 16 deletions(-) diff --git a/pretalx_broadcast_tools/exporter.py b/pretalx_broadcast_tools/exporter.py index e42944e..22ae82d 100644 --- a/pretalx_broadcast_tools/exporter.py +++ b/pretalx_broadcast_tools/exporter.py @@ -153,6 +153,13 @@ class PDFInfoPage(Flowable): ) self._space() + if self.talk.submission.track: + self._add( + Paragraph( + f"{self._localize(_('Track:'))} {self._localize(self.talk.submission.track.name)}", + style=self.style["Meta"], + ) + ) self._add( Table( [ diff --git a/pretalx_broadcast_tools/locale/de_DE/LC_MESSAGES/django.po b/pretalx_broadcast_tools/locale/de_DE/LC_MESSAGES/django.po index 7499ba6..d5dd4be 100644 --- a/pretalx_broadcast_tools/locale/de_DE/LC_MESSAGES/django.po +++ b/pretalx_broadcast_tools/locale/de_DE/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-10-31 20:19+0100\n" +"POT-Creation-Date: 2024-10-31 21:10+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -35,31 +35,31 @@ msgstr "" msgid "DO NOT RECORD - DO NOT STREAM" msgstr "NICHT AUFNEHMEN - NICHT STREAMEN" -#: exporter.py:160 +#: exporter.py:167 msgid "Duration" msgstr "Dauer" -#: exporter.py:161 +#: exporter.py:168 msgid "Language" msgstr "Sprache" -#: exporter.py:162 +#: exporter.py:169 msgid "Type" msgstr "Typ" -#: exporter.py:163 +#: exporter.py:170 msgid "Code" msgstr "Code" -#: exporter.py:207 +#: exporter.py:214 msgid "Questions" msgstr "Fragen" -#: exporter.py:235 +#: exporter.py:242 msgid "Notes" msgstr "Notizen" -#: exporter.py:257 +#: exporter.py:264 msgid "Internal Notes" msgstr "Interne Notizen" diff --git a/pretalx_broadcast_tools/locale/fr_FR/LC_MESSAGES/django.po b/pretalx_broadcast_tools/locale/fr_FR/LC_MESSAGES/django.po index 74ea3dc..04efdec 100644 --- a/pretalx_broadcast_tools/locale/fr_FR/LC_MESSAGES/django.po +++ b/pretalx_broadcast_tools/locale/fr_FR/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-10-31 20:18+0100\n" +"POT-Creation-Date: 2024-10-31 21:10+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -32,31 +32,31 @@ msgstr "" msgid "DO NOT RECORD - DO NOT STREAM" msgstr "" -#: exporter.py:160 +#: exporter.py:167 msgid "Duration" msgstr "" -#: exporter.py:161 +#: exporter.py:168 msgid "Language" msgstr "" -#: exporter.py:162 +#: exporter.py:169 msgid "Type" msgstr "" -#: exporter.py:163 +#: exporter.py:170 msgid "Code" msgstr "" -#: exporter.py:207 +#: exporter.py:214 msgid "Questions" msgstr "" -#: exporter.py:235 +#: exporter.py:242 msgid "Notes" msgstr "" -#: exporter.py:257 +#: exporter.py:264 msgid "Internal Notes" msgstr ""