Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 08-16-2009, 01:34 PM   #1 (permalink)
Junior Member
 
Join Date: 08-16-09
Posts: 1
iTrader: 0 / 0%
Latest Blog:
None

matthecool is liked by many
Reads browser settings> Automatic translation of pages> Creates new url

Hello, I'm mat and I have a translation problem....

Basically I have a quite large website and want to begin to offer it to surfers who speak other languages.

Here is my aim: For my server to read the browser's language settings and then place the surfer on the page which is automatically translated for them and delivers them a different url.

Ok example: A surfer visits my site from Poland and he would land on http://www.mysite.com/dogs.html, however my server reads that his browser settings are Polish and the server automatically translates the page dogs.html and creates http://www.mysite.com/dogs.html&pl
(Notice the &pl is just a quick abbreviation for the Polish language.)
Then I would like the &pl etc urls indexed in the search engines.

A) Is this possible?
B) My best method of attack to complete this aim?

Any help is graciously acknowledged and thanked.

Thanks for your time
matthecool is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-17-2009, 04:08 AM   #2 (permalink)
v7n Mentor
 
Tomassi's Avatar
 
Join Date: 01-26-06
Location: Amsterdam
Posts: 2,497
iTrader: 0 / 0%
Latest Blog:
None

Tomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest order
Send a message via ICQ to Tomassi
There are a couple of ways to do this. The most reliable way is to let the user choose and then store it in a cookie/session. This way you can send the user to the polish section of the website. For example www.yoursite.com/pl/index.html is something I would go for.

You also have other options such as GeoIp. It's basically a big database that combines IP address of the user with a country. Could work to.
__________________
I still got me a signature to fill
Tomassi is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-17-2009, 11:42 PM   #3 (permalink)
Moderator
 
Hades's Avatar
 
Join Date: 01-23-07
Location: Buenos Aires, Argentina
Posts: 1,261
iTrader: 0 / 0%
Hades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest order
Quote:
Here is my aim: For my server to read the browser's language settings and then place the surfer on the page which is automatically translated for them and delivers them a different url.
Using the browser/OS settings to get the language is not very reliable, many users including myself use operating systems and browsers in english language though that is not our native language and I don't live in an english-speaking country.

Tomassi gave a very good suggestion, you can use the IP to detect the country and redirect accordingly. And also show a dropdown/menu in your website to allow your users to change the language in case the ip detection failed or the user is in a foreign country and does not speak that language (ie: a Spanish tourist in France doesn't want to browse websites in french, he/she will prefer to get a spanish version so you should let them choose). I get very annoyed when I'm travelling and some websites put me in a localized version and it does not allow me to change the language.
__________________
Hades,
Ancient god, King of the Nether World, and Guardian of the Dead.
...and on my free time I'm also a web developer, contact me if you need one!
Hades is online now  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Google reads ALT tags / on-domain SEO broadcast-monitors SEO Forum 2 09-07-2008 08:26 PM
What creates an authority site? mxracer170 SEO Forum 8 06-19-2007 11:32 AM
What reads better? docquesting Web Design Lobby 13 12-21-2004 04:46 AM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 06:40 PM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.