Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-73949

Language for course completed message

XMLWordPrintable

    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • MDL-73949-master
    • Hide

      1- Login as an Admin
      2- Create a new course
      3- Add an activity to the course and configure it for self-completion
      4- Set course completion to include this activity
      5- Login as a student 
      6- Change your preferred language to a different language than the site default
      7- Go to the course and Mark the activity as completed 
      7- Check the student email and validate that the email is received with the preferred language

      Show
      1- Login as an Admin 2- Create a new course 3- Add an activity to the course and configure it for self-completion 4- Set course completion to include this activity 5- Login as a student  6- Change your preferred language to a different language than the site default 7- Go to the course and Mark the activity as completed  7- Check the student email and validate that the email is received with the preferred language

      As a student, log in to a course in which:

      • An activity has been configured for self-completion
      • Course completion tracking has been configured and includes this activity
      • Select the activity as complete.
        On course completion, a "course completed" message is sent to the student.

      Expected behavior
      Moodle sends the course completed message in the user's preferred language.

      Actual behavior
      Moodle sends the course completed message in the same language for all users regardless of their preferred language.

      Details
      The course completed message contains the strings "coursecompleted" and "coursecompletedmessage".
      Moodle sends the message in the language defined by the site's "Default language" (lang) setting.
      The message should better be sent in the user's preferred language.

      Proposed fix
      In the function mark_complete() in completion/completion_completion.php, get strings for $messagesubject and $messagebody according to the user's preferred language.

            aya.saad Aya Saad
            schach Heiko Schach
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.