Changing language settings for website users

  • rambo_unleashed
  • Novice
  • Novice
  • User avatar
  • Posts: 20

Post 3+ Months Ago

Hi, my aim to create an international website that is readable to everyone, despite what country they are from, and language they speak.

1) i would like to be able to change the websites language depending upon the country from which the user is accessing the site.
e.g. if brad in brazil is checking out my site, id need some way of recognising that this user is from brazil, and to display all content in Brazillian (maybe through use ip address?)

or 2) change the language depending on what county domain code is typed i.e.
.com (english)
.fr (french)
.br (brazil)


if anyones got any ideas, that would fantastic.
cheers ;)
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13504
  • Loc: Florida

Post 3+ Months Ago

Here's where to start for Apache and mostly static content sites.
http://httpd.apache.org/docs/2.2/conten ... ation.html

In a nutshell, Content Negotiation, on any website, is based on checking the Accept-Language HTTP header sent by the visitor and going from there. Reacting to what's found in the header can vary greatly from server to server.
  • rambo_unleashed
  • Novice
  • Novice
  • User avatar
  • Posts: 20

Post 3+ Months Ago

Thanks joebert for the suggestion, il look into it.

Im pretty much a beginner at web design and development. So unfortunately i dont know anything about Apache, only just started learning PHP basics.

I really dont know how i am going to tackle this 'global' website idea. Im trying to plan out an escort directory website that anyone in the world can profile themselves on. the only downside to altering the language is that, if an american guy was in japan, had access to the internet and wanted an escort, the language would appear in a japenese. Well, unless he went to google.com & searched lol.

Apart from the language problem, do you know if its possible to buy a bunch of domain names, .fr .g .br etc, for each country and then direct them all to one website, which will hopefully alter the language automatically. i just feel people in france, for example, will more likely click on an add to my site if the site name he saw was http://www.examplesite.fr rather than .com.

Any ideas would be helpful.
  • rambo_unleashed
  • Novice
  • Novice
  • User avatar
  • Posts: 20

Post 3+ Months Ago

Does anyone know if this php code is a good solution to my problem?

http://en.kioskea.net/faq/sujet-596-cha ... ur-website
  • franticuser
  • Novice
  • Novice
  • franticuser
  • Posts: 33

Post 3+ Months Ago

Well try it to see how it will work out.

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 8 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.