From 80b83583038aa8a97a3b1e6fd59b8506d3b8dd78 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 22 Jun 2026 10:22:33 +0000 Subject: [PATCH] fix(i18n): include CPU name and thread count as variables in translatable string The CPU row in settings-admin.php previously used a standalone translated "threads" word with the count concatenated outside the string, which doesn't work properly for RTL languages or languages with different word order. Now uses a single translatable string '%1$s (%2$d threads)' with the CPU name as %1$s and thread count as %2$d, allowing translators to reorder components as needed. Assisted-by: GitHub Copilot (claude-sonnet-4.6) Signed-off-by: Daniel Kesselberg --- templates/settings-admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/settings-admin.php b/templates/settings-admin.php index f537eb3a..bedd7ddf 100644 --- a/templates/settings-admin.php +++ b/templates/settings-admin.php @@ -66,7 +66,7 @@ function FormatMegabytes(int $byte): string { t('CPU:')); ?> - getName()) ?> (getThreads() ?> t('threads')); ?>) + t('%1$s (%2$d threads)', [$cpu->getName(), $cpu->getThreads()])) ?> getMemTotal() > 0): ?>