diff --git a/pretalx_broadcast_tools/exporter.py b/pretalx_broadcast_tools/exporter.py index a6b8bb1..406d834 100644 --- a/pretalx_broadcast_tools/exporter.py +++ b/pretalx_broadcast_tools/exporter.py @@ -1,7 +1,8 @@ from tempfile import NamedTemporaryFile from django.utils.timezone import now -from django.utils.translation import gettext_lazy as _ +from django.utils.translation import gettext_noop +from i18nfield.strings import LazyI18nString from pretalx.schedule.exporters import ScheduleData from reportlab.lib import colors from reportlab.lib.enums import TA_CENTER @@ -24,6 +25,9 @@ A4_WIDTH, A4_HEIGHT = A4 PAGE_PADDING = 10 * mm +def _(text): + return LazyI18nString.from_gettext(gettext_noop(text)) + class PDFInfoPage(Flowable): def __init__(self, event, schedule, fahrplan_day, room_details, talk, style): super().__init__() @@ -153,10 +157,10 @@ class PDFInfoPage(Flowable): Table( [ ( - "Duration", - "Language", - "Type", - "Code", + self._localize(_("Duration")), + self._localize(_("Language")), + self._localize(_("Type")), + self._localize(_("Code")), ), ( self.talk.export_duration, 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 dd98039..7499ba6 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 18:54+0100\n" +"POT-Creation-Date: 2024-10-31 20:19+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -31,19 +31,35 @@ msgstr "" "Einige Helfer, die zur Unterstützung von Broadcasting-Software benutzt " "werden kann, zum Beispiel eine 'Bauchbinden'-Seite." -#: exporter.py:120 +#: exporter.py:124 msgid "DO NOT RECORD - DO NOT STREAM" msgstr "NICHT AUFNEHMEN - NICHT STREAMEN" -#: exporter.py:203 +#: exporter.py:160 +msgid "Duration" +msgstr "Dauer" + +#: exporter.py:161 +msgid "Language" +msgstr "Sprache" + +#: exporter.py:162 +msgid "Type" +msgstr "Typ" + +#: exporter.py:163 +msgid "Code" +msgstr "Code" + +#: exporter.py:207 msgid "Questions" msgstr "Fragen" -#: exporter.py:231 +#: exporter.py:235 msgid "Notes" msgstr "Notizen" -#: exporter.py:253 +#: exporter.py:257 msgid "Internal Notes" msgstr "Interne Notizen" @@ -152,8 +168,6 @@ msgid "broadcasting tools" msgstr "Broadcasting-Tools" #: templates/pretalx_broadcast_tools/orga.html:14 -#, fuzzy -#| msgid "room list" msgid "room" msgstr "Raum" 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 e82f0f5..74ea3dc 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 18:54+0100\n" +"POT-Creation-Date: 2024-10-31 20:18+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -28,19 +28,35 @@ msgid "" "software" msgstr "" -#: exporter.py:120 +#: exporter.py:124 msgid "DO NOT RECORD - DO NOT STREAM" msgstr "" -#: exporter.py:203 +#: exporter.py:160 +msgid "Duration" +msgstr "" + +#: exporter.py:161 +msgid "Language" +msgstr "" + +#: exporter.py:162 +msgid "Type" +msgstr "" + +#: exporter.py:163 +msgid "Code" +msgstr "" + +#: exporter.py:207 msgid "Questions" msgstr "" -#: exporter.py:231 +#: exporter.py:235 msgid "Notes" msgstr "" -#: exporter.py:253 +#: exporter.py:257 msgid "Internal Notes" msgstr ""