Removed 'exampledata' string
This commit is contained in:
parent
cd9cf91769
commit
a5d51f2478
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.
|
// Ensure that a date has been set.
|
||||||
if (!empty($date)) {
|
if (!empty($date)) {
|
||||||
$date = $this->get_date_format_string($date, $dateformat);
|
\mod_customcert\element_helper::render_content($pdf, $this, $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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -107,8 +107,7 @@ class element extends \mod_customcert\element {
|
||||||
// If we are previewing this certificate then just show a demonstration grade.
|
// If we are previewing this certificate then just show a demonstration grade.
|
||||||
if ($preview) {
|
if ($preview) {
|
||||||
$courseitem = \grade_item::fetch_course_item($courseid);
|
$courseitem = \grade_item::fetch_course_item($courseid);
|
||||||
$grade = grade_format_gradevalue('100', $courseitem, true, $gradeinfo->gradeformat);
|
$grade = grade_format_gradevalue('100', $courseitem, true, $gradeinfo->gradeformat);;
|
||||||
$grade = get_string('exampledata', 'customcert', 'grade') . ' ' . $grade;
|
|
||||||
} else {
|
} else {
|
||||||
if ($gradeitem == CUSTOMCERT_GRADE_COURSE) {
|
if ($gradeitem == CUSTOMCERT_GRADE_COURSE) {
|
||||||
$grade = \mod_customcert\element_helper::get_course_grade_info(
|
$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['emailteachers_help'] = 'If set this will email the teachers a copy of the certificate when it becomes available.';
|
||||||
$string['emailothers'] = 'Email others';
|
$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['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['exampledatawarning'] = 'Some of these values may just be an example to ensure positioning of the elements is possible.';
|
||||||
$string['font'] = 'Font';
|
$string['font'] = 'Font';
|
||||||
$string['font_help'] = 'The font used when generating this element.';
|
$string['font_help'] = 'The font used when generating this element.';
|
||||||
|
|
Loading…
Reference in a new issue