$string['movingquestions'] = 'Moving Questions and Any Files';
$string['movingquestionsandfiles']= 'Are you sure you want to move question(s) {$a->questions} to context for <strong>\"{$a->tocontext}\"</strong>?<br /> We have detected <strong>{$a->urlcount} files</strong> linked from these question(s) in {$a->fromareaname}, would you like to copy or move these to {$a->toareaname}?';
$string['movingquestionsnofiles']= 'Are you sure you want to move question(s) {$a->questions} to context for <strong>\"{$a->tocontext}\"</strong>?<br /> There are <strong>no files</strong> linked from these question(s) in {$a->fromareaname}.';
-$string['nocate'] = 'No such category $a!';
$string['needtochoosecat'] = 'You need to choose a category to move this question to or press \'cancel\'.';
+$string['nocate'] = 'No such category $a!';
$string['nopermissionadd'] = 'You don\'t have permission to add questions here.';
$string['noprobs'] = 'No problems found in your question database.';
$string['notenoughdatatoeditaquestion'] = 'Neither a question id, nor a category id and question type, was specified.';
$string['cannotcreatepath'] = 'Path cannot be created ($a)';
$string['cannoteditafterattempts'] = 'You cannot add or remove questions because there are attempts.';
$string['cannotfindprevattempt'] = 'Cannot find previous attempt to build on.';
+$string['cannotfindquestionregard'] = 'Failed to get questions for regrading!';
$string['cannotinsert'] = 'Cannot insert question';
$string['cannotloadtypeinfo'] = 'Unable to load questiontype specific question information';
+$string['cannotloadquestion'] = 'Could not load question options';
$string['cannotopen'] = 'Cannot open export file ($a)';
$string['cannotread'] = 'Cannot read import file (or file is empty)';
$string['cannotrestore'] = 'Could not restore question sessions';
" AND q.id IN ($questionlist)";
if (!$quizquestions = $DB->get_records_sql($sql)) {
- print_error('No questions found');
+ print_error('noquestion', 'quiz');
}
// Load the question type specific information
if (!get_question_options($quizquestions)) {
- print_error('Could not load question options');
+ print_error('cannotloadquestion', 'quiz');
}
// Restore the question sessions to their most recent states
// creating new sessions where required
if (!$states = get_question_states($quizquestions, $quiz, $attempt)) {
- print_error('Could not restore question sessions');
+ print_error('cannotrestore', 'quiz');
}
$numbers = explode(',', $questionlist);
$statsrow = array();
" AND q.id $usql";
if (!$quizquestions = $DB->get_records_sql($sql, $params)) {
- print_error('No questions found');
+ print_error('noquestion', 'quiz');
}
// Load the question type specific information
if (!get_question_options($quizquestions)) {
- print_error('Could not load question options');
+ print_error('cannotloadquestion', 'quiz');
}
// Restore the question sessions to their most recent states
// creating new sessions where required
if (!$states = get_question_states($quizquestions, $quiz, $attempt)) {
- print_error('Could not restore question sessions');
+ print_error('cannotrestore', 'quiz');
}
$numbers = explode(',', $questionlist);
$statsrow = array();
WHERE q.id $usql AND
qqi.question = q.id AND
qqi.quiz = ?", $params)) {
- print_error('No questions found');
+ print_error('noquestionsfound', 'quiz');
}
//Now we have an array of questions from a quiz we work out there question nos and remove
//questions with zero length ie. description questions etc.