diff --git a/index.php b/index.php index b4d1cb9..1ab05ed 100644 --- a/index.php +++ b/index.php @@ -60,9 +60,9 @@ $table = new html_table(); if ($usesections = course_format_uses_sections($course->format)) { $table->head = array(get_string('sectionname', 'format_'.$course->format), get_string('name'), - get_string('issued', 'customcert')); + get_string('receiveddate', 'customcert')); } else { - $table->head = array(get_string('name'), get_string('issued', 'customcert')); + $table->head = array(get_string('name'), get_string('receiveddate', 'customcert')); } $currentsection = ''; diff --git a/lang/en/customcert.php b/lang/en/customcert.php index 6afcf03..9ba4470 100644 --- a/lang/en/customcert.php +++ b/lang/en/customcert.php @@ -94,7 +94,6 @@ $string['invalidposition'] = 'Please select a positive number for position {$a}. $string['invalidheight'] = 'The height has to be a valid number greater than 0.'; $string['invalidmargin'] = 'The margin has to be a valid number greater than 0.'; $string['invalidwidth'] = 'The width has to be a valid number greater than 0.'; -$string['issued'] = 'Issued'; $string['landscape'] = 'Landscape'; $string['leftmargin'] = 'Left margin'; $string['leftmargin_help'] = 'This is the left margin of the certificate PDF in mm.'; @@ -135,7 +134,7 @@ $string['privacy:metadata:customcert_issues:timecreated'] = 'The time the certif $string['privacy:metadata:customcert_issues:userid'] = 'The ID of the user who was issued the certificate'; $string['rearrangeelements'] = 'Reposition elements'; $string['rearrangeelementsheading'] = 'Drag and drop elements to change where they are positioned on the certificate.'; -$string['receiveddate'] = 'Received date'; +$string['receiveddate'] = 'Awarded on'; $string['refpoint'] = 'Reference point location'; $string['refpoint_help'] = 'The reference point is the location of an element from which its x and y coordinates are determined. It is indicated by the \'+\' that appears in the centre or corners of the element.'; $string['replacetemplate'] = 'Replace'; diff --git a/lib.php b/lib.php index ff7c8db..575814d 100644 --- a/lib.php +++ b/lib.php @@ -181,7 +181,7 @@ function customcert_user_outline($course, $user, $mod, $customcert) { $result = new stdClass(); if ($issue = $DB->get_record('customcert_issues', array('customcertid' => $customcert->id, 'userid' => $user->id))) { - $result->info = get_string('issued', 'customcert'); + $result->info = get_string('receiveddate', 'customcert'); $result->time = $issue->timecreated; } else { $result->info = get_string('notissued', 'customcert'); @@ -205,7 +205,7 @@ function customcert_user_complete($course, $user, $mod, $customcert) { if ($issue = $DB->get_record('customcert_issues', array('customcertid' => $customcert->id, 'userid' => $user->id))) { echo $OUTPUT->box_start(); - echo get_string('issued', 'customcert') . ": "; + echo get_string('receiveddate', 'customcert') . ": "; echo userdate($issue->timecreated); echo $OUTPUT->box_end(); } else { diff --git a/templates/mobile_view_activity_page.mustache b/templates/mobile_view_activity_page.mustache index 008dcfc..5a73343 100644 --- a/templates/mobile_view_activity_page.mustache +++ b/templates/mobile_view_activity_page.mustache @@ -91,6 +91,9 @@ <%/showreport%> <%#hasissues%> + + {{ 'plugin.mod_customcert.receiveddate' | translate }} + <%#issues%> {{ <% timecreated %> | coreToLocaleString }} diff --git a/view.php b/view.php index 2f0736f..408d8d1 100644 --- a/view.php +++ b/view.php @@ -88,7 +88,7 @@ if (empty($action)) { if ($issues = $DB->get_records('customcert_issues', array('userid' => $USER->id, 'customcertid' => $customcert->id))) { $table = new html_table(); $table->class = 'generaltable'; - $table->head = array(get_string('issued', 'customcert')); + $table->head = array(get_string('receiveddate', 'customcert')); $table->align = array('left'); $table->attributes = array('style' => 'width:20%; margin:auto');