News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

English strings in customer mail

Started by sandomatyas, November 04, 2017, 09:35:41 AM

Previous topic - Next topic

sandomatyas

I run a Hungarian webshop which uses Hungarian language only, latest Joomla and Virtuemart and Rupostel's OPC.
It works well but when I order something the confirmation mail is half Hungarian and half English
English words are the user fields titles (City, Address, Phone, etc), the product headers (SKU, Price, Qty) except the "product name", the "total" title, order status and Page 1/1. Every other strings are Hungarian.
OPC extensions allows append order details information to the thank you page, the same strings are also English but when I check my order details again, everything is Hungarian.
I tried to disable every Rupostel plugins, remove all template overrides but I got the very same problem.
I also tried to install another language (German) to check if the language files have any error but got the same result.
Here is a screenshot: https://snag.gy/W5X9gp.jpg

Any idea?

jjk

I can see only an empty Snaggy page following your link. Which versions of Joomla and VM?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Studio 42


sandomatyas


jflash

I have same issue. Language string overwrite under Joomla was my solution :) Joomla 3.8.1 and VM 3.2.4 (under 3.2.2 was same).

Studio 42

sandomatyas, do you changed the default field names?
Check administrator/index.php?option=com_virtuemart&view=userfields and open your field
Eg. email field title should be COM_VIRTUEMART_REGISTER_EMAIL

sandomatyas

I use language constas everywhere.
But when I open the order from the link which is in the mail VM displays it correctly. It's only in the mail.

Studio 42

Have you check the settings in the VIrtuemart config about language in email ?
VIrtuemart config>email>Invoice in user language

sandomatyas

I tried both ways even with/without login

jjk

Did you try Joomla's 'Debug language' on that page already? It should list the problems in your language files.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

sandomatyas

yep, but it's half Hungarian half  English?
You can try it yourself, I built a very basic site (Joomla! 3.8.2 and VM 3.2.6) with one category and one product
http://vmlang.tk
After you place an order also the confirm message is half english: https://snag.gy/jucbyW.jpg

Studio 42

I had a problem on my own plugin loading language,
It seems that if you dont force language, this get not loaded anymore in Joomla 3.8.2(it was not the case in the releases before)
Eg if you load 2 language files

            $lang->load($name, $path,en-GB);
            $lang->load($name, $path);
the default language is not loaded anymore, but only en-GB.
I think it was not the case before in Joomla.
Now
            $lang->load($name, $path);
fallback to english i think.

Note that i have not do more test, but i had the problem adding en-GB and default, so perhaps language handle changed in Joomla ?

sandomatyas

#12
It seems disabling **Use english as fallback for untranslated strings** solved the problem, but in this case I get language strings if there is a missing translation and there are strings which aren't in transifex yet (e.g. COM_VM_CFG_ORDERTRACKING)
------------------------------------------
update: it helped on my demo site but not on the live site, so I'm a bit clueless

Studio 42

Have you try to activate language debug in Joomla, to check if you have problems in your language.ini files ?
You get a report on the bottom with loaded files and errors.

sandomatyas

#14
yes and no errors
---------------
update: I was able to get proper message once when language debug was enabled but not after I turned off