Browse Source

Use attendance lang instead of quiz lang file for export string.

MOODLE_28_STABLE
Dan Marsden 10 years ago
parent
commit
fc53fd5907
  1. 2
      export.php
  2. 2
      export_form.php
  3. 1
      lang/en/attendance.php
  4. 2
      renderables.php

2
export.php

@ -45,7 +45,7 @@ $PAGE->set_title($course->shortname. ": ".$att->name);
$PAGE->set_heading($course->fullname);
$PAGE->set_cacheable(true);
$PAGE->set_button($OUTPUT->update_module_button($cm->id, 'attendance'));
$PAGE->navbar->add(get_string('export', 'quiz'));
$PAGE->navbar->add(get_string('export', 'attendance'));
$formparams = array('course' => $course, 'cm' => $cm, 'modcontext' => $PAGE->context);
$mform = new mod_attendance_export_form($att->url_export(), $formparams);

2
export_form.php

@ -46,7 +46,7 @@ class mod_attendance_export_form extends moodleform {
$cm = $this->_customdata['cm'];
$modcontext = $this->_customdata['modcontext'];
$mform->addElement('header', 'general', get_string('export', 'quiz'));
$mform->addElement('header', 'general', get_string('export', 'attendance'));
$groupmode=groups_get_activity_groupmode($cm, $course);
$groups = groups_get_activity_allowed_groups($cm, $USER->id);

1
lang/en/attendance.php

@ -233,3 +233,4 @@ $string['attendance_already_submitted'] = 'You may not self register attendance
$string['lowgrade'] = 'Low grade';
$string['submitattendance'] = 'Submit attendance';
$string['attendancenotset'] = 'You must set your attendance';
$string['export'] = 'Export';

2
renderables.php

@ -85,7 +85,7 @@ class attendance_tabs implements renderable {
if ($this->att->perm->can_export()) {
$toprow[] = new tabobject(self::TAB_EXPORT, $this->att->url_export()->out(),
get_string('export', 'quiz'));
get_string('export', 'attendance'));
}
if ($this->att->perm->can_change_preferences()) {

Loading…
Cancel
Save