Multilingual shop - customer language not always correct

Started by p.barg, February 10, 2016, 10:49:42 AM

Previous topic - Next topic

p.barg

Hello,
I've found a similar topic, but as it's more than a year old, I'd like to open a new thread.
Having a multilingual shop I'm encountering problems with the language in e-mails to customers.
The automatic mails like order confirmation, automatic invoice etc. all seem to be correct, i.e. are
sent in the language the customer selected.
BUT: if an invoice (or delivery note) is created in the backend of the shop (like force invoice creation),
the language of the document seem to depend on the frontend language that the administrator
has selected during the current session (i.e. he opens the fronend of the site and selects a language).
Maybe the connection is a different one, at least the documents are NOT sent reliably in the language the
customer originally selected. This makes it very hard for a multilingual shop to send the correct
documents.
Can someone please take a look at this again? Or maybe someone fixed this before?

Thanks and best regards

Petra

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

p.barg

Great!
Will this be available in the next release or is there a patch?

Petra

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

p.barg

Today I stalled VM 3.0.14 and yet the language in invoices and delivery notes is still not showing correctly.
It's a weird mixture of the language the customer selected and the default language of the shop.
E.g. the words for "delivery note" and "product" are translated whereas the words for "order number" or "SKU"
are shown in the default language...

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

p.barg

Sorry, I just didn't have the time. And as you said you found and fixed it, I thought I could wait for the stable release...

The problem seems to be that the standard language file (com_virtuemart.ini) is included correctly (hence a few words are correct),
but the one for the orders (com_virtuemart_orders.ini) isn't. For this file either the standard language file is inlcuded or - if you're on the frontend
at the same time as you're in the backend - the frontend language file is included. Maybe that helps?

Milbo

That was the basic problem. I tested it and it worked for me, but maybe adding the cache later created a new problem.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/