summaryrefslogtreecommitdiff
path: root/templates/account.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/account.html.ep')
-rw-r--r--templates/account.html.ep89
1 files changed, 48 insertions, 41 deletions
diff --git a/templates/account.html.ep b/templates/account.html.ep
index e4bf38d..17f708f 100644
--- a/templates/account.html.ep
+++ b/templates/account.html.ep
@@ -8,31 +8,34 @@
<div class="card success-color">
<div class="card-content white-text">
% if ($success eq 'name') {
- <span class="card-title">Name geändert</span>
+ <span class="card-title"><%= L('account.changed-name') %></span>
% }
% elsif ($success eq 'mail') {
- <span class="card-title">Mail-Adresse geändert</span>
+ <span class="card-title"><%= L('account.changed-mail') %></span>
% }
% elsif ($success eq 'password') {
- <span class="card-title">Passwort geändert</span>
+ <span class="card-title"><%= L('account.changed-password') %></span>
+ % }
+ % elsif ($success eq 'language') {
+ <span class="card-title"><%= L('account.changed-language') %></span>
% }
% elsif ($success eq 'privacy') {
- <span class="card-title">Einstellungen zu öffentlichen Account-Daten geändert</span>
+ <span class="card-title"><%= L('account.changed-privacy') %></span>
% }
% elsif ($success eq 'social') {
- <span class="card-title">Einstellungen zur Interaktionen mit anderen Accounts geändert</span>
+ <span class="card-title"><%= L('account.changed-social') %></span>
% }
% elsif ($success eq 'traewelling') {
- <span class="card-title">Träwelling-Verknüpfung aktualisiert</span>
+ <span class="card-title"><%= L('account.changed-traewelling') %></span>
% }
% elsif ($success eq 'use_history') {
- <span class="card-title">Einstellungen zu vorgeschlagenen Verbindungen geändert</span>
+ <span class="card-title"><%= L('account.changed-history') %></span>
% }
% elsif ($success eq 'webhook') {
- <span class="card-title">Web Hook aktualisiert</span>
+ <span class="card-title"><%= L('account.changed-webhook') %></span>
% }
% elsif ($success eq 'clear_notifications') {
- <span class="card-title">Benachrichtigungen gelesen</span>
+ <span class="card-title"><%= L('account.cleared-notifications') %></span>
% }
</div>
</div>
@@ -46,34 +49,38 @@
% my $use_history = users->use_history(uid => $acc->{id});
<div class="row">
<div class="col s12">
- <h2>Account</h2>
+ <h2><%= L('account.account') %></h2>
<table class="striped">
<tr>
- <th scope="row">Name</th>
+ <th scope="row"><%= L('account.name') %></th>
<td><a href="/account/name"><i class="material-icons">edit</i></a><%= $acc->{name} %></td>
</tr>
<tr>
- <th scope="row">Mail</th>
+ <th scope="row"><%= L('account.mail') %></th>
<td><a href="/account/mail"><i class="material-icons">edit</i></a><%= $acc->{email} %></td>
</tr>
<tr>
- <th scope="row">Passwort</th>
+ <th scope="row"><%= L('account.password') %></th>
<td><a href="/account/password"><i class="material-icons">edit</i></a></td>
</tr>
<tr>
- <th scope="row">Verbindungen</th>
+ <th scope="row"><%= L('account.language') %></th>
+ <td><a href="/account/language"><i class="material-icons">edit</i></a><%= $acc->{languages}[0] // q{} %></td>
+ </tr>
+ <tr>
+ <th scope="row"><%= L('account.connections') %></th>
<td>
<a href="/account/insight"><i class="material-icons">edit</i></a>
% if ($use_history & 0x03) {
- Vorschläge aktiv
+ %= L('account.connections.enabled')
% }
% else {
- <span style="color: #999999;">Vorschläge deaktiviert</span>
+ <span style="color: #999999;"><%= L('account.connections.disabled') %></span>
% }
</td>
</tr>
<tr>
- <th scope="row">Sichtbarkeit</th>
+ <th scope="row"><%= L('account.visibility') %></th>
<td>
<a href="/account/privacy"><i class="material-icons">edit</i></a>
<i class="material-icons">check</i><i class="material-icons"><%= visibility_icon($acc->{default_visibility_str}) %></i>
@@ -81,41 +88,41 @@
</td>
</tr>
<tr>
- <th scope="row">Interaktion</th>
+ <th scope="row"><%= L('account.interaction') %></th>
<td>
<a href="/account/social"><i class="material-icons">edit</i></a>
% if ($acc->{accept_follows}) {
- <span>Accounts können dir direkt folgen</span>
+ <span><%= L('account.interaction.accept-follows') %></span>
% }
% elsif ($acc->{accept_follow_requests}) {
- <span>Accounts können dir auf Anfrage folgen
+ <span><%= L('account.interaction.accept-follow-requests') %>
% if ($num_rx_follow_requests == 1) {
- – <a href="/account/social/follow-requests-received"><strong>eine</strong> offene Anfrage</a>
+ – <a href="/account/social/follow-requests-received"><strong><%= L('account.interaction.one') %></strong> <%= L('account.interaction.open-request') %></a>
% } elsif ($num_rx_follow_requests) {
- – <a href="/account/social/follow-requests-received"><strong><%= $num_rx_follow_requests %></strong> offene Anfragen</a>
+ – <a href="/account/social/follow-requests-received"><strong><%= $num_rx_follow_requests %></strong> <%= L('account.interaction.open-requests') %></a>
% }
</span>
% }
% else {
- <span style="color: #999999;">Accounts können dir nicht folgen</span>
+ <span style="color: #999999;"><%= L('account.interaction.disabled') %></span>
% }
</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>
@@ -123,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})) {
@@ -152,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>
+ <td><%= $acc->{registered_at}->strftime(L('strftime.datetime')) %></td>
</tr>
</table>
</div>
@@ -163,7 +170,7 @@
%= form_for 'logout' => begin
%= csrf_field
<button class="btn waves-effect waves-light" type="submit" name="action" value="logout">
- Abmelden
+ %= L('button.logout')
</button>
%= end
</div>
@@ -172,32 +179,32 @@
% if ($num_rx_follow_requests or $num_tx_follow_requests or $num_followers or $num_following or $num_blocked) {
<div class="row">
<div class="col s12">
- <h2>Interaktion</h2>
+ <h2><%= L('account.interaction') %></h2>
<p>
- <a href="/p/<%= $acc->{name} %>">Öffentliches Profil</a>
+ <a href="/p/<%= $acc->{name} %>"><%= L('account.profile') %></a>
</p>
<table class="striped">
<tr>
- <th scope="row">Anfragen</th>
+ <th scope="row"><%= L('account.interaction.requests') %></th>
<td>
% if ($num_rx_follow_requests == 0) {
- <span style="color: #999999;">keine eingehend</span>
+ <span style="color: #999999;"><%= L('account.interaction.requests.incoming.none') %></span>
% }
% elsif ($num_rx_follow_requests == 1) {
- <a href="/account/social/follow-requests-received"><strong>eine</strong> eingehend</a>
+ <a href="/account/social/follow-requests-received"><strong><%= L('account.interaction.one') %></strong> <%= L('account.interaction.requests.incoming.some') %></a>
% }
% else {
- <a href="/account/social/follow-requests-received"><strong><%= $num_rx_follow_requests %></strong> eingehend</a>
+ <a href="/account/social/follow-requests-received"><strong><%= $num_rx_follow_requests %></strong> <%= L('account.interaction.requests.incoming.some') %></a>
% }
<br/>
% if ($num_tx_follow_requests == 0) {
- <span style="color: #999999;">keine ausgehend</span>
+ <span style="color: #999999;"><%= L('account.interaction.requests.outgoing.none') %></span>
% }
% elsif ($num_tx_follow_requests == 1) {
- <a href="/account/social/follow-requests-sent"><strong>eine</strong> ausgehend</a>
+ <a href="/account/social/follow-requests-sent"><strong><%= L('account.interaction.one') %></strong> <%= L('account.interaction.requests.outgoing.some') %></a>
% }
% else {
- <a href="/account/social/follow-requests-sent"><strong><%= $num_tx_follow_requests %></strong> ausgehend</a>
+ <a href="/account/social/follow-requests-sent"><strong><%= $num_tx_follow_requests %></strong> <%= L('account.interaction.requests.outgoing.some') %></a>
% }
</td>
</tr>