It seems that the language-detection or language-string replacement isn't triggered when the "Send mail" action runs.

I've created a "After saving a new user account" rule with a "Send mail" action. The "Subject" and "Body" entries are translated. Both translations are detected and shown within the admin (both on Rule translation tab and Translation interface).

When a user creates a new account the rule is triggered and sends an email, but not in the correct language.
Within the rule, the translation settings are enabled. I've tested it with all available language-data-selector, but the mail subject and body still contains the initial rule values (the default english value).

Feel free to ask additional information.

--
Stefan

Using D7.22 with Rules 7.2.3 on a multilingual and multi-domain (Domain Access) setup.
Tested with i18n only and both i18n and entity_translation combined (without i18n_select to avoid translation/module conflicts).
Tested without any Domain Access events or conditions enabled within the rule.
Tested with all "Send mail" translation options, but only the initial rule-values are used (default: EN).
Cleared my cache between every test.
No PHP errors found in the logs.

Comments

shi99’s picture

Issue summary: View changes

I know this is an older post, but I am having the same issue.
I was wondering if it is a bug.

lykyd’s picture

Same here

achikas’s picture

same here. i have the latest rules version 2.8 installed and my emails will not be send in the user language.
can't believe this is a bug.
does someone have a idea how to get my translated email subject and body used right for sending the email from rules?

GuillaumeDuveau’s picture

Version: 7.x-2.3 » 7.x-2.10

Seems still broken as of 7.x-2.10

parisek’s picture

I can confirm this is still broken

TR’s picture

Version: 7.x-2.10 » 8.x-3.x-dev
Category: Bug report » Feature request

This could have been fixed quickly if someone had supplied a patch ...

At this point, new features go into 8.x-3.x first, then they can be backported if there is community interest.

TR’s picture

Status: Active » Closed (duplicate)

I'm marking this as a duplicate of the much-newer issue #3264584: Email not translated into the specified language
That issue has a lot more work in it already, and should be solved shortly.