Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-38241 qtype_match: should say Blanks for 3 more questions.

Currently it says Blanks for 3 more choices, like multichoice, which is
confusing.

AMOS BEGIN
 MOV [addmoreqblanks,qtype_match],[blanksforxmorequestions,qtype_match]
AMOS END
  • Loading branch information...
commit baa6159bb98704abb861b90a60a6fdac58806fd7 1 parent cce0d9a
Tim Hunt timhunt authored
7 question/type/match/edit_match_form.php
@@ -70,6 +70,13 @@ protected function definition_inner($mform) {
70 70 $this->add_interactive_settings(true, true);
71 71 }
72 72
  73 + /**
  74 + * Language string to use for 'Add {no} more {whatever we call answers}'.
  75 + */
  76 + protected function get_more_choices_string() {
  77 + return get_string('blanksforxmorequestions', 'qtype_match');
  78 + }
  79 +
73 80 protected function data_preprocessing($question) {
74 81 $question = parent::data_preprocessing($question);
75 82 $question = $this->data_preprocessing_combined_feedback($question, true);
2  question/type/match/lang/en/qtype_match.php
@@ -22,9 +22,9 @@
22 22 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
23 23 */
24 24
25   -$string['addmoreqblanks'] = '{no} More Sets of Blanks';
26 25 $string['answer'] = 'Answer {$a}';
27 26 $string['availablechoices'] = 'Available choices';
  27 +$string['blanksforxmorequestions'] = 'Blanks for {no} more questions';
28 28 $string['correctansweris'] = 'The correct answer is: {$a}';
29 29 $string['filloutthreeqsandtwoas'] = 'You must provide at least two questions and three answers. You can provide extra wrong answers by giving an answer with a blank question. Entries where both the question and the answer are blank will be ignored.';
30 30 $string['nomatchinganswer'] = 'You must specify an answer matching the question \'{$a}\'.';

0 comments on commit baa6159

Please sign in to comment.
Something went wrong with that request. Please try again.