From 67d756f3bd167003907c8357126630dd7c1a3cfa Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 18 Jul 2025 19:53:56 +0200 Subject: more translations --- templates/_checked_in.html.ep | 8 ++++---- templates/landingpage.html.ep | 4 ++-- templates/language.html.ep | 36 ++++++++++++++++++++++++++++++++++++ templates/login.html.ep | 10 ++++++---- templates/register.html.ep | 18 +++++++++--------- 5 files changed, 57 insertions(+), 19 deletions(-) create mode 100644 templates/language.html.ep (limited to 'templates') diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index e1cefe6..c798393 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -32,13 +32,13 @@ % } % elsif (defined $journey->{arrival_countdown}) { % if ($journey->{arrival_countdown} > 60) { - Ankunft in <%= journeys->min_to_human(int($journey->{arrival_countdown} / 60)) %> + <%= L('status.arrival-in') %> <%= journeys->min_to_human(int($journey->{arrival_countdown} / 60)) %> % } % elsif ($journey->{arrival_countdown} > 0) { - Ankunft in weniger als einer Minute + %= L('status.arrival-soon') % } % else { - Ziel erreicht + %= L('status.arrived') % } % if ($journey->{arrival_countdown} < (60 * 15) and $journey->{arr_platform}) { % if ($journey->{arr_direction} and $journey->{arr_direction} eq 'r') { @@ -311,7 +311,7 @@ data-url="<%= url_for('/status')->to_abs->scheme('https') %>/<%= $user->{name} %>/<%= $journey->{sched_departure}->epoch %>?token=<%= $journey->{dep_eva} %>-<%= $journey->{timestamp}->epoch % 337 %>" % } > - Teilen + <%= L('status.share') %> % } % else { diff --git a/templates/landingpage.html.ep b/templates/landingpage.html.ep index 5ca0e9e..9c2ccde 100644 --- a/templates/landingpage.html.ep +++ b/templates/landingpage.html.ep @@ -144,9 +144,9 @@
% if (not app->config->{registration}{disabled}) { - Registrieren + <%= L('button.register') %> % } - Anmelden + <%= L('button.login') %>
diff --git a/templates/language.html.ep b/templates/language.html.ep new file mode 100644 index 0000000..75df054 --- /dev/null +++ b/templates/language.html.ep @@ -0,0 +1,36 @@ +

Sprache

+%= form_for '/account/language' => (method => 'POST') => begin + %= csrf_field +
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+%= end diff --git a/templates/login.html.ep b/templates/login.html.ep index 3a9cc1f..21f14d3 100644 --- a/templates/login.html.ep +++ b/templates/login.html.ep @@ -75,7 +75,9 @@
- Mit der Anmeldung stimmst du den Nutzungsbedingungen zu. + %= L('login.accept-tos-pre') + <%= L('login.tos') %> + %= L('login.accept-tos-post')
@@ -83,7 +85,7 @@
@@ -95,7 +97,7 @@
- Passwort vergessen + %= L('login.forgot-password')
@@ -104,7 +106,7 @@ % if (app->config->{registration}{disabled}) {
- Diese Instanz erlaubt derzeit keine Registrierung neuer Accounts + <%= L('login.registration-disabled') %>
% } diff --git a/templates/register.html.ep b/templates/register.html.ep index f9a486a..e7064da 100644 --- a/templates/register.html.ep +++ b/templates/register.html.ep @@ -8,27 +8,29 @@
account_circle %= text_field 'user', id => 'account', class => 'validate', required => undef, pattern => '[0-9a-zA-Z_-]+', maxlength => 60, autocomplete => 'username' - +
email %= email_field 'email', id => 'email', class => 'validate', required => undef, maxlength => 250 - +
lock %= password_field 'password', id => 'password', class => 'validate', required => undef, minlength => 8, maxlength => 10000, autocomplete => 'new-password' - +
lock %= password_field 'password2', id => 'password2', class => 'validate', required => undef, minlength => 8, maxlength => 10000, autocomplete => 'new-password' - +
- Mit deiner Registrierung stimmst du den Nutzungsbedingungen zu. + %= L('register.accept-tos-pre') + <%= L('register.tos') %> + %= L('register.accept-tos-post')
@@ -36,7 +38,7 @@
@@ -47,9 +49,7 @@

- Nach der Registrierung wird ein für 48 Stunden gültiger - Bestätigungslink an die angegebene Mail-Adresse geschickt. Eine - Anmeldung ist erst nach Bestätigung der Mail-Adresse möglich. + %= L('register.expect-confirmation-link')

Die Mail-Adresse wird ausschließlich zur Bestätigung der Anmeldung, -- cgit v1.2.3