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

Messaging should always send email in the language of the recipient, not the sender

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.5, 1.9
    • Fix Version/s: 1.8.6, 1.9.1
    • Component/s: Messages
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      Messaging should always send email in the language of the recipient, not the sender

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            dougiamas Martin Dougiamas added a comment -

            Fixed by temporarily setting the current $USER to the recipient language. Deliberately used $USER->lang so that the normal current_language() logic can still apply (forced site language, etc).

            Tested and working on moodle.org.

            Show
            dougiamas Martin Dougiamas added a comment - Fixed by temporarily setting the current $USER to the recipient language. Deliberately used $USER->lang so that the normal current_language() logic can still apply (forced site language, etc). Tested and working on moodle.org.
            Hide
            stronk7 Eloy Lafuente (stronk7) added a comment -

            Working here. Verified. Closing. Ciao

            Show
            stronk7 Eloy Lafuente (stronk7) added a comment - Working here. Verified. Closing. Ciao

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  15/May/08