From 635971c750e9808025461c253d43102b42999577 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Sun, 19 Jun 2011 10:34:39 +0100 Subject: [PATCH] MDL-27927 qtype_multianswer remove hard-coded string. --- question/type/multianswer/edit_multianswer_form.php | 8 ++++---- question/type/multianswer/lang/en/qtype_multianswer.php | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/question/type/multianswer/edit_multianswer_form.php b/question/type/multianswer/edit_multianswer_form.php index ce2a554748a..34c0c4e4a35 100644 --- a/question/type/multianswer/edit_multianswer_form.php +++ b/question/type/multianswer/edit_multianswer_form.php @@ -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 = ' STORED QTYPE ' . - question_bank::get_qtype_name( - $this->savedquestiondisplay->options->questions[$sub]->qtype). - ''; + $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', diff --git a/question/type/multianswer/lang/en/qtype_multianswer.php b/question/type/multianswer/lang/en/qtype_multianswer.php index fffd3cec9e8..2ce85647824 100644 --- a/question/type/multianswer/lang/en/qtype_multianswer.php +++ b/question/type/multianswer/lang/en/qtype_multianswer.php @@ -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.
Did you add, delete or move a question?
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'] = 'WARNING';