mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-09 06:06:24 +01:00
Substitute, don't concatenate, when composing localized strings...
... Avoid English syntax bias.
This commit is contained in:
@@ -286,8 +286,14 @@ void MixerToolBar::SetToolTips()
|
||||
}
|
||||
|
||||
if (mOutputSlider->IsEnabled()) {
|
||||
mOutputSlider->SetToolTipTemplate(wxString::Format(
|
||||
_("Playback Volume: %%.2f%s"), gAudioIO->OutputMixerEmulated() ? _(" (emulated)") : wxT("")));
|
||||
wxString format;
|
||||
if (gAudioIO->OutputMixerEmulated())
|
||||
format = _("Playback Volume: %s (emulated)");
|
||||
else
|
||||
format = _("Playback Volume: %s");
|
||||
|
||||
mOutputSlider->SetToolTipTemplate(
|
||||
wxString::Format( format, "%.2f" ) );
|
||||
}
|
||||
else {
|
||||
mOutputSlider->SetToolTipTemplate(_("Playback Volume (Unavailable; use system mixer.)"));
|
||||
|
||||
Reference in New Issue
Block a user