1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-03 00:59:43 +02:00

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.

This commit is contained in:
David Bailes 2015-06-06 13:14:34 +01:00
parent df9481b3d9
commit a96c719c54

View File

@ -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() )
{