Merge pull request 'Rotate scale comments by reading time' (#39) from feature/comment-auto-interval into main
CI / Deploy / test (push) Successful in 57s
CI / Deploy / deploy (push) Successful in 7s

Reviewed-on: #39
This commit was merged in pull request #39.
This commit is contained in:
gnilebein committed 2026-11-09 14:11:23 +01:00
commit db22863608
6 files changed
+68 -25

No files matched your search

+7 -1
View File
@@ -176,11 +176,17 @@ $optionsError = $slide->getError('options_text');
'type' => 'select',
'options' => array_combine(
\App\Model\Entity\Slide::COMMENT_INTERVALS,
array_map(fn(int $s) => __n('{0} Sekunde', '{0} Sekunden', $s, $s), \App\Model\Entity\Slide::COMMENT_INTERVALS),
array_map(
fn(int $s) => $s === \App\Model\Entity\Slide::COMMENT_INTERVAL_AUTO
? __('automatisch (je nach Länge des Kommentars)')
: __n('{0} Sekunde', '{0} Sekunden', $s, $s),
\App\Model\Entity\Slide::COMMENT_INTERVALS,
),
),
'label' => __('Nächster Kommentar nach'),
'value' => $settings['comment_interval'],
]) ?>
<p class="hint"><?= __('„Automatisch“ lässt jedem Kommentar so viel Zeit, wie man zum Lesen braucht: kurze stehen etwa 5 Sekunden, lange bis zu 30 Sekunden.') ?></p>
<?= $this->Form->control('settings.comment_ratings', [
'type' => 'checkbox',
'label' => __('Bewertung beim Kommentar in der Präsentation anzeigen'),