Skip to content

Commit

Permalink
MDL-26628 completion report: Fix hard coded strings in Completion report
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Barnes authored and Sam Hemelryk committed May 3, 2011
1 parent 5f1c825 commit 5227344
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions course/report/completion/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ function csv_quote($value) {
// Try load a aggregation method
$method = $completion->get_aggregation_method($current_group->criteriatype);

$method = $method == 1 ? 'All' : 'Any';
$method = $method == 1 ? get_string('all') : get_string('any');

} else {
$method = '-';
Expand All @@ -406,7 +406,7 @@ function csv_quote($value) {
// Get course aggregation
$method = $completion->get_aggregation_method();

print $method == 1 ? 'All' : 'Any';
print $method == 1 ? get_string('all') : get_string('any');
print '</th>';

print '</tr>';
Expand Down Expand Up @@ -515,7 +515,7 @@ function csv_quote($value) {

// Overall course completion status
print '<th class="criteriaicon">';
print '<img src="'.$OUTPUT->pix_url('i/course').'" class="icon" alt="Course" title="Course Complete" />'; //TODO: localize
print '<img src="'.$OUTPUT->pix_url('i/course').'" class="icon" alt="'.get_string('course').'" title="'.get_string('coursecomplete', 'completion').'" />';
print '</th>';

print '</tr>';
Expand Down Expand Up @@ -634,7 +634,7 @@ function csv_quote($value) {
print '<td class="completion-progresscell">'.
'<a href="'.$CFG->wwwroot.'/course/togglecompletion.php?user='.$user->id.'&amp;course='.$course->id.'&amp;rolec='.$allow_marking_criteria.'&amp;sesskey='.sesskey().'">'.
'<img src="'.$OUTPUT->pix_url('i/completion-manual-'.($is_complete ? 'y' : 'n')).
'" alt="'.$describe.'" class="icon" title="Mark as complete" /></a></td>'; //TODO: localize
'" alt="'.$describe.'" class="icon" title="'.get_string('markcomplete', 'completion').'" /></a></td>';
} else {
print '<td class="completion-progresscell">'.
'<img src="'.$OUTPUT->pix_url('i/'.$completionicon).
Expand Down

0 comments on commit 5227344

Please sign in to comment.