Page 1 of 1

Invoice in language selected by customer

Posted: Fri May 22, 2015 4:44 am
by AntonVE
Goodday,

Since a short period i also sell international and translated my page to handle both dutch and english, where dutch is the default language on opening my store.
Now when someone orders using the english version of my website, i am having problems with the invoice.
While product names, selected shipping method,selected payment method etc are translated correctly, the "static" information isn't translated.
So for instance an "invoice" in dutch is called "factuur", while i have my template set to show <?php echo $text_invoice; ?> when i print an invoice placed by an customer using the english version of the website the invoice title is "factuur" and not "invoice".

Same goes for payment methods, example: (payment method in dutch is betaalmethode)
The invoice from an order placed in english says: "Betaalmethode : Banktransfer", where i would want it to just say: "payment method: banktransfer".
This while banktransfer is translated correctly and also shows in english when the customer shopped in english, and shows in dutch when the customer shopped in dutch.

I need this for custom declarations as this requires all invoices to be in english at least or the appropriate language for that country.
Am i doing something wrong or should i add some line to the invoice template?
Or is this a general issue when using multiple languages at the website where the default admin language is set to dutch?

Thanks in advance for your help.
With kind regards,
Anton

Re: Invoice in language selected by customer

Posted: Fri May 22, 2015 10:55 pm
by AntonVE
I have done some little research on getting this fixed.
Found that there is a part in mysql registering the language id which is in table order_status and called language_id.
The bad part is i know a little about how things work and can modify some thing succesfully, but never been able to fully make a script myself.
So knowing the language might be stored there, how can i get the invoice to pull that language and use it?
Hope someone could help me out with this, and i am sure very much people would want this option.

Thanks,
Anton