mirror of
https://github.com/vector-im/element-call.git
synced 2026-09-22 22:29:30 +00:00
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:
@@ -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",
|
||||
|
||||
@@ -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 = (
|
||||
|
||||
Reference in New Issue
Block a user