Skip to content

Commit

Permalink
Fix Search showing untranslated stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Korbeil committed May 22, 2024
1 parent 04bd877 commit 75686f8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/Discord/Command/SearchCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function callback(Discord $discord): void
continue;
}

$content .= $this->translator->trans('discord.search.row', ['transport_id' => $transport->shortId, 'direction' => Direction::EVENT === $transport->direction ? 'From' : 'To', 'postal_code' => $transport->postalCode, 'hour' => $transport->startAt->format('H\hi'), 'date' => $transport->startAt->format('j F Y'), 'seats_remaining' => $transport->availableSeats(), 'seats_total' => $transport->seats]);
$content .= $this->translator->trans('discord.search.row', ['transport_id' => $transport->shortId, 'direction' => Direction::EVENT === $transport->direction ? $this->translator->trans('enum.from') : $this->translator->trans('enum.to'), 'postal_code' => $transport->postalCode, 'hour' => $transport->startAt->format('H\hi'), 'date' => $transport->startAt->format('j F Y'), 'seats_remaining' => $transport->availableSeats(), 'seats_total' => $transport->seats]);
if ((string) $transport->getDriver()->userId === $interaction->user->id) {
$content .= $this->translator->trans('discord.search.row_driver');
}
Expand Down
2 changes: 2 additions & 0 deletions app/translations/messages+intl-icu.en.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

return [
'enum' => [
'from' => 'From',
'to' => 'To',
'event' => 'To the event',
'event_with_postal_code' => 'from {postal_code} to the event',
'home' => 'To my place',
Expand Down
2 changes: 2 additions & 0 deletions app/translations/messages+intl-icu.fr.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

return [
'enum' => [
'from' => 'Depuis',
'to' => 'Vers',
'event' => 'Vers l’événement',
'event_with_postal_code' => 'depuis {postal_code} vers l’événement',
'home' => 'Vers ma maison',
Expand Down

0 comments on commit 75686f8

Please sign in to comment.