Interpolate the default output's name rather than concatenating it

The menu built the label for a default output by joining a translated
"Default" to the device name, which leaves a translator no say over word
order, spacing or the brackets.

It now interpolates a string of its own. Not `default_named`, whose
markup styles the parenthetical for the settings dialog: a menu item's
label is plain text.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
fkwp
2026-09-11 11:03:47 +02:00
co-authored by Claude Opus 5
parent 5728d42076
commit 888d663325
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -227,6 +227,7 @@
"change_device_button": "Change audio device",
"default": "Default",
"default_named": "Default <2>({{name}})</2>",
"default_named_plain": "Default ({{name}})",
"handset": "Handset",
"loudspeaker": "Loudspeaker",
"microphone": "Microphone",
+1 -1
View File
@@ -374,7 +374,7 @@ function SpeakerSection({
case "default":
return label.name === null
? t("settings.devices.default")
: `${t("settings.devices.default")} (${label.name})`;
: t("settings.devices.default_named_plain", { name: label.name });
}
};
const icon = (