diff options
-rw-r--r-- | share/locales/de_DE.po | 21 | ||||
-rw-r--r-- | share/locales/en_GB.po | 21 | ||||
-rw-r--r-- | templates/account.html.ep | 14 |
3 files changed, 49 insertions, 7 deletions
diff --git a/share/locales/de_DE.po b/share/locales/de_DE.po index fa650c3..b670f58 100644 --- a/share/locales/de_DE.po +++ b/share/locales/de_DE.po @@ -113,6 +113,27 @@ msgstr "Vorschläge deaktiviert" msgid "account.visibility" msgstr "Sichtbarkeit" +msgid "account.webhook" +msgstr "Webhook" + +msgid "account.webhook.disabled" +msgstr "Nicht eingerichtet" + +msgid "account.webhook.active_pending" +msgstr "Aktiv, noch nicht ausgeführt" + +msgid "account.webhook.active_error" +msgstr "Aktiv, fehlerhaft" + +msgid "account.webhook.active" +msgstr "Aktiv" + +msgid "account.traewelling.unsupported" +msgstr "Wird wegen Inkompatibilität zwischen bahn.de und transitous derzeit nicht unterstützt" + +msgid "account.registration_date" +msgstr "Registriert am" + msgid "account.interaction" msgstr "Interaktion" diff --git a/share/locales/en_GB.po b/share/locales/en_GB.po index c853d03..9795762 100644 --- a/share/locales/en_GB.po +++ b/share/locales/en_GB.po @@ -113,6 +113,27 @@ msgstr "Suggestions disabled" msgid "account.visibility" msgstr "Visibility" +msgid "account.webhook" +msgstr "Webhook" + +msgid "account.webhook.disabled" +msgstr "No webhook was configured" + +msgid "account.webhook.active_pending" +msgstr "Active and Pending" + +msgid "account.webhook.active_error" +msgstr "Active with Error" + +msgid "account.webhook.active" +msgstr "Active" + +msgid "account.traewelling.unsupported" +msgstr "Unsupported due to incompatibility with bahn.de and transitous" + +msgid "account.registration_date" +msgstr "Registered on" + msgid "account.interaction" msgstr "Interaction" diff --git a/templates/account.html.ep b/templates/account.html.ep index 837f219..36ed0bc 100644 --- a/templates/account.html.ep +++ b/templates/account.html.ep @@ -109,20 +109,20 @@ </td> </tr> <tr> - <th scope="row">Web Hook</th> + <th scope="row"><%= L('account.webhook') %></th> <td> <a href="/account/hooks"><i class="material-icons">edit</i></a> % if (not $hook->{enabled}) { - <span style="color: #999999;">Nicht eingerichtet</span> + <span style="color: #999999;"><%= L('account.webhook.disabled') %></span> % } % elsif ($hook->{latest_run}->epoch == 0) { - Aktiv, noch nicht ausgeführt + <%= L('account.webhook.active_pending') %> % } % elsif ($hook->{errored}) { - Aktiv, fehlerhaft <i class="material-icons" aria-hidden="true">error</i> + <%= L('account.webhook.active_error') %> <i class="material-icons" aria-hidden="true">error</i> % } % else { - Aktiv + <%= L('account.webhook.active') %> % } </td> </tr> @@ -130,7 +130,7 @@ <tr> <th scope="row">Träwelling</th> <td> - Wird wegen Inkompatibilität zwischen bahn.de und transitous derzeit nicht unterstützt + <%= L('account.traewelling.unsupported') %> <!-- <a href="/account/traewelling"><i class="material-icons">edit</i></a> % if (not ($traewelling->{token})) { @@ -159,8 +159,8 @@ </tr> % } <tr> - <th scope="row">Registriert am</th> <td><%= $acc->{registered_at}->strftime('%d.%m.%Y %H:%M') %></td> + <th scope="row"><%= L('account.registration_date') %></th> </tr> </table> </div> |