From a96c719c549fd306b18173b7ea04ee2e140196e0 Mon Sep 17 00:00:00 2001 From: David Bailes Date: Sat, 6 Jun 2015 13:14:34 +0100 Subject: [PATCH] Addition to the accessibility names of tracks, suggested by Robert Hanggi. If the track is a Label, Time or Note track, then this information is added after the track name. --- src/TrackPanelAx.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/TrackPanelAx.cpp b/src/TrackPanelAx.cpp index 6fbb0cfb5..f87bbb591 100644 --- a/src/TrackPanelAx.cpp +++ b/src/TrackPanelAx.cpp @@ -304,6 +304,25 @@ wxAccStatus TrackPanelAx::GetName( int childId, wxString* name ) name->Printf(_("Track %d"), TrackNum( t ) ); } + if (t->GetKind() == Track::Label) + { + /* i18n-hint: This is for screen reader software and indicates that + this is a Label track.*/ + name->Append( wxT(" ") + wxString(_("Label Track"))); + } + else if (t->GetKind() == Track::Time) + { + /* i18n-hint: This is for screen reader software and indicates that + this is a Time track.*/ + name->Append( wxT(" ") + wxString(_("Time Track"))); + } + else if (t->GetKind() == Track::Note) + { + /* i18n-hint: This is for screen reader software and indicates that + this is a Note track.*/ + name->Append( wxT(" ") + wxString(_("Note Track"))); + } + // LLL: Remove these during "refactor" if( t->GetMute() ) {