From 098f532a0a094fe881e3bbdfd312e7a3f074635c 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 0f9ad3e8..a9bce872 100644 --- a/templates/settings-admin.php +++ b/templates/settings-admin.php @@ -67,7 +67,7 @@ function FormatMegabytes(int $byte): string { t('CPU:')); ?> - getName()) ?> (getThreads() ?> t('threads')); ?>) + t('%1$s (%2$d threads)', [$cpu->getName(), $cpu->getThreads()])) ?> getMemTotal() > 0): ?>