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:
1 parent
91c2ceb5b1
commit
fa63871da7
5 files changed
+52
-52
No files matched your search
@@ -10,8 +10,8 @@ use TYPO3\CMS\Dashboard\Widgets\WidgetInterface;
|
||||
|
||||
/**
|
||||
* Dashboard tile: purge and health statistics from the two protocol
|
||||
* tables. History depth = what vitec:ssr-health sampling (scheduler)
|
||||
* and the purge log hold (14 days).
|
||||
* tables. History depth = what vitec:ssr-health sampling (cron, every
|
||||
* 5 minutes) and the purge log hold (14 days).
|
||||
*/
|
||||
final class SsrStatsWidget implements WidgetInterface
|
||||
{
|
||||
@@ -38,15 +38,15 @@ final class SsrStatsWidget implements WidgetInterface
|
||||
$maxCache = $this->scalar('SELECT MAX(cache_mb) FROM tx_vitec_ssrhealthlog WHERE crdate > ' . $d7);
|
||||
|
||||
$rows = [
|
||||
['Purges (24 h / 7 Tage)', $purges24h . ' / ' . $purges7d],
|
||||
['davon Komplett-Purges (7 T.)', (string)$full7d],
|
||||
['Fehlgeschlagene Purges (7 T.)', $failed7d > 0
|
||||
['Purges (24 h / 7 days)', $purges24h . ' / ' . $purges7d],
|
||||
['of which full purges (7 d)', (string)$full7d],
|
||||
['Failed purges (7 d)', $failed7d > 0
|
||||
? '<span class="badge badge-danger">' . $failed7d . '</span>'
|
||||
: '<span class="badge badge-success">0</span>'],
|
||||
['Verfügbarkeit (24 h)', htmlspecialchars($uptime)
|
||||
. ' <small>(' . $ok24h . '/' . $samples24h . ' Messungen)</small>'],
|
||||
['∅ Antwortzeit (24 h)', $avgMs !== null ? $avgMs . ' ms' : '-'],
|
||||
['Max. Cache-Größe (7 T.)', $maxCache !== null ? $maxCache . ' MB' : '-'],
|
||||
['Availability (24 h)', htmlspecialchars($uptime)
|
||||
. ' <small>(' . $ok24h . '/' . $samples24h . ' samples)</small>'],
|
||||
['Avg. response time (24 h)', $avgMs !== null ? $avgMs . ' ms' : '-'],
|
||||
['Max. cache size (7 d)', $maxCache !== null ? $maxCache . ' MB' : '-'],
|
||||
];
|
||||
|
||||
$html = '<table class="table table-striped table-sm"><tbody>';
|
||||
@@ -55,7 +55,7 @@ final class SsrStatsWidget implements WidgetInterface
|
||||
}
|
||||
$html .= '</tbody></table>';
|
||||
if ($samples24h === 0) {
|
||||
$html .= '<p class="text-muted" style="font-size:11px">Noch keine Messwerte: Scheduler-Task für <code>vitec:ssr-health</code> einrichten (z. B. alle 5 Minuten).</p>';
|
||||
$html .= '<p class="text-muted" style="font-size:11px">No samples yet: the cron job for <code>vitec:ssr-health</code> fills this every 5 minutes.</p>';
|
||||
}
|
||||
return $html;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user