Skip to content

Commit

Permalink
MDL-71941 mod_lesson: Deprecate 'Grade' string
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaboesch committed Nov 2, 2023
1 parent 628cb13 commit 2c9d117
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions mod/lesson/lang/en/deprecated.txt
@@ -1 +1,2 @@
completiontimespent,mod_lesson
grade,mod_lesson
4 changes: 3 additions & 1 deletion mod/lesson/lang/en/lesson.php
Expand Up @@ -247,7 +247,6 @@
$string['full'] = 'Expanded';
$string['general'] = 'General';
$string['gotoendoflesson'] = 'Go to the end of the lesson';
$string['grade'] = 'Grade';
$string['gradebetterthan'] = 'Grade better than (%)';
$string['gradebetterthanerror'] = 'Earn a grade better than {$a} percent';
$string['graded'] = 'Graded';
Expand Down Expand Up @@ -614,3 +613,6 @@

// Deprecated since 4.3.
$string['completiontimespent'] = 'Student must do this activity at least for';

// Deprecated since Moodle 4.4.
$string['grade'] = 'Grade';
2 changes: 1 addition & 1 deletion mod/lesson/report.php
Expand Up @@ -314,7 +314,7 @@
$table->data[] = array(get_string("timetaken", "lesson").":", format_time($userstats->timetotake));
$table->data[] = array(get_string("completed", "lesson").":", userdate($userstats->completed));
$table->data[] = array(get_string('rawgrade', 'lesson').':', $userstats->gradeinfo->earned.'/'.$userstats->gradeinfo->total);
$table->data[] = array(get_string("grade", "lesson").":", $userstats->grade."%");
$table->data[] = array(get_string("gradenoun").":", $userstats->grade."%");
}
echo html_writer::table($table);

Expand Down

0 comments on commit 2c9d117

Please sign in to comment.