Change custom messagetype of status, is not translated into the user language
I hope you understand my bad english.
I have message type Commerce Order: order processing notify to send a mail for change of status.
I have this module https://drupal.org/sandbox/mglaman/2220855 used to me to simplify away.
The rules settings I have here
http://share.febko.de/repository/drupal/commerce/rules/22-05-_2014_18-05...
How it all works beautifully. Only I have a big one with the language.
If I admin area language (German) send out a mail to a customer in English or that mail arrives in German, even though the user had set his language in English.
I've tried everything. If I set the admin language to English all get an English email, and the German customer.
I have set in message type translation. German and English.
http://share.febko.de/repository/drupal/commerce/rules/22-05-_2014_18-09...
I do not remember more. I tried the language by rules to check but I do not know how to do it.
Why it sends the e-mail to the admin language, and not by language of the customer?
Comments
Hi,
have you found any solution how to do this or it just can't be done ?
thanks
But I have found a possibility.
in Rules for me it is Commerce Order: order marked complete
new action
Execute custom PHP code
$account = user_load($commerce_order->uid);
$languages = language_list();
global $language;
if ($language->language != $account->language) {
$language = $languages[$account->language];
}
and in the row to the top
here is the link to the discussion on drupal
https://www.drupal.org/node/2272307