VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Doeke Norg on November 13, 2015, 14:30:09 PM

Title: [VM3] Language invoice (mail) inherits from admin
Post by: Doeke Norg on November 13, 2015, 14:30:09 PM
Hi,

First off: I know this is an "old" bug. That being said; it may also be a new bug for VM 3; that's why I'm reintroducing it.

My situation is as follows:

Joomla 3.4.5 / VM 3.0.11
Default language: English (Front & back)
My admin user's default language: Dutch

When my customer places an order (s)he gets a pending mail in English, as it should be. But when the administrator confirms / shipps / does ANYthing, de confirmation-mail changes to Dutch.
The only way for me to get the mail in English is for the admin to have english as the default language.

Now I know this isn't how it's supposed to be; Virtuemart saves the language of the order inside the order because this used to be a "bug" in VM2. And I've seen the code where de language is reintroduced when availaible. But it also loads the language of the admin in again. Can this be fixed?

As a bonus: When I attach a PDF invoice to the mail, the content is MOSTLY english. Only my plugins are in Dutch (which are also in english when the admin language is English).

Thanks!