diff --git a/lang/en/customcert.php b/lang/en/customcert.php index 917e159..c565358 100644 --- a/lang/en/customcert.php +++ b/lang/en/customcert.php @@ -108,7 +108,7 @@ $string['invalidwidth'] = 'The width has to be a valid number greater than 0.'; $string['landscape'] = 'Landscape'; $string['leftmargin'] = 'Left margin'; $string['leftmargin_help'] = 'This is the left margin of the certificate PDF in mm.'; -$string['listofissues'] = 'Recipients'; +$string['listofissues'] = 'Recipients: {$a}'; $string['load'] = 'Load'; $string['loadtemplate'] = 'Load template'; $string['loadtemplatemsg'] = 'Are you sure you wish to load this template? This will remove any existing pages and elements for this certificate.'; diff --git a/view.php b/view.php index 0f94c9f..05de96e 100644 --- a/view.php +++ b/view.php @@ -147,7 +147,8 @@ if (!$downloadown && !$downloadissue) { echo $issuehtml; echo $downloadbutton; if (isset($reporttable)) { - echo $OUTPUT->heading(get_string('listofissues', 'customcert'), 3); + $numissues = \mod_customcert\certificate::get_number_of_issues($customcert->id, $cm, $groupmode); + echo $OUTPUT->heading(get_string('listofissues', 'customcert', $numissues), 3); groups_print_activity_menu($cm, $pageurl); echo $reporttable->out($perpage, false); }