From 3b11093766505633cd2b93ebb3d450c40a351b4b Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Wed, 20 Jun 2018 22:53:47 -0400 Subject: [PATCH] Change message for Punch and Roll when track selection is inappropriate --- src/Menus.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Menus.cpp b/src/Menus.cpp index 667b5ffa4..d4a937076 100644 --- a/src/Menus.cpp +++ b/src/Menus.cpp @@ -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; }