$str = get_strings(array('enrolmentplugins', 'configuration', 'users', 'administration'));
/// Get some language strings
-$strassignusers = get_string('assignusers', 'role');
$strpotentialusers = get_string('potentialusers', 'role');
$strexistingusers = get_string('existingusers', 'role');
$straction = get_string('assignroles', 'role');
/// Get some language strings
- $strassignusers = get_string('assignusers', 'role');
$strpotentialusers = get_string('potentialusers', 'role');
$strexistingusers = get_string('existingusers', 'role');
$straction = get_string('assignroles', 'role');
/// Get some language strings
$strroletooverride = get_string('roletooverride', 'role');
- $stroverrideusers = get_string('overrideusers', 'role');
$straction = get_string('overrideroles', 'role');
$strcurrentrole = get_string('currentrole', 'role');
$strparticipants = get_string('participants');
} else {
- error(get_string('invaludsection','admin'));
+ error(get_string('invalidsection','admin'));
die;
}
$mform->addElement('file', 'attachment', get_string('attachment', 'forum'));
$mform->addElement('select', 'publishstate', get_string('publishto', 'blog'), blog_applicable_publish_states());
- $mform->setHelpButton('publishstate', array('publish_state', get_string('helppublish', 'blog'), 'blog'));
+ $mform->setHelpButton('publishstate', array('publish_state', get_string('publishto', 'blog'), 'blog'));
if (!empty($CFG->usetags)) {
}
}
$mform->addElement('select', 'scaleid', get_string('scale'), $options);
- $mform->setHelpButton('scaleid', array(false, get_string('scaleid', 'grades'),
+ $mform->setHelpButton('scaleid', array(false, get_string('scale'),
false, true, false, get_string('scaleidhelp', 'grades', get_string('gradeitem', 'grades'))));
$mform->disabledIf('scaleid', 'gradetype', 'noteq', GRADE_TYPE_SCALE);
if (array_key_exists('gradetype', $data) and $data['gradetype'] == GRADE_TYPE_SCALE) {
if (empty($data['scaleid'])) {
- $errors['scaleid'] = get_String('missingscale', 'grades');
+ $errors['scaleid'] = get_string('missingscale', 'grades');
}
}
if (array_key_exists('grademin', $data) and array_key_exists('grademax', $data)) {
if ($data['grademax'] == $data['grademin'] or $data['grademax'] < $data['grademin']) {
- $errors['grademin'] = get_String('incorrectminmax', 'grades');
- $errors['grademax'] = get_String('incorrectminmax', 'grades');
+ $errors['grademin'] = get_string('incorrectminmax', 'grades');
+ $errors['grademax'] = get_string('incorrectminmax', 'grades');
}
}
}
}
$mform->addElement('select', 'outcomeid', get_string('outcome', 'grades'), $options);
- $mform->setHelpButton('outcomeid', array(false, get_string('outcomeid', 'grades'),
+ $mform->setHelpButton('outcomeid', array(false, get_string('outcome', 'grades'),
false, true, false, get_string('outcomeidhelp', 'grades')));
$mform->addRule('outcomeid', get_string('required'), 'required');
break;
}
- // check if user exist and convert idnember to user id
+ // check if user exist and convert idnumber to user id
if (!$user = get_record('user', 'idnumber', addslashes($result['#']['student'][0]['#']))) {
// no user found, abort
$status = false;
- $error = get_string('baduserid', 'grades');
+ $error = get_string('baduser', 'grades');
break;
}
$string['paymentthanks'] = 'Thank you for your payment! You are now enrolled in your course:<br />\"$a\"';
$string['people'] = 'People';
$string['periodending'] = 'Period ending ($a)';
+$string['personal'] = 'Personal';
$string['personalprofile'] = 'Personal profile';
$string['pictureof'] = 'Picture of $a';
$string['phone'] = 'Phone';
}
$strblank = get_string('blank', 'data');
- $strnofields = get_string('nofields', 'data');
$strcontinue = get_string('continue');
$strwarning = get_string('mappingwarning', 'data');
$strfieldmappings = get_string('fieldmappings', 'data');
$strnew = get_string('new');
- $strold = get_string('old');
$sesskey = sesskey();
}
$strblank = get_string('blank', 'data');
- $strnofields = get_string('nofields', 'data');
$strcontinue = get_string('continue');
$strwarning = get_string('mappingwarning', 'data');
$strfieldmappings = get_string('fieldmappings', 'data');
$strnew = get_string('new');
- $strold = get_string('old');
$sesskey = sesskey();
if ($mode != 'csstemplate' and $mode != 'jstemplate') {
// Add all the available fields for this data.
echo '<label for="availabletags">'.get_string('availabletags','data').'</label>';
- helpbutton('tags', get_string('tags','data'), 'data');
+ helpbutton('tags', get_string('tags'), 'data');
echo '<br />';
//we want the form to display them if they are set.
if ($typevalue[0]=='news'){
$type->addOption(get_string('namenews', 'forum'), 'news');
- $type->setHelpButton(array('forumtypenews', get_string('forumtypenews', 'forum'), 'forum'));
+ $type->setHelpButton(array('forumtypenews', get_string('forumtype', 'forum'), 'forum'));
$type->freeze();
$type->setPersistantFreeze(true);
}
} else { // subscribe
if ($forum->forcesubscribe == FORUM_DISALLOWSUBSCRIBE &&
!has_capability('mod/forum:managesubscriptions', $context)) {
- error(get_string('disallowsubscribe'),$_SERVER["HTTP_REFERER"]);
+ error(get_string('disallowsubscribe', 'forum'),$_SERVER["HTTP_REFERER"]);
}
if (!has_capability('mod/forum:viewdiscussion', $context)) {
error("Could not subscribe you to that forum", $_SERVER["HTTP_REFERER"]);
}
$mform->addElement('select', 'maxanswers', get_string('maximumnumberofanswersbranches', 'lesson'), $numbers);
$mform->setDefault('maxanswers', 4);
- $mform->setHelpButton('maxanswers', array('maxanswers', get_string('displayformat', 'lesson'), 'lesson'));
+ $mform->setHelpButton('maxanswers', array('maxanswers', get_string('maximumnumberofanswersbranches', 'lesson'), 'lesson'));
//-------------------------------------------------------------------------------
$mform->addElement('header', '', get_string('gradeoptions', 'lesson'));
}
$mform->addElement('select', 'grade', get_string('maximumgrade'), $grades);
$mform->setDefault('grade', 0);
- $mform->setHelpButton('grade', array('grade', get_string('maximumgrade', 'lesson'), 'lesson'));
+ $mform->setHelpButton('grade', array('grade', get_string('maximumgrade'), 'lesson'));
$mform->addElement('selectyesno', 'retake', get_string('canretake', 'lesson', $COURSE->student));
$mform->setHelpButton('retake', array('retake', get_string('canretake', 'lesson', $COURSE->student), 'lesson'));
}
}
$mform->addElement('select', 'dependency', get_string('dependencyon', 'lesson'), $options);
- $mform->setHelpButton('dependency', array('dependency', get_string('dependency', 'lesson'), 'lesson'));
+ $mform->setHelpButton('dependency', array('dependency', get_string('dependencyon', 'lesson'), 'lesson'));
$mform->setDefault('dependency', 0);
$mform->addElement('text', 'timespent', get_string('timespentminutes', 'lesson'));
$perpage[0] = get_string('allinone', 'quiz');
choose_from_menu($perpage, 'questionsperpage', $form->questionsperpage, '');
- helpbutton('questionsperpage', get_string('questionsperpage'), 'quiz');
+ helpbutton('questionsperpage', get_string('questionsperpage', 'quiz'), 'quiz');
?>
</td>
<td align="center">
echo ' onchange="getElementById(\'showbreaks\').submit(); return true;" />';
print_string('reordertool', 'quiz');
echo ' ';
- helpbutton('reorderingtool', get_string('reorderingtool', 'quiz'), 'quiz');
+ helpbutton('reorderingtool', get_string('reordertool', 'quiz'), 'quiz');
echo '<div class="quizquestionlistcontrols"><input type="submit" name="repaginate" value="'. get_string('go') .'" /></div>';
echo '</fieldset>';
function display($quiz, $cm, $course) { /// This function just displays the report
global $CFG, $SESSION, $QTYPES;
- $strnoquiz = get_string('noquiz','quiz');
$strnoattempts = get_string('noattempts','quiz');
/// Only print headers if not asked to download data
$download = optional_param('download', NULL);
/// Print the page header
$strquizzes = get_string('modulenameplural', 'quiz');
- $strreviewquestion = get_string('reviewquestion', 'quiz');
print_header();
$maxstr=get_string('max', 'quiz');
$rangeofvaluestr=get_string('minmax','qtype_datasetdependent');
$questionusingstr = get_string('usedinquestion','qtype_calculated');
- $wildcardstr = get_string('wildcard', 'qtype_calculated');
$itemscountstr = get_string('itemscount','qtype_datasetdependent');
$text ='';
if (!empty($form->category)) {