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
Comment #1
shi99 CreditAttribution: shi99 commentedI know this is an older post, but I am having the same issue.
I was wondering if it is a bug.
Comment #2
lykyd CreditAttribution: lykyd commentedSame here
Comment #3
achikas CreditAttribution: achikas commentedsame 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?
Comment #4
GuillaumeDuveauSeems still broken as of 7.x-2.10
Comment #5
parisekI can confirm this is still broken
Comment #6
TR CreditAttribution: TR commentedThis 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.
Comment #7
TR CreditAttribution: TR commentedI'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.