1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2024-11-22 02:11:03 +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 tempfile import NamedTemporaryFile
from django.utils.timezone import now 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 pretalx.schedule.exporters import ScheduleData
from reportlab.lib import colors from reportlab.lib import colors
from reportlab.lib.enums import TA_CENTER from reportlab.lib.enums import TA_CENTER
@ -24,6 +25,9 @@ A4_WIDTH, A4_HEIGHT = A4
PAGE_PADDING = 10 * mm PAGE_PADDING = 10 * mm
def _(text):
return LazyI18nString.from_gettext(gettext_noop(text))
class PDFInfoPage(Flowable): class PDFInfoPage(Flowable):
def __init__(self, event, schedule, fahrplan_day, room_details, talk, style): def __init__(self, event, schedule, fahrplan_day, room_details, talk, style):
super().__init__() super().__init__()
@ -153,10 +157,10 @@ class PDFInfoPage(Flowable):
Table( Table(
[ [
( (
"Duration", self._localize(_("Duration")),
"Language", self._localize(_("Language")),
"Type", self._localize(_("Type")),
"Code", self._localize(_("Code")),
), ),
( (
self.talk.export_duration, self.talk.export_duration,

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -31,19 +31,35 @@ msgstr ""
"Einige Helfer, die zur Unterstützung von Broadcasting-Software benutzt " "Einige Helfer, die zur Unterstützung von Broadcasting-Software benutzt "
"werden kann, zum Beispiel eine 'Bauchbinden'-Seite." "werden kann, zum Beispiel eine 'Bauchbinden'-Seite."
#: exporter.py:120 #: exporter.py:124
msgid "DO NOT RECORD - DO NOT STREAM" msgid "DO NOT RECORD - DO NOT STREAM"
msgstr "NICHT AUFNEHMEN - NICHT STREAMEN" 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" msgid "Questions"
msgstr "Fragen" msgstr "Fragen"
#: exporter.py:231 #: exporter.py:235
msgid "Notes" msgid "Notes"
msgstr "Notizen" msgstr "Notizen"
#: exporter.py:253 #: exporter.py:257
msgid "Internal Notes" msgid "Internal Notes"
msgstr "Interne Notizen" msgstr "Interne Notizen"
@ -152,8 +168,6 @@ msgid "broadcasting tools"
msgstr "Broadcasting-Tools" msgstr "Broadcasting-Tools"
#: templates/pretalx_broadcast_tools/orga.html:14 #: templates/pretalx_broadcast_tools/orga.html:14
#, fuzzy
#| msgid "room list"
msgid "room" msgid "room"
msgstr "Raum" msgstr "Raum"

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -28,19 +28,35 @@ msgid ""
"software" "software"
msgstr "" msgstr ""
#: exporter.py:120 #: exporter.py:124
msgid "DO NOT RECORD - DO NOT STREAM" msgid "DO NOT RECORD - DO NOT STREAM"
msgstr "" 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" msgid "Questions"
msgstr "" msgstr ""
#: exporter.py:231 #: exporter.py:235
msgid "Notes" msgid "Notes"
msgstr "" msgstr ""
#: exporter.py:253 #: exporter.py:257
msgid "Internal Notes" msgid "Internal Notes"
msgstr "" msgstr ""