mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-02 16:49:41 +02:00
Change message for Punch and Roll when track selection is inappropriate
This commit is contained in:
parent
af62506175
commit
3b11093766
@ -8531,13 +8531,13 @@ void AudacityProject::OnPunchAndRoll(const CommandContext &WXUNUSED(context))
|
||||
if (tracks.empty()) {
|
||||
int recordingChannels =
|
||||
std::max(0L, gPrefs->Read(wxT("/AudioIO/RecordChannels"), 2));
|
||||
auto format = wxPLURAL(
|
||||
"Please select at least %d channel.",
|
||||
"Please select at least %d channels.",
|
||||
recordingChannels
|
||||
);
|
||||
auto message =
|
||||
wxString::Format(format, recordingChannels);
|
||||
(recordingChannels == 1)
|
||||
? _("Please select in a mono track.")
|
||||
: (recordingChannels == 2)
|
||||
? _("Please select in a stereo track.")
|
||||
: wxString::Format(
|
||||
_("Please select at least %d channels."), recordingChannels);
|
||||
AudacityMessageBox(message);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user