1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2025-06-06 14:42:23 +00:00

fix translation

This commit is contained in:
Franzi 2024-10-31 20:21:55 +01:00
parent 29db37bca5
commit 8dde19105d
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 51 additions and 17 deletions

View file

@ -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,