diff --git a/question/type/gapselect/lang/en/qtype_gapselect.php b/question/type/gapselect/lang/en/qtype_gapselect.php index 81b74549728..ea23ef98526 100644 --- a/question/type/gapselect/lang/en/qtype_gapselect.php +++ b/question/type/gapselect/lang/en/qtype_gapselect.php @@ -24,6 +24,7 @@ $string['addmorechoiceblanks'] = 'Blanks for {no} more choices'; $string['answer'] = 'Answer'; +$string['blanknumber'] = 'Blank {$a}'; $string['choices'] = 'Choices'; $string['choicex'] = 'Choice [[{no}]]'; $string['combinedcontrolnamegapselect'] = 'drop-down menu'; diff --git a/question/type/gapselect/renderer.php b/question/type/gapselect/renderer.php index 9fd591ada8d..e512550d349 100644 --- a/question/type/gapselect/renderer.php +++ b/question/type/gapselect/renderer.php @@ -72,7 +72,10 @@ class qtype_gapselect_renderer extends qtype_elements_embedded_in_question_text_ } // Use non-breaking space instead of 'Choose...'. - $selecthtml = html_writer::select($selectoptions, $qa->get_qt_field_name($fieldname), + $selecthtml = html_writer::label(get_string('blanknumber', 'qtype_gapselect', $place), + $attributes['id'], false, + array('class' => 'sr-only')); + $selecthtml .= html_writer::select($selectoptions, $qa->get_qt_field_name($fieldname), $value, ' ', $attributes) . ' ' . $feedbackimage; return html_writer::tag('span', $selecthtml, array('class' => 'control '.$groupclass)); }