MDL-73120 mod_h5pactivity: Precisely define the "grade" lang string.
AMOS BEGIN MOV [grade_h5p,mod_h5pactivity],[gradenoun_h5p,mod_h5pactivity] AMOS END
This commit is contained in:
@@ -0,0 +1 @@
|
||||
grade_h5p,mod_h5pactivity
|
||||
@@ -80,7 +80,7 @@ $string['grade_highest_attempt'] = 'Highest grade';
|
||||
$string['grade_average_attempt'] = 'Average grade';
|
||||
$string['grade_last_attempt'] = 'Last attempt';
|
||||
$string['grade_first_attempt'] = 'First attempt';
|
||||
$string['grade_h5p'] = 'Grade: {$a}';
|
||||
$string['gradenoun_h5p'] = 'Grade: {$a}';
|
||||
$string['h5pactivity:addinstance'] = 'Add a new H5P';
|
||||
$string['h5pactivity:reviewattempts'] = 'Review H5P attempts';
|
||||
$string['h5pactivity:submit'] = 'Submit H5P attempts';
|
||||
@@ -148,3 +148,6 @@ $string['usecontentbank'] = 'Use the <a href="{$a}" target="_blank">content bank
|
||||
$string['view'] = 'View';
|
||||
$string['viewattempts'] = 'View attempts ({$a})';
|
||||
$string['view_report'] = 'View report';
|
||||
|
||||
// Deprecated since Moodle 4.4.
|
||||
$string['grade_h5p'] = 'Grade: {$a}';
|
||||
|
||||
@@ -755,7 +755,7 @@ function h5pactivity_print_recent_mod_activity(stdClass $activity, int $courseid
|
||||
'userurl' => new moodle_url('/user/view.php', array('id' => $activity->user->id, 'course' => $courseid)),
|
||||
'fullname' => $activity->user->fullname];
|
||||
if (isset($activity->grade)) {
|
||||
$template['grade'] = get_string('grade_h5p', 'h5pactivity', $activity->grade);
|
||||
$template['grade'] = get_string('gradenoun_h5p', 'h5pactivity', $activity->grade);
|
||||
}
|
||||
|
||||
echo $OUTPUT->render_from_template('mod_h5pactivity/reviewattempts', $template);
|
||||
|
||||
Reference in New Issue
Block a user