VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: jmoreno on July 21, 2015, 02:05:16 AM

Title: the country in Bill To and Ship To sections is always in English
Post by: jmoreno on July 21, 2015, 02:05:16 AM
Hello, I am using VM 3.0.6 and need to change the read only info of countries according to the language selected. If I select Spanish, then the countries appear in English. Take a look into example.png.

However, when I edit the info, the dropdown field related to the countries shows the countries correctly according to the language.

I have read the forum looking for a solution, but nothing works. I added the es-Es folder with the .ini file with Spanish countries in VM and administrator, and I did a lot of other things, but, again, nothing works.

Thanks for your help.
Title: Re: the country in Bill To and Ship To sections is always in English
Post by: Studio 42 on July 21, 2015, 13:36:47 PM
Hi jmoreno,
Download and check the language file here : http://virtuemart.net/community/translations/virtuemart
if vm-admin-com_virtuemart_countries file is missing in your language then virtuemart use english else download the language pack and install it with Joomla installer.

Greets,
Patrick
Title: Re: the country in Bill To and Ship To sections is always in English
Post by: jmoreno on July 23, 2015, 23:28:28 PM
Hi Studio 42. Thanks for your post. I did what you said  and I have that table with the countries in English, but I need the cuntries in Spanish. I mean, my webpage must have both English and Spanish. English works fine, but when I choose Spanish, all is translated except the countries.

I could think that I should have another country table like vm-admin-com_virtuemart_countries_es_es, but thats not a good solution.

What else do you recommend?

Thanks in advance
Title: Re: the country in Bill To and Ship To sections is always in English
Post by: Studio 42 on July 24, 2015, 00:56:07 AM
Hi,
another solution is to use language overrides. see https://docs.joomla.org/J2.5:Language_Overrides_in_Joomla for explains.
Title: Re: the country in Bill To and Ship To sections is always in English
Post by: jjk on July 25, 2015, 11:19:49 AM
The country name translations are called from file yourdomain\administrator\language\es-ES.com_virtuemart_countries.ini.
Try to enable 'Debug System' and 'Debug language' in the Joomla configuration, then go to your cart view and check in the debug information at the bottom of the page if the file es-ES.com_virtuemart_countries.ini is loaded. If Joomla debug detects a 'parsing error' in the language file, you would have to correct the typo.

Another possibility is that you are using a third party 'One Page Checkout', which has its own language files or which doesn't load the es-ES.com_virtuemart_countries.ini.
Perhaps disable that OPC temporarily and check if it works with VirtueMart's own OPC.
Title: Re: the country in Bill To and Ship To sections is always in English
Post by: jmoreno on July 27, 2015, 20:27:46 PM
Thank you very much for your answers guys.
Title: Re: the country in Bill To and Ship To sections is always in English
Post by: Margriet on February 28, 2017, 11:19:58 AM
This problem still exists. Dropdown to choose country is ok, but country in cart and in order confirmation and invoice stays in Englisch. VM 3.0.19 and latest language file.