mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-21 14:50:06 +02:00
Modify the screen reader messages of some of the keyboard clip commands
As suggested by Robert, add the word clip/clips to make the messages less confusing and noticeably different from the next/prev label messages.
This commit is contained in:
parent
495755b074
commit
ddb8db8dd7
@ -5681,10 +5681,10 @@ void AudacityProject::OnSelectClip(bool next)
|
|||||||
|
|
||||||
message += temp;
|
message += temp;
|
||||||
}
|
}
|
||||||
if (result.waveTrack->GetNumClips() > 1 || nTracksSearched == 1) {
|
temp.Printf(wxT("%d %s %d %s "), result.index + 1, _("of"), result.waveTrack->GetNumClips(),
|
||||||
temp.Printf(wxT("%d %s %d "), result.index + 1, _("of"), result.waveTrack->GetNumClips());
|
result.waveTrack->GetNumClips() == 1 ? _("clip") : _("clips"));
|
||||||
message += temp;
|
message += temp;
|
||||||
}
|
|
||||||
message += wxT(", ");
|
message += wxT(", ");
|
||||||
}
|
}
|
||||||
mTrackPanel->MessageForScreenReader(message);
|
mTrackPanel->MessageForScreenReader(message);
|
||||||
@ -6745,10 +6745,11 @@ wxString AudacityProject::ClipBoundaryMessage(int nTracksSearched, const std::ve
|
|||||||
message += temp;
|
message += temp;
|
||||||
}
|
}
|
||||||
message += (result.clipStart1 ? _("start") : _("end")) + wxT(" ");
|
message += (result.clipStart1 ? _("start") : _("end")) + wxT(" ");
|
||||||
if (result.waveTrack->GetNumClips() > 1 ) {
|
|
||||||
temp.Printf(wxT("%d %s %d "), result.index1 + 1, _("of"), result.waveTrack->GetNumClips());
|
temp.Printf(wxT("%d %s %d %s "), result.index1 + 1, _("of"), result.waveTrack->GetNumClips(),
|
||||||
message += temp;
|
result.waveTrack->GetNumClips() == 1 ? _("clip") : _("clips"));
|
||||||
}
|
message += temp;
|
||||||
|
|
||||||
if (result.nFound == 2) {
|
if (result.nFound == 2) {
|
||||||
temp.Printf(wxT("%s %s %d "), _("and"), result.clipStart2 ? _("start") : _("end"),
|
temp.Printf(wxT("%s %s %d "), _("and"), result.clipStart2 ? _("start") : _("end"),
|
||||||
result.index2 + 1);
|
result.index2 + 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user