Jump to content

Cre8asiteforums

Web Site Design, Usability, SEO & Marketing Discussion and Support

  • Announcements

    • cre8pc

      20 Years! Cre8asiteforums 1998 - 2018   01/18/2018

      Cre8asiteforums In Its 20th Year In case you didn't know, Internet Marketing Ninjas released many of the online forums they had acquired, such as WebmasterWorld, SEOChat, several DevShed properties and these forums back to their founders. You will notice a new user interface for Cre8asiteforums, the software was upgraded, and it was moved to a new server.  Founder, Kim Krause Berg, who was retained as forums Admin when the forums were sold, is the hotel manager here, with the help of long-time member, "iamlost" as backup. Kim is shouldering the expenses of keeping the place going, so if you have any inclination towards making a donation or putting up a banner, she is most appreciative of your financial support. 
netessentials

How To Have One Web Site Display Different Laguages When Viewed Around The World?

Recommended Posts

I was on a competitors web site recently and saw that they had different languages for the same site. The path was \en\index.php for English, so I typed in \fr\index.php and saw it in French. This seemed like a great idea for our international potential clients and we want to do the same for a few languages. We have a PHP site now.

 

I'm looking for the code to use that would recognize what country the visitor is in and then redirect them to the language that they may like better than English. I've seen other sites that have about 4-5 flags and when you click on that language, you get it, but I'm under the impression that there is a way to redirect automatically to another language.

Edited by iamlost
Removed unnecessary self-referencing link
  • Like 1

Share this post


Link to post
Share on other sites

I'm no expert on this, but I do know that there is a lot of information you can get via php using $_SERVER. One of the elements is HTTP_ACCEPT_LANGUAGE. I'm assuming that you could use this to figure out which language the user is using and then redirect to the appropriate version of the page.

Share this post


Link to post
Share on other sites

There are a number of such php scripts available, just do a search such as [ php redirect by language preference ].

 

Two points to consider:

1. the need to both pickup the browser's preferred language array, i.e. en-ca, en-uk, en-us, en, and then deliver the best available choice. This requires a preset language dataset and methodology; at least the ability to truncate, i.e. en-ca to en and/or recognise that en or en-ca means that your available en-us page is acceptable.

 

2. the ability for the user to over-ride the served choice simply and easily such as prominent alternative language choices. Never assume that an algo/script determination is always best.

Share this post


Link to post
Share on other sites

Not to mention that it's more effective in the long run to use country-specific .tlds, rather than a single domain, IMVHO :)

Share this post


Link to post
Share on other sites

Not to mention that it's more effective in the long run to use country-specific .tlds, rather than a single domain, IMVHO :)

 

When there is a country tld that is often best practice especially combined with hosting in that country. Of course this does increase costs but often boosts ranking as shown to queries from those countries plus increases prbability of being returned by country/region/language specific niche SEs.

 

Where having multiple languages available on a single tld is definitely best practice is when a country has significant language minorities whether official (such as Canada: English and French, Belgium: Dutch, French, and German) or simply a matter of significant numbers.

 

A matter for serious consideration is that often a single text translation can accommodate a broader number than aural (podcast or video with voice). You really need to know your demographic targets because translation is an expensive endeavour when done correctly.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×