Skip to content

Commit 098f532

Browse files
Copilotbackportbot[bot]
authored andcommitted
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 <mail@danielkesselberg.de>
1 parent 2d486f4 commit 098f532

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/settings-admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function FormatMegabytes(int $byte): string {
6767
</tr>
6868
<tr>
6969
<td><?php p($l->t('CPU:')); ?></td>
70-
<td class="info"><?php p($cpu->getName()) ?></strong> (<?= $cpu->getThreads() ?> <?php p($l->t('threads')); ?>)</td>
70+
<td class="info"><?php p($l->t('%1$s (%2$d threads)', [$cpu->getName(), $cpu->getThreads()])) ?></td>
7171
</tr>
7272
<?php if ($memory->getMemTotal() > 0): ?>
7373
<tr>

0 commit comments

Comments
 (0)