From 5597fa622b26908b8cb811a1c6b892f2170d8504 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Mon, 21 Jul 2025 18:33:25 +0200 Subject: Localize journeys.html.ep and translate it to en-GB --- share/locales/de_DE.po | 65 +++++++++++++++++++++++++++++++++++++++++++++++ share/locales/en_GB.po | 65 +++++++++++++++++++++++++++++++++++++++++++++++ templates/journey.html.ep | 43 ++++++++++++++++--------------- 3 files changed, 152 insertions(+), 21 deletions(-) diff --git a/share/locales/de_DE.po b/share/locales/de_DE.po index fcaa913..576054a 100644 --- a/share/locales/de_DE.po +++ b/share/locales/de_DE.po @@ -39,6 +39,9 @@ msgstr "dunkel" msgid "footer.colour-scheme.auto" msgstr "automatisch" +msgid "header.error" +msgstr "Fehler" + # # Templates # @@ -131,6 +134,68 @@ msgstr "offene Anfragen" msgid "account.interaction.disabled" msgstr "Accounts können dir nicht folgen" +# journey.html.ep + +msgid "journey.not-found" +msgstr "Fahrt nicht gefunden." + +#, short +msgid "journey.trip" +msgstr "Fahrt" + +#, short +msgid "journey.from" +msgstr "Von" + +#, short +msgid "journey.to" +msgstr "Nach" + +#, short +msgid "journey.departure" +msgstr "Abfahrt" + +#, short +msgid "journey.arrival" +msgstr "Ankunft" + +#, short +msgid "journey.distance" +msgstr "Strecke" + +#, short +msgid "journey.speed" +msgstr "Tempo" + +#, short +msgid "journey.operator" +msgstr "Betrieb" + +#, short +msgid "journey.messages" +msgstr "Melungen" + +#, short +msgid "journey.comment" +msgstr "Kommentar" + +#, short +msgid "journey.carriages" +msgstr "Rollmaterial" + +#, short +msgid "journey.route" +msgstr "Route" + +msgid "journey.share" +msgstr "Teilen" + +msgid "journey.edit" +msgstr "Bearbeiten" + +msgid "journey.delete" +msgstr "Löschen" + # landingpage.html.ep msgid "landingpage.greeting-prefix" diff --git a/share/locales/en_GB.po b/share/locales/en_GB.po index e9d5cbb..96ec5f9 100644 --- a/share/locales/en_GB.po +++ b/share/locales/en_GB.po @@ -39,6 +39,9 @@ msgstr "dark" msgid "footer.colour-scheme.auto" msgstr "auto" +msgid "header.error" +msgstr "Fehler" + # # Templates # @@ -131,6 +134,68 @@ msgstr "open requests" msgid "account.interaction.disabled" msgstr "Accounts cannot follow you" +# journey.html.ep + +msgid "journey.not-found" +msgstr "Trip not found." + +#, short +msgid "journey.trip" +msgstr "Trip" + +#, short +msgid "journey.from" +msgstr "From" + +#, short +msgid "journey.to" +msgstr "To" + +#, short +msgid "journey.departure" +msgstr "Departure" + +#, short +msgid "journey.arrival" +msgstr "Arrival" + +#, short +msgid "journey.distance" +msgstr "Distance" + +#, short +msgid "journey.speed" +msgstr "Speed" + +#, short +msgid "journey.operator" +msgstr "Operator" + +#, short +msgid "journey.messages" +msgstr "Messages" + +#, short +msgid "journey.comment" +msgstr "Comment" + +#, short +msgid "journey.carriages" +msgstr "Carriages" + +#, short +msgid "journey.route" +msgstr "Route" + +msgid "journey.share" +msgstr "Share" + +msgid "journey.edit" +msgstr "Edit" + +msgid "journey.delete" +msgstr "Delete" + # landingpage.html.ep msgid "landingpage.greeting-prefix" diff --git a/templates/journey.html.ep b/templates/journey.html.ep index 31f9e94..17552e9 100644 --- a/templates/journey.html.ep +++ b/templates/journey.html.ep @@ -3,8 +3,8 @@
- Fehler -

Fahrt nicht gefunden.

+ <%= L('header.error') %> +

<%= L('journey.not-found') %>

@@ -57,7 +57,7 @@ % } - + - + - + - + - + - + - + % if ($journey->{user_data}{operator} or scalar @{ $journey->{user_data}{operators} // [] }) { - + @@ -198,7 +198,7 @@ % } % if ($journey->{messages} and @{$journey->{messages}}) { - + - + - + @@ -227,7 +227,7 @@ % } % if ($journey->{user_data} and $journey->{user_data}{wagongroups} and not exists $journey->{user_data}{wagons}) { - + @@ -235,7 +235,7 @@ % } % elsif ($journey->{user_data} and $journey->{user_data}{wagons}) { - + % } - +
Fahrt<%= L('journey.trip') %> <%= $journey->{type} %> <%= $journey->{no} %> % if ($journey->{line}) { @@ -66,7 +66,7 @@
Von<%= L('journey.from') %> %= $journey->{from_name} % if ($journey->{from_platform} and $journey->{to_platform}) { @@ -78,7 +78,7 @@
Nach<%= L('journey.to') %> <%= $journey->{to_name} %> % if ($journey->{from_platform} and $journey->{to_platform}) { @@ -90,7 +90,7 @@
Abfahrt<%= L('journey.departure') %> % if ($journey->{cancelled}) { cancel @@ -115,7 +115,7 @@
Ankunft<%= L('journey.arrival') %> % if ($journey->{cancelled}) { cancel @@ -145,7 +145,7 @@
Strecke<%= L('journey.distance') %> % if ($journey->{skip_route}) { location_off @@ -167,7 +167,7 @@
Tempo<%= L('journey.speed') %> % if ($journey->{skip_route}) { location_off @@ -190,7 +190,7 @@
Betrieb<%= L('journey.operator') %> %= $journey->{user_data}{operator} // join(q{, }, @{$journey->{user_data}{operators}})
Meldungen<%= L('journey.messages') %> % for my $message (@{$journey->{messages} // []}) { % my ($ts, $msg) = @{$message}; @@ -209,7 +209,7 @@ % } % if ($journey->{user_data}{him_msg} and @{$journey->{user_data}{him_msg}}) {
Meldungen<%= L('journey.messages') %> % for my $message (@{$journey->{user_data}{him_msg} // []}) { <%= ($message->{prio} and $message->{prio} eq 'HOCH') ? 'warning' : 'info' %> <%= $message->{header} %> <%= $message->{lead} %>
@@ -219,7 +219,7 @@ % } % if ($journey->{user_data} and $journey->{user_data}{comment}) {
Kommentar<%= L('journey.comment') %> <%= $journey->{user_data}{comment} %>
Rollmaterial<%= L('journey.carriages') %> %= include '_wagons', wagongroups => $journey->{user_data}{wagongroups};
Rollmaterial<%= L('journey.carriages') %> % for my $wagongroup (@{$journey->{user_data}{wagongroups} // []}) { Wagenverbund <%= $wagongroup %>
@@ -252,7 +252,7 @@
Route<%= L('journey.route') %> % my $before = 1; % my $within = 0; @@ -329,7 +329,8 @@ % } data-text="<%= stash('share_text') %>" > - Teilen + + %= L('journey.share') @@ -341,7 +342,7 @@ data-checkin="<%= $journey->{checkin}->epoch %>" data-checkout="<%= $journey->{checkout}->epoch %>"> delete_forever - Löschen + %= L('journey.delete')
@@ -349,7 +350,7 @@ %= hidden_field 'journey_id' => param('journey_id') %= end
@@ -360,7 +361,7 @@ %= hidden_field 'journey_id' => param('journey_id') %= end @@ -370,7 +371,7 @@ data-checkin="<%= $journey->{checkin}->epoch %>" data-checkout="<%= $journey->{checkout}->epoch %>"> - Löschen + %= L('journey.delete') -- cgit v1.2.3