2
Answers
Vote up!
0
Vote down!

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?

Asked by: fugazi
on May 22, 2014

2 Answers

Vote up!
0
Vote down!

I have now through all and knows exactly that all mails are send via a command sent the admin area in its set language from the admin.

It can not be verified which language the customer is established. And so you can not create a multilingual website without a vendor's language must impose upon the customer.

A way which, although totally stupid when I set the country or the language of the customer know I need to change the prefix of the country and the customer will then receive the emial in his language.

That can not be whole purpose of rules and drupal commerce. Or?

Answer by: fugazi
Posted: Jul 1, 2014

Comments

Hi,

have you found any solution how to do this or it just can't be done ?

thanks

- jedi commerce on August 5, 2014

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

- fugazi on August 26, 2014
Vote up!
0
Vote down!

I would like to have answered before, but unfortunately I only yesterday got the info mail came a comment on my question. A bit late .....

Answer by: fugazi
Posted: Aug 26, 2014