]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-17153: Completion system - minor text change for accessibility
authorsam_marshall <sam_marshall>
Thu, 6 Nov 2008 17:29:07 +0000 (17:29 +0000)
committersam_marshall <sam_marshall>
Thu, 6 Nov 2008 17:29:07 +0000 (17:29 +0000)
course/report/progress/index.php

index c464da60814f2f9bd82654cc91b00d0a9ee591d3..7661b81390d711abe1ebd70466d8b221a0ad73c0 100644 (file)
@@ -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>';
         }
     }