feat: update wording

This commit is contained in:
fromme committed 2026-09-17 17:56:52 +02:00
1 parent 5e5bf00f8f
commit 84724879c7
10 files changed
+19 -19

No files matched your search

+1 -1
View File
@@ -143,7 +143,7 @@ final class CreateController extends AbstractController
private function flashSeriesResult(SeriesResult $result, Resource $resource): void
{
if ($result->isCompletelyBlocked()) {
$this->addFlash('warning', \sprintf('%s ist an keinem Tag der Serie frei.', $resource->getLabel()));
$this->addFlash('warning', \sprintf('%s ist an keinem der Tage frei.', $resource->getLabel()));
return;
}
+2 -2
View File
@@ -59,8 +59,8 @@ final class EndController extends AbstractController
$removed = $this->manager->endSeries($series, new \DateTimeImmutable('today'));
$this->addFlash('success', $onBehalf
? \sprintf('Serie von %s beendet, %d Termine entfernt.', $series->getUser()->getName(), $removed)
: \sprintf('Serie beendet, %d Termine entfernt.', $removed));
? \sprintf('Wiederholung von %s beendet, %d Termine entfernt.', $series->getUser()->getName(), $removed)
: \sprintf('Wiederholung beendet, %d Termine entfernt.', $removed));
// A series is only ever ended from a list, so this always navigates.
return $this->htmxRedirect($request, $this->generateUrl($this->returnRoute($request) ?? 'app_booking'));
+3 -3
View File
@@ -99,19 +99,19 @@ final class BookingRequest
}
if (null === $this->until) {
$context->buildViolation('Bitte ein Enddatum für die Serie angeben.')->atPath('until')->addViolation();
$context->buildViolation('Bitte angeben, bis wann wiederholt wird.')->atPath('until')->addViolation();
return;
}
if (null !== $this->date && $this->until < $this->date) {
$context->buildViolation('Das Serienende muss nach dem Beginn liegen.')->atPath('until')->addViolation();
$context->buildViolation('Das Ende muss nach dem Beginn liegen.')->atPath('until')->addViolation();
return;
}
if (!$this->unlimitedHorizon && $this->until > BookingHorizon::latest()) {
$context->buildViolation(\sprintf('Eine Serie darf höchstens %d Monate in die Zukunft laufen.', BookingHorizon::MONTHS))
$context->buildViolation(\sprintf('Eine Wiederholung darf höchstens %d Monate in die Zukunft laufen.', BookingHorizon::MONTHS))
->atPath('until')
->addViolation();
}
+1 -1
View File
@@ -57,7 +57,7 @@ final class BookingType extends AbstractType
'choice_label' => static fn (RecurrenceRule $rule): string => $rule->label(),
])
->add('until', DateType::class, [
'label' => 'Serie bis',
'label' => 'Wiederholen bis',
'widget' => 'single_text',
'input' => 'datetime_immutable',
'required' => false,