Problem/Motivation

Email notifications from private messages are not sent in the recipient's preferred language. Based off of this change, we can set the language of the message as so $message->setLanguage($recipients_language);

Steps to reproduce

Copied steps from 3307555

Setup multiple languages.
Setup the interface language to be determined by some factor, such as a language prefix in the URL.
Login as an authenticated user.
On a UI with an arbitrary current interface language (e.g. Japanese) trigger a message to a recipient (code below).
The recipient receives the email in the interface language of the sender and not the language specified when sending the message.

Proposed resolution

set the preferred language to the message per member in PrivateMessageNotifier

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

robpowell created an issue. See original summary.

robpowell’s picture

Version: 3.0.0-beta2 » 3.0.x-dev
Status: Active » Needs review

artem_sylchuk made their first commit to this issue’s fork.

artem_sylchuk’s picture

Status: Needs review » Fixed

Good catch, tahnk you!
Merged

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.