MDL-27927 qtype_multianswer remove hard-coded string.

This commit is contained in:
Tim Hunt 2011-06-19 10:34:39 +01:00
parent 928e7d2a33
commit 635971c750
2 changed files with 5 additions and 4 deletions

View File

@ -155,10 +155,10 @@ class qtype_multianswer_edit_form extends question_edit_form {
$this->savedquestiondisplay->options->questions[$sub]->qtype !=
$this->questiondisplay->options->questions[$sub]->qtype) {
$this->qtype_change = true;
$storemess = ' <span class="error">STORED QTYPE ' .
question_bank::get_qtype_name(
$this->savedquestiondisplay->options->questions[$sub]->qtype).
'</span>';
$storemess = ' ' . html_writer::tag('span', get_string(
'storedqtype', 'qtype_multianswer', question_bank::get_qtype_name(
$this->savedquestiondisplay->options->questions[$sub]->qtype)),
array('class' => 'error'));
}
$mform->addElement('header', 'subhdr'.$sub, get_string('questionno', 'question',

View File

@ -60,6 +60,7 @@ $string['questionsaveasedited'] = 'The question will be saved as edited';
$string['questiontypechanged'] = 'Question type changed';
$string['questiontypechangedcomment'] = 'At least one question type has been changed.<br \>Did you add, delete or move a question?<br \>Look ahead.';
$string['questionusedinquiz'] = 'This question is used in {$a->nb_of_quiz} quiz(s), total attempt(s) : {$a->nb_of_attempts} ';
$string['storedqtype'] = 'Stored question type {$a}';
$string['subqresponse'] = 'part {$a->i}: {$a->response}';
$string['unknownquestiontypeofsubquestion'] = 'Unknown question type: {$a->type} of question part # {$a->sub}';
$string['warningquestionmodified'] = '<b>WARNING</b>';