mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
MDL-17153: Completion system - minor text change for accessibility
This commit is contained in:
parent
cb45180991
commit
dbb8902e51
@ -229,17 +229,18 @@ foreach($progress->users as $user) {
|
||||
}
|
||||
|
||||
// Work out how it corresponds to an icon
|
||||
$completiontype=
|
||||
($activity->completion==COMPLETION_TRACKING_AUTOMATIC ? 'auto' : 'manual').
|
||||
'-';
|
||||
switch($state) {
|
||||
case COMPLETION_INCOMPLETE : $completiontype.='n'; break;
|
||||
case COMPLETION_COMPLETE : $completiontype.='y'; break;
|
||||
case COMPLETION_COMPLETE_PASS : $completiontype.='pass'; break;
|
||||
case COMPLETION_COMPLETE_FAIL : $completiontype.='fail'; break;
|
||||
case COMPLETION_INCOMPLETE : $completiontype='n'; break;
|
||||
case COMPLETION_COMPLETE : $completiontype='y'; break;
|
||||
case COMPLETION_COMPLETE_PASS : $completiontype='pass'; break;
|
||||
case COMPLETION_COMPLETE_FAIL : $completiontype='fail'; break;
|
||||
}
|
||||
|
||||
$describe=get_string('completion-alt-'.$completiontype,'completion');
|
||||
$completionicon='completion-'.
|
||||
($activity->completion==COMPLETION_TRACKING_AUTOMATIC ? 'auto' : 'manual').
|
||||
'-'.$completiontype;
|
||||
|
||||
$describe=get_string('completion-alt-auto-'.$completiontype,'completion');
|
||||
$a=new StdClass;
|
||||
$a->state=$describe;
|
||||
$a->date=$date;
|
||||
@ -251,7 +252,7 @@ foreach($progress->users as $user) {
|
||||
print $sep.csv_quote($describe).$sep.csv_quote($date);
|
||||
} else {
|
||||
print '<td class="completion-progresscell '.$activity->datepassedclass.'">'.
|
||||
'<img src="'.$CFG->pixpath.'/i/completion-'.$completiontype.
|
||||
'<img src="'.$CFG->pixpath.'/i/'.$completionicon.
|
||||
'.gif" alt="'.$describe.'" title="'.$fulldescribe.'" /></td>';
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user