mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-27927 qtype_multianswer remove hard-coded string.
This commit is contained in:
parent
928e7d2a33
commit
635971c750
@ -155,10 +155,10 @@ class qtype_multianswer_edit_form extends question_edit_form {
|
|||||||
$this->savedquestiondisplay->options->questions[$sub]->qtype !=
|
$this->savedquestiondisplay->options->questions[$sub]->qtype !=
|
||||||
$this->questiondisplay->options->questions[$sub]->qtype) {
|
$this->questiondisplay->options->questions[$sub]->qtype) {
|
||||||
$this->qtype_change = true;
|
$this->qtype_change = true;
|
||||||
$storemess = ' <span class="error">STORED QTYPE ' .
|
$storemess = ' ' . html_writer::tag('span', get_string(
|
||||||
question_bank::get_qtype_name(
|
'storedqtype', 'qtype_multianswer', question_bank::get_qtype_name(
|
||||||
$this->savedquestiondisplay->options->questions[$sub]->qtype).
|
$this->savedquestiondisplay->options->questions[$sub]->qtype)),
|
||||||
'</span>';
|
array('class' => 'error'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$mform->addElement('header', 'subhdr'.$sub, get_string('questionno', 'question',
|
$mform->addElement('header', 'subhdr'.$sub, get_string('questionno', 'question',
|
||||||
|
@ -60,6 +60,7 @@ $string['questionsaveasedited'] = 'The question will be saved as edited';
|
|||||||
$string['questiontypechanged'] = 'Question type changed';
|
$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['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['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['subqresponse'] = 'part {$a->i}: {$a->response}';
|
||||||
$string['unknownquestiontypeofsubquestion'] = 'Unknown question type: {$a->type} of question part # {$a->sub}';
|
$string['unknownquestiontypeofsubquestion'] = 'Unknown question type: {$a->type} of question part # {$a->sub}';
|
||||||
$string['warningquestionmodified'] = '<b>WARNING</b>';
|
$string['warningquestionmodified'] = '<b>WARNING</b>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user