SSR control center: English UI strings throughout

Widgets, backend module template and flash messages now match the rest of the backend, which is English.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
orascheandClaude Fable 5 committed 2026-11-09 21:03:40 +01:00
1 parent 91c2ceb5b1
commit fa63871da7
5 files changed
+52 -52

No files matched your search

@@ -37,24 +37,24 @@ final class SsrStatusWidget implements WidgetInterface
};
$rows = [];
$rows[] = ['SSR-Auslieferung', $badge($flagOn, 'AN - Seiten kommen vom VPS', 'AUS - SPA wie bisher')];
$rows[] = ['SSR delivery', $badge($flagOn, 'ON - pages served from the VPS', 'OFF - SPA as before')];
if ($health === null) {
$rows[] = ['SSR-Server', '<span class="badge badge-danger">NICHT ERREICHBAR</span>'];
$rows[] = ['SSR server', '<span class="badge badge-danger">NOT REACHABLE</span>'];
} else {
$rows[] = ['SSR-Server', $badge((bool)($health['ok'] ?? false), 'läuft (' . (int)$health['responseMs'] . ' ms)', 'meldet Fehler')];
$rows[] = ['SSR server', $badge((bool)($health['ok'] ?? false), 'running (' . (int)$health['responseMs'] . ' ms)', 'reports errors')];
$rows[] = ['Release', htmlspecialchars((string)($health['release']['release'] ?? '?'))
. ' <small>(Commit ' . htmlspecialchars((string)($health['release']['commit'] ?? '?'))
. ', gebaut ' . htmlspecialchars($this->fmtDate((string)($health['release']['builtAt'] ?? ''))) . ')</small>'];
$rows[] = ['Seiten-Cache', (int)($health['cachedPages'] ?? 0) . ' Seiten / ' . (int)($health['cacheMB'] ?? 0) . ' MB'];
. ' <small>(commit ' . htmlspecialchars((string)($health['release']['commit'] ?? '?'))
. ', built ' . htmlspecialchars($this->fmtDate((string)($health['release']['builtAt'] ?? ''))) . ')</small>'];
$rows[] = ['Page cache', (int)($health['cachedPages'] ?? 0) . ' pages / ' . (int)($health['cacheMB'] ?? 0) . ' MB'];
}
if ($lastPurge !== null) {
$rows[] = ['Letzter Purge', htmlspecialchars(date('d.m. H:i', (int)$lastPurge['crdate']))
$rows[] = ['Last purge', htmlspecialchars(date('m-d H:i', (int)$lastPurge['crdate']))
. ' <small>(' . htmlspecialchars((string)$lastPurge['trigger_source']) . ', '
. ($lastPurge['success'] ? 'ok' : 'FEHLER') . ', '
. ($lastPurge['success'] ? 'ok' : 'FAILED') . ', '
. htmlspecialchars(mb_strimwidth((string)$lastPurge['paths'], 0, 60, '…')) . ')</small>'];
}
if (!$this->purgeService->isConfigured()) {
$rows[] = ['Auto-Purge', '<span class="badge badge-warning">nicht konfiguriert (var/vitec-ssr-purge.env fehlt)</span>'];
$rows[] = ['Auto purge', '<span class="badge badge-warning">not configured (var/vitec-ssr-purge.env missing)</span>'];
}
$html = '<table class="table table-striped table-sm"><tbody>';
@@ -62,7 +62,7 @@ final class SsrStatusWidget implements WidgetInterface
$html .= '<tr><th style="width:38%">' . htmlspecialchars($label) . '</th><td>' . $value . '</td></tr>';
}
$html .= '</tbody></table>';
$html .= '<p class="text-muted" style="font-size:11px">Schalter: Site Management &rsaquo; Settings &rsaquo; VITEC. Modul "VITEC SSR" für Purge &amp; Protokoll.</p>';
$html .= '<p class="text-muted" style="font-size:11px">Switch: Site Management &rsaquo; Settings &rsaquo; VITEC. Module "VITEC SSR" for purge &amp; protocol.</p>';
return $html;
}
@@ -112,6 +112,6 @@ final class SsrStatusWidget implements WidgetInterface
private function fmtDate(string $iso): string
{
$ts = strtotime($iso);
return $ts ? date('d.m.Y H:i', $ts) : '?';
return $ts ? date('Y-m-d H:i', $ts) : '?';
}
}