From a5d51f2478917a4021378ea7254478be63745e12 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Fri, 8 May 2020 15:56:01 +0200 Subject: [PATCH] Removed 'exampledata' string --- element/date/classes/element.php | 7 +------ element/grade/classes/element.php | 3 +-- lang/en/customcert.php | 1 - 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/element/date/classes/element.php b/element/date/classes/element.php index 701e313..7a95412 100644 --- a/element/date/classes/element.php +++ b/element/date/classes/element.php @@ -198,12 +198,7 @@ class element extends \mod_customcert\element { // Ensure that a date has been set. if (!empty($date)) { - $date = $this->get_date_format_string($date, $dateformat); - // If we are previewing, we want to let the user know it's an example date so they don't get confused. - if ($preview) { - $date = get_string('exampledata', 'customcert', 'date') . ' ' . $date; - } - \mod_customcert\element_helper::render_content($pdf, $this, $date); + \mod_customcert\element_helper::render_content($pdf, $this, $this->get_date_format_string($date, $dateformat)); } } diff --git a/element/grade/classes/element.php b/element/grade/classes/element.php index 4eb4454..9dd6f28 100644 --- a/element/grade/classes/element.php +++ b/element/grade/classes/element.php @@ -107,8 +107,7 @@ class element extends \mod_customcert\element { // If we are previewing this certificate then just show a demonstration grade. if ($preview) { $courseitem = \grade_item::fetch_course_item($courseid); - $grade = grade_format_gradevalue('100', $courseitem, true, $gradeinfo->gradeformat); - $grade = get_string('exampledata', 'customcert', 'grade') . ' ' . $grade; + $grade = grade_format_gradevalue('100', $courseitem, true, $gradeinfo->gradeformat);; } else { if ($gradeitem == CUSTOMCERT_GRADE_COURSE) { $grade = \mod_customcert\element_helper::get_course_grade_info( diff --git a/lang/en/customcert.php b/lang/en/customcert.php index a7bfd10..c5f7a08 100644 --- a/lang/en/customcert.php +++ b/lang/en/customcert.php @@ -88,7 +88,6 @@ $string['emailteachers'] = 'Email teachers'; $string['emailteachers_help'] = 'If set this will email the teachers a copy of the certificate when it becomes available.'; $string['emailothers'] = 'Email others'; $string['emailothers_help'] = 'If set this will email the email addresses listed here (separated by a comma) with a copy of the certificate when it becomes available.'; -$string['exampledata'] = 'Example {$a}:'; $string['exampledatawarning'] = 'Some of these values may just be an example to ensure positioning of the elements is possible.'; $string['font'] = 'Font'; $string['font_help'] = 'The font used when generating this element.';