Moodle
  1. Moodle
  2. MDL-14483

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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

          Activity

          Hide
          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
          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
          Eloy Lafuente (stronk7) added a comment -

          Working here. Verified. Closing. Ciao

          Show
          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: