News:

Looking for documentation? Take a look on our wiki

Main Menu

Countries translation

Started by hofitd, July 31, 2012, 16:40:44 PM

Previous topic - Next topic

hofitd

Hi,

How do I translate the built in countries names to different language?
I couldn't find it nowhere...

Thanks

bytelord

Hello,

On configuration --> Countries select the country you want to translate and change the Country name.
This is only if you use one language.

Hope it helps.

Regards.
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

jjk

The country names and the country's state names are stored in the database, not in translatable ini files. But I think in most cases it is also ok to change the country names to the language used in each individual country if your site is multilingual, because usually the customers will look for an entry in the the same language he/she is using to look at your site. You could also add an additional country name in a second language. But in this case you would have to set up additional country-name specific shipping and payment methods, too.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

rvbgnu

Arrrrgggg.... I haven't check that yet.... So in a multilingual web site, everyone will have the countries in English ?? Would it better to use country ID for all shipment and payment method, instead of name ? Then it will great to have the country list in the .ini file, so every language could have their translation. How does the VM Dev team stand on this?
Best Regards, Hervé Boinnard - Irish Time (GMT)
Joomla! multilingual website and online business made easy - https://www.puma-it.ie

3D Secure v1 (3DS1) & Strong Customer Authentication (SCA)! Stripe.com payment plugin for VirtueMart 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/stripe-for-virtuemart
Authipay (AIB Merchant Services) for VirtueMart 2 & 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/authipay-aib-merchant-services-for-virtuemart

jjk

#4
I think on my bilingual site I'll stick with my native language country name plus all other country names in english. If you add country names in their orginial language and character encoding, you would have trouble reading some of them in your order forms. Imagine somebody from Russia or China orders a product in your english language cart and adds his address in his native language (from his russian or chinese keyboard).
A small example of what would happen is shown in the screenshot below (note the native language strings).

[attachment cleanup by admin]
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

rvbgnu

I do agree, jjk, to avoid character encoding issue and so. What I meant in "to have the country list in the .ini file, so every language could have their translation" is: every language of the website, in the Joomla Language settings (language packs and content) and so in the VM config. So for an English and French website, the country list will be in English in the English pages (session variable lang=en), and in French for the French users. Reproducing the Joomla behavior.
Or instead of .ini file, it could be like the multi lingual feature in VM. It is missing in some parts IMHO, and not very easy to use intensively, but, it is implemented and working, so I am happy!
I think the goal is to provide a full user interface in the languages available in the web site.
Best Regards, Hervé Boinnard - Irish Time (GMT)
Joomla! multilingual website and online business made easy - https://www.puma-it.ie

3D Secure v1 (3DS1) & Strong Customer Authentication (SCA)! Stripe.com payment plugin for VirtueMart 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/stripe-for-virtuemart
Authipay (AIB Merchant Services) for VirtueMart 2 & 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/authipay-aib-merchant-services-for-virtuemart

alatak

Hello,

Yes we had discussed about that some time ago.
Myself i don't really like the solution that we use : to have keys to make some items multilingual, like in the order status. It is easy to do, and implement, but for the end user, i don't think it is very ergonomic...

The problem at the moment, afaik, are for the countries and for the currencies name.

jjk

Additional comment to the previous post: The best idea would be to convince the Joomla devs to implement countries and currencies in ini files, so every extension could use it.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

hofitd

As I see it, I hate to see a different language on a site with deafult language. for example - I;m from Israel and we use Hebrew - and in many cases  I see english strings on websites just beacuse someone was to lazy to translate it - I hate it!
On my sites the entire site should be using the same language.

I thinks I've seen a thread that suggested to implement  a String key and add it to the ini file. It wasn't for the countries, but for something else.
Will it work in  this case?
It's not the best solution but I can deal with it for now.
And I do think you should find a solution for this.

jjk

#9
Quote from: hofitd on August 02, 2012, 13:01:13 PM
Will it work in  this case?
No, but if your site is in Hebrew and want to sell within Israel only, you could change the english language country name to Hebrew in the VM2 configuration or database table and unpublish the other countries in VM2 configuration.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

hofitd

and if I want to sell in Europe and in the US?
what you're saying is that there is no solution for this in multilingual website...

alatak

#11
Hello,

I have done the countries translatable. It will be available in the next version (the current one is 2.0.8.e).
The countries names are in file called com_virtuemart_countries.ini. You just have to translate them now :)

hofitd

Perfect! thank you!

where is the ini file?

jjk

Quote from: hofitd on August 08, 2012, 11:43:49 AM
where is the ini file?
Attached below

[attachment cleanup by admin]
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

hofitd

great

does that include the states names?