diff options
| -rw-r--r-- | share/locales/de_DE.po | 63 | ||||
| -rw-r--r-- | share/locales/en_GB.po | 60 | ||||
| -rw-r--r-- | templates/year_in_review.html.ep | 64 |
3 files changed, 176 insertions, 11 deletions
diff --git a/share/locales/de_DE.po b/share/locales/de_DE.po index 8a51083..5b67c83 100644 --- a/share/locales/de_DE.po +++ b/share/locales/de_DE.po @@ -592,6 +592,69 @@ msgstr "zu spät ab und schlich mit" msgid "review.delay-increasing.post" msgstr " ins Ziel." +msgid "review.high-scores.header" +msgstr "High Scores" + +msgid "review.high-scores.with" +msgstr "mit" + +msgid "review.high-scores.from" +msgstr "von" + +msgid "review.high-scores.to" +msgstr "nach" + +msgid "review.high-scores.longest-trip.link" +msgstr "Längste Fahrt" + +msgid "review.high-scores.longest-trip.pre" +msgstr " " + +msgid "review.high-scores.longest-trip.post" +msgstr "." + +msgid "review.high-scores.farthest-trip-eq-longest.pre" +msgstr "Mit" + +msgid "review.high-scores.farthest-trip-eq-longest.post" +msgstr " war sie gleichzeitig deine weiteste Fahrt." + +msgid "review.high-scores.farthest-trip.link" +msgstr "Größte Entfernung" + +msgid "review.high-scores.farthest-trip.pre" +msgstr " " + +msgid "review.high-scores.farthest-trip.post" +msgstr "." + +msgid "review.high-scores.shortest-trip.link" +msgstr "Kürzeste Fahrt" + +msgid "review.high-scores.shortest-trip.pre" +msgstr " " + +msgid "review.high-scores.shortest-trip.post" +msgstr "." + +msgid "review.high-scores.closest-trip-eq-shortest.pre" +msgstr "Mit" + +msgid "review.high-scores.closest-trip-eq-shortest.post" +msgstr " war sie gleichzeitig dein kleinster Katzensprung." + +msgid "review.high-scores.farthest-trip.link" +msgstr "Größte Entfernung" + +msgid "review.high-scores.closest-trip.link" +msgstr "Kleinster Katzensprung" + +msgid "review.high-scores.closest-trip.pre" +msgstr " " + +msgid "review.high-scores.closest-trip.post" +msgstr "." + # _checked_in.html.ep, _public_status_card.html.ep msgid "status.is-checked-in" diff --git a/share/locales/en_GB.po b/share/locales/en_GB.po index 12a8559..073b3ab 100644 --- a/share/locales/en_GB.po +++ b/share/locales/en_GB.po @@ -592,6 +592,66 @@ msgstr "and increased it to" msgid "review.delay-increasing.post" msgstr " at the destination." +msgid "review.high-scores.header" +msgstr "High Scores" + +msgid "review.high-scores.with" +msgstr "with" + +msgid "review.high-scores.from" +msgstr "from" + +msgid "review.high-scores.to" +msgstr "to" + +msgid "review.high-scores.longest-trip.link" +msgstr "Longest Leg" + +msgid "review.high-scores.longest-trip.pre" +msgstr " " + +msgid "review.high-scores.longest-trip.post" +msgstr "." + +msgid "review.high-scores.farthest-trip-eq-longest.pre" +msgstr "With a distance of" + +msgid "review.high-scores.farthest-trip-eq-longest.post" +msgstr ", it also was your longest leap." + +msgid "review.high-scores.farthest-trip.link" +msgstr "Longest Leap" + +msgid "review.high-scores.farthest-trip.pre" +msgstr " " + +msgid "review.high-scores.farthest-trip.post" +msgstr "." + +msgid "review.high-scores.shortest-trip.link" +msgstr "Tiniest Trip" + +msgid "review.high-scores.shortest-trip.pre" +msgstr " " + +msgid "review.high-scores.shortest-trip.post" +msgstr "." + +msgid "review.high-scores.closest-trip-eq-shortest.pre" +msgstr "With a distance of" + +msgid "review.high-scores.closest-trip-eq-shortest.post" +msgstr ", it was also your closest checkin / checkout couple." + +msgid "review.high-scores.closest-trip.link" +msgstr "Closest Checkout" + +msgid "review.high-scores.closest-trip.pre" +msgstr " " + +msgid "review.high-scores.closest-trip.post" +msgstr "." + # _checked_in.html.ep, _public_status_card.html.ep msgid "status.is-checked-in" diff --git a/templates/year_in_review.html.ep b/templates/year_in_review.html.ep index 2ad3e85..e21fbae 100644 --- a/templates/year_in_review.html.ep +++ b/templates/year_in_review.html.ep @@ -98,28 +98,70 @@ % } </div> <div class="carousel-item" href="#three"> - <h2>High Scores</h2> + <h2><%= L('review.high-scores.header') %></h2> % if ($review->{longest_t_id}) { - <p><a href="/journey/<%= $review->{longest_t_id} %>">Längste Fahrt</a>: - <strong><%= $review->{longest_t_time} %></strong> mit <strong><%= $review->{longest_t_type} %> <%= $review->{longest_t_lineno} %></strong> von <%= $review->{longest_t_from} %> nach <%= $review->{longest_t_to} %>.</p> + <p> + <a href="/journey/<%= $review->{longest_t_id} %>"><%= L('review.high-scores.longest-trip.link') %></a>: + %= L('review.high-scores.longest-trip.pre') + <strong><%= $review->{longest_t_time} %></strong> + %= L('review.high-scores.with') + <strong><%= $review->{longest_t_type} %> <%= $review->{longest_t_lineno} %></strong> + %= L('review.high-scores.from') + %= $review->{longest_t_from} + %= L('review.high-scores.to') + <%= $review->{longest_t_to} %><%= L('review.high-scores.longest-trip.post') %> + </p> % if ($review->{longest_km_id} == $review->{longest_t_id}) { - <p>Mit <strong><%= $review->{longest_km_km} %> km</strong> war sie gleichzeitig deine weiteste Fahrt.</p> + <p> + %= L('review.high-scores.farthest-trip-eq-longest.pre') + <strong><%= $review->{longest_km_km} %> km</strong><%= L('review.high-scores.farthest-trip-eq-longest.post') %> + </p> % } % } % if ($review->{longest_km_id} and $review->{longest_km_id} != $review->{longest_t_id}) { - <p><a href="/journey/<%= $review->{longest_km_id} %>">Größte Entfernung</a>: - <strong><%= $review->{longest_km_km} %> km</strong> mit <strong><%= $review->{longest_km_type} %> <%= $review->{longest_km_lineno} %></strong> von <%= $review->{longest_km_from} %> nach <%= $review->{longest_km_to} %>.</p> + <p> + <a href="/journey/<%= $review->{longest_km_id} %>"><%= L('review.high-scores.farthest-trip.link') %></a>: + %= L('review.high-scores.farthest-trip.pre') + <strong><%= $review->{longest_km_km} %> km</strong> + %= L('review.high-scores.with') + <strong><%= $review->{longest_km_type} %> <%= $review->{longest_km_lineno} %></strong> + %= L('review.high-scores.from') + %= $review->{longest_km_from} + %= L('review.high-scores.to') + <%= $review->{longest_km_to} %><%= L('review.high-scores.farthest-trip.post') %> + </p> % } % if ($review->{shortest_t_id}) { - <p><a href="/journey/<%= $review->{shortest_t_id} %>">Kürzeste Fahrt</a>: - <strong><%= $review->{shortest_t_time} %></strong> mit <strong><%= $review->{shortest_t_type} %> <%= $review->{shortest_t_lineno} %></strong> von <%= $review->{shortest_t_from} %> nach <%= $review->{shortest_t_to} %>.</p> + <p> + <a href="/journey/<%= $review->{shortest_t_id} %>"><%= L('review.high-scores.shortest-trip.link') %></a>: + %= L('review.high-scores.shortest-trip.pre') + <strong><%= $review->{shortest_t_time} %></strong> + %= L('review.high-scores.with') + <strong><%= $review->{shortest_t_type} %> <%= $review->{shortest_t_lineno} %></strong> + %= L('review.high-scores.from') + <%= $review->{shortest_t_from} %> + %= L('review.high-scores.to') + <%= $review->{shortest_t_to} %><%= L('review.high-scores.shortest-trip.post') %> + </p> % if ($review->{shortest_km_id} == $review->{shortest_t_id}) { - <p>Mit <strong><%= $review->{shortest_km_m} %> m</strong> war sie gleichzeitig dein kleinster Katzensprung.</p> + <p> + %= L('review.high-scores.closest-trip-eq-shortest.pre') + <strong><%= $review->{shortest_km_m} %> m</strong><%= L('review.high-scores.closest-trip-eq-shortest.post') %> + </p> % } % } % if ($review->{shortest_km_id} and $review->{shortest_km_id} != $review->{shortest_t_id}) { - <p><a href="/journey/<%= $review->{shortest_km_id} %>">Kleinster Katzensprung</a>: - <strong><%= $review->{shortest_km_m} %> m</strong> mit <strong><%= $review->{shortest_km_type} %> <%= $review->{shortest_km_lineno} %></strong> von <%= $review->{shortest_km_from} %> nach <%= $review->{shortest_km_to} %>.</p> + <p> + <a href="/journey/<%= $review->{shortest_km_id} %>"><%= L('review.high-scores.closest-trip.link') %></a>: + %= L('review.high-scores.closest-trip.pre') + <strong><%= $review->{shortest_km_m} %> m</strong> + %= L('review.high-scores.with') + <strong><%= $review->{shortest_km_type} %> <%= $review->{shortest_km_lineno} %></strong> + %= L('review.high-scores.from') + <%= $review->{shortest_km_from} %> + %= L('review.high-scores.to') + <%= $review->{shortest_km_to} %><%= L('review.high-scores.closest-trip.post') %> + </p> % } </div> <div class="carousel-item" href="#four"> |
