NB: All of the tracker issues, posted by 'accessible_for_vip', are based on the theme 'Accessible for VIP' (https://moodle.org/plugins/view.php?plugin=theme_accessible_for_vip) which is developed for people who are blind or have a low vision. All of the (code)solutions are based on the files which belong to this specific theme and are only usable with this theme at this moment (but it is also possible to include the solution in general source code).
In the present situation, there is no information for a blind person about the number of questions in a quiz. For example: when you are reading the heading of question 1, the screenreader will say “question 1” but give no information about the size of the whole quiz.
We added this information so that the screenreader will say “Question 1 of 10” instead of “Question 1”. This gives the blind user of the quiz much more information and makes the usage of the quiz more accessible.
To arrive to this solution we created an object with the number of the question and the total of questions in it. The method ‘number( )’ is changed and a language String is added. This is shown below.
Changed method (mod/quiz/attemptlib.php):
Added language String