mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-07 07:39:29 +02:00
Keyboard commands for clip boundaries: change to screen reader message
Change to message when clips are next to each other.
This commit is contained in:
parent
aaed921fd3
commit
a4f1c2cb9f
@ -7235,11 +7235,8 @@ wxString AudacityProject::ClipBoundaryMessage(const std::vector<FoundClipBoundar
|
||||
wxString message;
|
||||
for (auto& result : results) {
|
||||
wxString temp;
|
||||
|
||||
message += (result.clipStart1 ? _("start") : _("end")) + wxT(" ");
|
||||
|
||||
temp.Printf(wxT("%d %s %d %s "), result.index1 + 1, _("of"), result.waveTrack->GetNumClips(),
|
||||
result.waveTrack->GetNumClips() == 1 ? _("clip") : _("clips"));
|
||||
temp.Printf(wxT("%s %d "), result.clipStart1 ? _("start") : _("end"), result.index1 + 1);
|
||||
message += temp;
|
||||
|
||||
if (result.nFound == 2) {
|
||||
@ -7248,6 +7245,10 @@ wxString AudacityProject::ClipBoundaryMessage(const std::vector<FoundClipBoundar
|
||||
message += temp;
|
||||
}
|
||||
|
||||
temp.Printf(wxT("%s %d %s "), _("of"), result.waveTrack->GetNumClips(),
|
||||
result.waveTrack->GetNumClips() == 1 ? _("clip") : _("clips"));
|
||||
message += temp;
|
||||
|
||||
if (result.waveTrack->GetName() == result.waveTrack->GetDefaultName())
|
||||
temp.Printf(wxT("%s %d "), _("Track"), result.trackNumber);
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user