From 8ef4fbbaf55c8a46dc3f00be8f93249f45479b9b Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Tue, 22 Jul 2025 19:37:11 +0200 Subject: localization: use pre-/postfix for boarding, arrival, departure See #278 --- templates/_checked_in.html.ep | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'templates/_checked_in.html.ep') diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index d107919..69754e3 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -19,20 +19,20 @@ data-dest="<%= $journey->{arr_name} %>" > % if ($journey->{boarding_countdown} > 60) { - <%= L('status.boarding-in') %> <%= journeys->min_to_human(int($journey->{boarding_countdown} / 60)) %>
+ <%= L('status.boarding-in.pre') %> <%= journeys->min_to_human(int($journey->{boarding_countdown} / 60)) %> <%= L('status.boarding-in.post') %>
% } % elsif ($journey->{boarding_countdown} > 0) { <%= L('status.boarding-soon') %>
% } % if ($journey->{departure_countdown} > 60) { - <%= L('status.departure-in') %> <%= journeys->min_to_human(int($journey->{departure_countdown} / 60)) %> + <%= L('status.departure-in.pre') %> <%= journeys->min_to_human(int($journey->{departure_countdown} / 60)) %> <%= L('status.departure-in.post') %> % } % elsif ($journey->{departure_countdown} > 0) { %= L('status.departure-soon') % } % elsif (defined $journey->{arrival_countdown}) { % if ($journey->{arrival_countdown} > 60) { - <%= L('status.arrival-in') %> <%= journeys->min_to_human(int($journey->{arrival_countdown} / 60)) %> + <%= L('status.arrival-in.pre') %> <%= journeys->min_to_human(int($journey->{arrival_countdown} / 60)) %> <%= L('status.arrival-in.post') %> % } % elsif ($journey->{arrival_countdown} > 0) { %= L('status.arrival-soon') @@ -48,7 +48,7 @@
◀ <%= $journey->{platform_type} %> <%= $journey->{arr_platform} %> % } % else { -
<%= L('status.arrive-on') %> <%= $journey->{platform_type} %> <%= $journey->{arr_platform} %> +
<%= L('status.arrive-on.pre') %> <%= $journey->{platform_type} %> <%= $journey->{arr_platform} %> <%= L('status.arrive-on.post') %> % } % } % } @@ -63,7 +63,7 @@
◀ <%= $journey->{platform_type} %> <%= $journey->{dep_platform} %> % } % else { -
<%= L('status.depart-from') %> <%= $journey->{platform_type} %> <%= $journey->{dep_platform} %> +
<%= L('status.depart-from.pre') %> <%= $journey->{platform_type} %> <%= $journey->{dep_platform} %> <%= L('status.depart-from.post') %> % } % } % if (my $wr = $journey->{wagonorder}) { -- cgit v1.2.3