Changing Quiz "Next" button to say "Submit"

Changing Quiz "Next" button to say "Submit"

by Mikhail Janowski -
Number of replies: 1

Hi,

I have a quiz which is setup to show all questions on one page. The button at the bottom of the page says "Next" and I want to change it to say "Submit".

I have searched in the language customization section but there does not seem to be a setting for this particular button. I found the code that renders the button and it calls get_string('next'). I tried adding a line to the quiz.php language file but that did not work and I would rather not edit any core Moodle files.

Could someone explain where get_string('next') fetches text from? And how I could maybe override that for the quiz module?

Or if there is an easier way to do this please let me know.

Thanks

Average of ratings: -
In reply to Mikhail Janowski

Re: Changing Quiz "Next" button to say "Submit"

by Jayesh Anandani -

I think following should help:

1. Change that get_string('next') -> get_string('submit','quiz').

2. Go to quiz/lang/en/quiz.php.

3. Add a line with:

   $string['submit'] = "Submit";