Permalink
Browse files

MDL-27927 qtype_multianswer remove hard-coded string.

  • Loading branch information...
1 parent 928e7d2 commit 635971c750e9808025461c253d43102b42999577 @timhunt timhunt committed Jun 19, 2011
@@ -155,10 +155,10 @@ protected function definition_inner($mform) {
$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',
@@ -60,6 +60,7 @@
$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>';

0 comments on commit 635971c

Please sign in to comment.