the change of the status sends the mail in the language of the admin shop operators (German). Not in the language of the client (english)

maybe someone has an idea?

Perfect Module and best regards

Comments

fugazi’s picture

I have searched erfogt today the whole day after rules possibilities without. Can not check I let the language of the client, and then send the mail in German or English?

mglaman’s picture

Hey fugazi, sorry for the late reply! I'm actually not sure. Does this problem occur with the regular commerce_message notification on checkout? This sandbox is a bit old compared to what the module may have. I haven't has a chance to verify

fugazi’s picture

Hi many thanks for the reply. The problem occurs when I change the status on orders, then he takes over the language of the admin themes. So the mail is sent.

I've already posted about the problem everywhere, but it seems to be a big problem. I suspect the drupal commerce is not published in many multi language pages.

I have commerce messages rewritten if the poblem might be resolved. But without success.

My post on this problem.
http://www.drupalcommerce.org/questions/13854/change-custom-messagetype-...
https://drupal.org/node/2278831
https://drupal.org/node/2282899

I really have to say that also no longer white.

mglaman’s picture

Actually, I think I know why. I need to double check who is made the owner of the message when created. The notification might be created as the admin, not as the order's owner. That would be the biggest possible reason. I'll try to look into this tomorrow.

fugazi’s picture

Many thanks that you want to have a look the times. Like I said it seems to be a fundamental problem-if mails about the UI of the admin are shipped. It would be really nice if you can find a way to solve the problem.

mglaman’s picture

StatusFileSize
new1.03 KB

Could you try this patch? I just re-checked Commerce Message and saw there's a multilingual site workaround.

Also, if I could ask: do you think this would be useful as a promoted project and become a full module?

fugazi’s picture

Hello,
I hope my English is good to understand. I apologize if it's bad.
I love your module, it has many simplified me away to quickly alternate mails to ship via status. (I only had the problem with the translation)
Drupal commerce makes almost anything with rules. I was not very good in rules and your modules has given me an insight into how Rules works for mails.
I think the module is worth more than full modules in any case, but that's just my opinion. For beginners who simply want to expand their news, a very good way. Professionals will make commerce_messages their own things with rules and duplicates. But for me as a beginner it was perfect.
I will your modules in any case continue to use in the live page in the future.

To the patch!
Unfortunately it does not work, if the user interface is the english admin
hxxp://mysite.dw/en/users/brave#overlay=en/admin/commerce/orders
will be submitted in English, even if the user language setting is German the mail.
If the user is admin of the German surface
hxxp://mysite.de/en/users/brave#overlay=en/admin/commerce/orders
When the mail is sent in German even if user language setting is English.

fugazi’s picture

StatusFileSize
new24.57 KB
new28.74 KB
fugazi’s picture

StatusFileSize
new54.34 KB
jedi_master’s picture

Hi guys,

iam experiencing the same problem here. Do you have some news about this issue ?
BTW great module.

thanks

fugazi’s picture

@jedi_master I could solve with:

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

mglaman’s picture

Hey guys,

There is a fix actually in commerce_message towards the bottom. I found it but haven't had a chance to add it to the sandbox.