1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2025-04-07 15:26:50 +00:00

Compare commits

..

15 commits
2.4.0 ... main

Author SHA1 Message Date
Franziska Kunsmann
5613bf5acb Partially revert "adjust sizing for room timer"
This reverts commit b07745b2ea.

Turns out if we have bigger font size longer talk titles no longer fit.
2025-03-13 18:16:16 +01:00
Franziska Kunsmann
b07745b2ea adjust sizing for room timer 2025-03-12 13:59:45 +01:00
Franziska Kunsmann
a05cbfc0d4 fix design for "talk has ended" 2025-03-10 05:38:44 +01:00
Franziska Kunsmann
1c951c6f65 bigger font for timer, please 2025-03-10 05:26:43 +01:00
Franziska Kunsmann
3af67e5e53 room timer: use more standard timer layout, properly show length bigger than one hour 2025-03-10 05:23:23 +01:00
a3435e518f
Fix "X min remaining" for events longer than 59min 2025-03-09 21:27:25 +01:00
ade18a033e
UX: show current time if no talk is currently running 2025-03-09 21:26:44 +01:00
283686feb3
Merge pull request #27 from pretalx-translations/weblate-pretalx-plugin-broadcast-tools-pretalx-plugin-broadcast-tools
Translations update from Translate pretalx
2025-02-07 18:30:17 +01:00
Harrissou Sant-anna
baa8ce043c Translated using Weblate (French)
Currently translated at 16.3% (8 of 49 strings)

Translation: pretalx-plugin-broadcast-tools/pretalx-plugin-broadcast-tools
Translate-URL: http://translate.pretalx.com/projects/pretalx-plugin-broadcast-tools/pretalx-plugin-broadcast-tools/fr/
2025-02-05 12:56:04 +00:00
Franziska Kunsmann
de0c4721ed room_timer: it is confusing for speakers if the timer does not move every second 2024-12-03 10:36:58 +01:00
fec30e79ff
Merge pull request #26 from pretalx-translations/weblate-pretalx-plugin-broadcast-tools-pretalx-plugin-broadcast-tools
Translations update from Translate pretalx
2024-11-14 19:30:13 +01:00
Franziska
7fead51cb6 Translated using Weblate (German)
Currently translated at 96.1% (50 of 52 strings)

Translation: pretalx-plugin-broadcast-tools/pretalx-plugin-broadcast-tools
Translate-URL: http://translate.pretalx.com/projects/pretalx-plugin-broadcast-tools/pretalx-plugin-broadcast-tools/de/
2024-11-13 05:41:49 +00:00
Franziska
65b8b87c8d Translated using Weblate (German)
Currently translated at 94.1% (48 of 51 strings)

Translation: pretalx-plugin-broadcast-tools/pretalx-plugin-broadcast-tools
Translate-URL: http://translate.pretalx.com/projects/pretalx-plugin-broadcast-tools/pretalx-plugin-broadcast-tools/de/
2024-11-13 05:38:52 +00:00
6a6fc0be9e
fix case issues for some translations 2024-11-13 06:38:13 +01:00
632c756245
add translation status to README 2024-11-13 06:23:26 +01:00
6 changed files with 64 additions and 47 deletions

View file

@ -1,6 +1,10 @@
Pretalx: Broadcast Tools (and more)
===================================
.. image:: http://translate.pretalx.com/widget/pretalx-plugin-broadcast-tools/pretalx-plugin-broadcast-tools/svg-badge.svg
:alt: Translation status
:target: http://translate.pretalx.com/engage/pretalx-plugin-broadcast-tools/
This is a plugin for `pretalx`_.
This adds the following features to your pretalx instance:

View file

@ -2,19 +2,21 @@
# Copyright (C) 2024 Franziska 'kunsi' Kunsmann
# This file is distributed under the same license as the pretalx-broadcast-tools package.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: 2.4.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-11-05 07:29+0100\n"
"PO-Revision-Date: 2024-11-05 07:32+0100\n"
"Last-Translator: Franziska Kunsmann <git@kunsmann.eu>\n"
"Language: \n"
"POT-Creation-Date: 2024-11-13 06:37+0100\n"
"PO-Revision-Date: 2024-11-13 05:41+0000\n"
"Last-Translator: Franziska <pretalx@kunsmann.eu>\n"
"Language-Team: German <http://translate.pretalx.com/projects/"
"pretalx-plugin-broadcast-tools/pretalx-plugin-broadcast-tools/de/>\n"
"Language: de_DE\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.6.2\n"
#: apps.py:12
msgid "Broadcasting Tools"
@ -27,7 +29,8 @@ msgid ""
"software"
msgstr ""
"Einige Helfer, die zur Unterstützung von Broadcasting-Software benutzt "
"werden kann, zum Beispiel eine 'Bauchbinden'-Seite."
"werden kann, zum Beispiel eine 'Bauchbinden'-Seite, die in deine "
"Broadcasting-Software eingebunden werden kann"
#: exporter.py:124
msgid "DO NOT RECORD - DO NOT STREAM"
@ -189,14 +192,11 @@ msgid "Feature"
msgstr "Funktion"
#: templates/pretalx_broadcast_tools/orga.html:21
#, fuzzy
#| msgid "Lower thirds"
msgid "Lower Thirds"
msgstr "Bauchbinden"
#: templates/pretalx_broadcast_tools/orga.html:22
#, fuzzy
#| msgid "Room info"
#: templates/pretalx_broadcast_tools/orga.html:63
msgid "Room Info"
msgstr "Raum-Information"
@ -253,6 +253,14 @@ msgstr "Track-Name in einfachem Text oder in der Track-Farbe eingefärbt."
msgid "Settings"
msgstr "Einstellungen"
#: templates/pretalx_broadcast_tools/orga.html:70
msgid "PDF Export"
msgstr "PDF-Export"
#: templates/pretalx_broadcast_tools/orga.html:86
msgid "Save"
msgstr "Speichern"
#: templates/pretalx_broadcast_tools/orga.html:55
msgid "Lower thirds"
msgstr "Bauchbinden"
@ -264,7 +272,3 @@ msgstr "Raum-Information"
#: templates/pretalx_broadcast_tools/orga.html:70
msgid "PDF export"
msgstr "PDF-Export"
#: templates/pretalx_broadcast_tools/orga.html:86
msgid "Save"
msgstr "Speichern"

View file

@ -3,19 +3,21 @@
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-11-05 07:29+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"POT-Creation-Date: 2024-11-13 06:37+0100\n"
"PO-Revision-Date: 2025-02-05 12:56+0000\n"
"Last-Translator: Harrissou Sant-anna <delazj@gmail.com>\n"
"Language-Team: French <http://translate.pretalx.com/projects/"
"pretalx-plugin-broadcast-tools/pretalx-plugin-broadcast-tools/fr/>\n"
"Language: fr_FR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 5.6.2\n"
#: apps.py:12
msgid "Broadcasting Tools"
@ -30,35 +32,35 @@ msgstr ""
#: exporter.py:124
msgid "DO NOT RECORD - DO NOT STREAM"
msgstr ""
msgstr "NE PAS ENREGISTRER - NE PAS DIFFUSER EN CONTINU"
#: exporter.py:167
msgid "Duration"
msgstr ""
msgstr "Durée"
#: exporter.py:168
msgid "Language"
msgstr ""
msgstr "Langue"
#: exporter.py:169
msgid "Type"
msgstr ""
msgstr "Type"
#: exporter.py:170
msgid "Code"
msgstr ""
msgstr "Code"
#: exporter.py:214
msgid "Questions"
msgstr ""
msgstr "Questions"
#: exporter.py:242
msgid "Notes"
msgstr ""
msgstr "Notes"
#: exporter.py:264
msgid "Internal Notes"
msgstr ""
msgstr "Notes internes"
#: forms.py:10
msgid "Will be shown as talk title if there's currently no talk running."
@ -169,10 +171,12 @@ msgid "Feature"
msgstr ""
#: templates/pretalx_broadcast_tools/orga.html:21
#: templates/pretalx_broadcast_tools/orga.html:55
msgid "Lower Thirds"
msgstr ""
#: templates/pretalx_broadcast_tools/orga.html:22
#: templates/pretalx_broadcast_tools/orga.html:63
msgid "Room Info"
msgstr ""
@ -227,16 +231,8 @@ msgstr ""
msgid "Settings"
msgstr ""
#: templates/pretalx_broadcast_tools/orga.html:55
msgid "Lower thirds"
msgstr ""
#: templates/pretalx_broadcast_tools/orga.html:63
msgid "Room info"
msgstr ""
#: templates/pretalx_broadcast_tools/orga.html:70
msgid "PDF export"
msgid "PDF Export"
msgstr ""
#: templates/pretalx_broadcast_tools/orga.html:86

View file

@ -110,7 +110,7 @@ body {
}
#broadcast_tools_room_timer_timeleft_timer {
font-size: 20vh;
font-size: 35vh;
}
#broadcast_tools_room_timer_progressbar, #broadcast_tools_room_timer_progressbar_bar {

View file

@ -1,3 +1,10 @@
function _left_zero_pad(i) {
if (i < 10) {
i = "0" + i;
}
return i;
}
function update_room_info() {
room_name = get_room_name();
@ -37,6 +44,7 @@ function update_room_info() {
current_talk = get_current_talk(60);
next_talk = get_next_talk();
now = new Date();
if (current_talk) {
title.innerHTML = current_talk['title'];
@ -45,7 +53,6 @@ function update_room_info() {
scheduledata.innerHTML += ' - ';
scheduledata.innerHTML += format_time_from_pretalx(current_talk['end']);
now = new Date();
scheduled_start = new Date(current_talk['start']);
scheduled_end = new Date(current_talk['end']);
@ -54,15 +61,20 @@ function update_room_info() {
progressbar_bar.style.width = '0';
timehint.innerHTML = '';
} else if (scheduled_end < now) {
timeleft.innerHTML = '0sec';
timeleft.innerHTML = '0:00';
progressbar_bar.style.width = '100vw';
timehint.innerHTML = 'talk has ended';
} else {
diff = scheduled_end - now;
let diff_s = Math.floor(Math.floor(diff / 1000) % 60/10);
let diff_s = Math.floor(diff / 1000) % 60;
let diff_m = Math.floor(diff / 1000 / 60) % 60;
let diff_h = Math.floor(diff / 1000 / 60 / 60);
timeleft.innerHTML = diff_m + 'min ' + diff_s + '0sec';
if (diff_h > 0) {
timeleft.innerHTML = diff_h + ":" + _left_zero_pad(diff_m) + ":" + _left_zero_pad(diff_s);
} else {
timeleft.innerHTML = diff_m + ":" + _left_zero_pad(diff_s);
}
total_time = scheduled_end - scheduled_start;
progressbar_bar.style.width = (((diff/total_time)*100)-100)*-1 + 'vw';
@ -83,9 +95,10 @@ function update_room_info() {
progressbar_bar.style.width = '0';
speaker.innerHTML = 'Break';
timehint.innerHTML = '';
timeleft.innerHTML = '';
title.innerHTML = room_name;
timeleft.innerHTML = _left_zero_pad(now.getHours()) + ":" + _left_zero_pad(now.getMinutes()) + ":" + _left_zero_pad(now.getSeconds());
if (next_talk) {
scheduledata.innerHTML = format_time_from_pretalx(next_talk['start']) + ' ' + next_talk['title'];

View file

@ -52,7 +52,7 @@
<h2>{% translate "Settings" %}</h2>
<fieldset>
<legend>
{% translate "Lower thirds" %}
{% translate "Lower Thirds" %}
</legend>
{{ form.broadcast_tools_lower_thirds_no_talk_info.as_field_group }}
{{ form.broadcast_tools_lower_thirds_info_string.as_field_group }}
@ -60,14 +60,14 @@
</fieldset>
<fieldset>
<legend>
{% translate "Room info" %}
{% translate "Room Info" %}
</legend>
{{ form.broadcast_tools_room_info_lower_content.as_field_group }}
{{ form.broadcast_tools_room_info_show_next_talk.as_field_group }}
</fieldset>
<fieldset>
<legend>
{% translate "PDF export" %}
{% translate "PDF Export" %}
</legend>
{{ form.broadcast_tools_pdf_show_internal_notes.as_field_group }}
{{ form.broadcast_tools_pdf_ignore_do_not_record.as_field_group }}