mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-09 17:07:43 +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()) {
|
if (tracks.empty()) {
|
||||||
int recordingChannels =
|
int recordingChannels =
|
||||||
std::max(0L, gPrefs->Read(wxT("/AudioIO/RecordChannels"), 2));
|
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 =
|
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);
|
AudacityMessageBox(message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user