Congratulations end of lesson reached

Congratulations end of lesson reached

by Frances Vevers -
Number of replies: 4

I'm trying to change the message that is displayed on the end of lesson page.  Ideally I would like to be able to edit this page but it doesn't seem possible.

A work around mentioned on this page is to alter the lesson/view.php but I can't find that file.  Anyone know where it might be?

Average of ratings: -
In reply to Frances Vevers

Re: Congratulations end of lesson reached

by Joseph Rézeau -
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Frances,

This is not a Lesson problem, but a more general problem of "how to edit the moodle language strings". Please see the documentation for Language editing. Note it's different in moodle 1.9.x and moodle 2.0.

The language string you'll want to edit is in the Lesson module (of course), and it's called 'congratulations'.

Hope that helps,

Joseph

PS.- Do not edit moodle's core files if all you want is to change a language string. The correct way to go is Edit language files, through the moodle interface.

In reply to Joseph Rézeau

Re: Congratulations end of lesson reached

by Frances Vevers -

Thanks for your reply Joseph.

That language editing doc is not quite accurate for me so I'll put my method here in case anyone with the same problems stumbles across this post.

My problem was I do not have a Language Editing option as the doc says.  I had to go to Site Administration > Language > Language Customization. I then got a dropdown menu with English as the only option.  After selecting that I got a button that says Check out String into Translator.  Pressing that brought up "Strings checked out successfully into the translator" and a green bar with a continue button underneath.  Clicking that brings up the option to  find and alter strings.  The one I wanted was under Mod, lesson.php as Joseph said.

In reply to Frances Vevers

Re: Congratulations end of lesson reached

by Mary Cooch (personal account) -
Picture of Documentation writers Picture of Testers

Hi Frances. The link Joseph gave you linked back to the old Moodle 1.9 Language editing (even though it says 2.0 - the docs are in the process of being updated) As you correctly found out it is now called Language Customisation and the new link is here http://docs.moodle.org/20/en/Language_customization

In reply to Mary Cooch (personal account)

Re: Congratulations end of lesson reached

by Joseph Rézeau -
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

Mary:

... The link Joseph gave you linked back to the old Moodle 1.9 Language editing (even though it says 2.0...)

This is most confusing! Thanks, Mary, for setting things straight and providing the correct URL. Let's hope the documentation stabilizes any time soon.

Joseph