Removed 'exampledata' string
This commit is contained in:
parent
14e480f7e9
commit
a7d372a26a
3 changed files with 2 additions and 9 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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.';
|
||||
|
|
Loading…
Reference in a new issue