Skip to content

Commit

Permalink
Make certain wordings translatable
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com>
  • Loading branch information
Jerome-Herbinet committed May 24, 2024
1 parent e3e5d29 commit 4ac9ab1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/Service/Appointments/MailService.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ public function sendConfirmationEmail(Booking $booking, AppointmentConfig $confi
$bookingUrl = $this->urlGenerator->linkToRouteAbsolute('calendar.booking.confirmBooking', ['token' => $booking->getToken()]);
$template->addBodyButton($this->l10n->t('Confirm'), $bookingUrl);

$template->addBodyListItem($user->getDisplayName(), 'Appointment with:');
$template->addBodyListItem($user->getDisplayName(), $l10n->t('Appointment with:'));

Check failure on line 127 in lib/Service/Appointments/MailService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable29

UndefinedVariable

lib/Service/Appointments/MailService.php:127:55: UndefinedVariable: Cannot find referenced variable $l10n (see https://psalm.dev/024)

Check failure on line 127 in lib/Service/Appointments/MailService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable28

UndefinedVariable

lib/Service/Appointments/MailService.php:127:55: UndefinedVariable: Cannot find referenced variable $l10n (see https://psalm.dev/024)

Check failure on line 127 in lib/Service/Appointments/MailService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-master

UndefinedVariable

lib/Service/Appointments/MailService.php:127:55: UndefinedVariable: Cannot find referenced variable $l10n (see https://psalm.dev/024)

Check failure on line 127 in lib/Service/Appointments/MailService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable27

UndefinedVariable

lib/Service/Appointments/MailService.php:127:55: UndefinedVariable: Cannot find referenced variable $l10n (see https://psalm.dev/024)
if (!empty($config->getDescription())) {
$template->addBodyListItem($config->getDescription(), 'Description:');
$template->addBodyListItem($config->getDescription(), $l10n->t('Description:'));

Check failure on line 129 in lib/Service/Appointments/MailService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable29

UndefinedVariable

lib/Service/Appointments/MailService.php:129:58: UndefinedVariable: Cannot find referenced variable $l10n (see https://psalm.dev/024)

Check failure on line 129 in lib/Service/Appointments/MailService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable28

UndefinedVariable

lib/Service/Appointments/MailService.php:129:58: UndefinedVariable: Cannot find referenced variable $l10n (see https://psalm.dev/024)

Check failure on line 129 in lib/Service/Appointments/MailService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-master

UndefinedVariable

lib/Service/Appointments/MailService.php:129:58: UndefinedVariable: Cannot find referenced variable $l10n (see https://psalm.dev/024)

Check failure on line 129 in lib/Service/Appointments/MailService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable27

UndefinedVariable

lib/Service/Appointments/MailService.php:129:58: UndefinedVariable: Cannot find referenced variable $l10n (see https://psalm.dev/024)
}

// Create Booking overview
Expand Down Expand Up @@ -194,9 +194,9 @@ public function sendBookingInformationEmail(Booking $booking, AppointmentConfig
$summary = $this->l10n->t('Dear %s, your booking has been accepted.', [$booking->getDisplayName()]);
$template->addHeading($summary);

$template->addBodyListItem($user->getDisplayName(), 'Appointment with:');
$template->addBodyListItem($user->getDisplayName(), $l10n->t('Appointment with:'));

Check failure on line 197 in lib/Service/Appointments/MailService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable29

UndefinedVariable

lib/Service/Appointments/MailService.php:197:55: UndefinedVariable: Cannot find referenced variable $l10n (see https://psalm.dev/024)

Check failure on line 197 in lib/Service/Appointments/MailService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable28

UndefinedVariable

lib/Service/Appointments/MailService.php:197:55: UndefinedVariable: Cannot find referenced variable $l10n (see https://psalm.dev/024)

Check failure on line 197 in lib/Service/Appointments/MailService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-master

UndefinedVariable

lib/Service/Appointments/MailService.php:197:55: UndefinedVariable: Cannot find referenced variable $l10n (see https://psalm.dev/024)

Check failure on line 197 in lib/Service/Appointments/MailService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable27

UndefinedVariable

lib/Service/Appointments/MailService.php:197:55: UndefinedVariable: Cannot find referenced variable $l10n (see https://psalm.dev/024)
if (!empty($config->getDescription())) {
$template->addBodyListItem($config->getDescription(), 'Description:');
$template->addBodyListItem($config->getDescription(), $l10n->t('Description:'));

Check failure on line 199 in lib/Service/Appointments/MailService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable29

UndefinedVariable

lib/Service/Appointments/MailService.php:199:58: UndefinedVariable: Cannot find referenced variable $l10n (see https://psalm.dev/024)

Check failure on line 199 in lib/Service/Appointments/MailService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable28

UndefinedVariable

lib/Service/Appointments/MailService.php:199:58: UndefinedVariable: Cannot find referenced variable $l10n (see https://psalm.dev/024)

Check failure on line 199 in lib/Service/Appointments/MailService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-master

UndefinedVariable

lib/Service/Appointments/MailService.php:199:58: UndefinedVariable: Cannot find referenced variable $l10n (see https://psalm.dev/024)

Check failure on line 199 in lib/Service/Appointments/MailService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable27

UndefinedVariable

lib/Service/Appointments/MailService.php:199:58: UndefinedVariable: Cannot find referenced variable $l10n (see https://psalm.dev/024)
}

// Create Booking overview
Expand Down Expand Up @@ -303,9 +303,9 @@ public function sendOrganizerBookingInformationEmail(Booking $booking, Appointme
$summary = $this->l10n->t('Dear %s, %s (%s) booked an appointment with you.', [$user->getDisplayName(), $booking->getDisplayName(), $booking->getEmail()]);
$template->addHeading($summary);

$template->addBodyListItem($booking->getDisplayName() . ' (' . $booking->getEmail() . ')', 'Appointment with:');
$template->addBodyListItem($booking->getDisplayName() . ' (' . $booking->getEmail() . ')', $l10n->t('Appointment with:'));

Check failure on line 306 in lib/Service/Appointments/MailService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable29

UndefinedVariable

lib/Service/Appointments/MailService.php:306:94: UndefinedVariable: Cannot find referenced variable $l10n (see https://psalm.dev/024)

Check failure on line 306 in lib/Service/Appointments/MailService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable28

UndefinedVariable

lib/Service/Appointments/MailService.php:306:94: UndefinedVariable: Cannot find referenced variable $l10n (see https://psalm.dev/024)

Check failure on line 306 in lib/Service/Appointments/MailService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-master

UndefinedVariable

lib/Service/Appointments/MailService.php:306:94: UndefinedVariable: Cannot find referenced variable $l10n (see https://psalm.dev/024)

Check failure on line 306 in lib/Service/Appointments/MailService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable27

UndefinedVariable

lib/Service/Appointments/MailService.php:306:94: UndefinedVariable: Cannot find referenced variable $l10n (see https://psalm.dev/024)
if (!empty($config->getDescription())) {
$template->addBodyListItem($config->getDescription(), 'Description:');
$template->addBodyListItem($config->getDescription(), $l10n->t('Description:'));

Check failure on line 308 in lib/Service/Appointments/MailService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable29

UndefinedVariable

lib/Service/Appointments/MailService.php:308:58: UndefinedVariable: Cannot find referenced variable $l10n (see https://psalm.dev/024)

Check failure on line 308 in lib/Service/Appointments/MailService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable28

UndefinedVariable

lib/Service/Appointments/MailService.php:308:58: UndefinedVariable: Cannot find referenced variable $l10n (see https://psalm.dev/024)

Check failure on line 308 in lib/Service/Appointments/MailService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-master

UndefinedVariable

lib/Service/Appointments/MailService.php:308:58: UndefinedVariable: Cannot find referenced variable $l10n (see https://psalm.dev/024)

Check failure on line 308 in lib/Service/Appointments/MailService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable27

UndefinedVariable

lib/Service/Appointments/MailService.php:308:58: UndefinedVariable: Cannot find referenced variable $l10n (see https://psalm.dev/024)
}

// Create Booking overview
Expand Down

0 comments on commit 4ac9ab1

Please sign in to comment.