Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Change the language depend of the country

Change the language depend of the country

Hello,
I need help because I don't know how to create this rule:

I need when the user enter in the website if it is from Spain display the Spanish language (www.website.com/es/) and is the user is from other country display the USA(english) language (www.website.com/us/).
How is it possible?

Thanks.

luisorozoli
Beginner Modder
ranks
useravatar
Offline
6 Posts
Administrator has disabled public posting

Re: Change the language depend of the country

Hi Luis,

The main challenge for this setup is to ensure that you don't create redirect loops. That is, if you have already redirected someone to /es because they came from Spain, then make sure they don't get redirected again when they arrive there.

Can I ask, are you using Joomla's language facilities (articles and menu items tagged as different languages) to make your site multi-lingual, or have you simply set up menu items in a menu structure with top levels /es and /us, with relevant content in each one?

I'll hold off answering your question until you can answer that one, as it will change the approach.

Thanks
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3329 Posts
User info in posts
Administrator has disabled public posting

Re: Change the language depend of the country

Hello.

metamodguy wrote:

Can I ask, are you using Joomla's language facilities (articles and menu items tagged as different languages) to make your site multi-lingual, or have you simply set up menu items in a menu structure with top levels /es and /us, with relevant content in each one?

Answer:
Articles and menu items tagged as different languages to make your site multi-lingual.

Thanks.

luisorozoli
Beginner Modder
ranks
useravatar
Offline
6 Posts
Administrator has disabled public posting

Re: Change the language depend of the country

metamodguy,
Please can you help me with that??

Thanks.

luisorozoli
Beginner Modder
ranks
useravatar
Offline
6 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1684
Total Polls:
6
Total Posts:
5940
Posts this week:
1
User Info:
 
Total Users:
5174
Newest User:
frashaomran
Members Online:
0
Guests Online:
109

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked