Old 04-24-2007   #1 (permalink)
A$s On Fiyah
 
ecntrc's Avatar
 
Join Date: May 2005
Location: Ewa Beach, Hawaii
Posts: 601

Send a message via Yahoo to ecntrc
Language Detection

I have made a website for my grandma in memory of her since she passed away recently. My family is samoan and some do surf the web most likely in samoan also for those that live in samoa. So Id like to put up a filter or something that when the website is loaded on their computer it will detect their language settings or whatever.. can someone help me out with this? I did a google search but Im wondering if theres an easier way besides PHP, please let me know or any suggestions ect.. Thanks
__________________
google is my lover, whos yours?
ecntrc is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 04-24-2007   #2 (permalink)
Be Unique. Be Heard.
 
Jacorre's Avatar
 
Join Date: Jul 2006
Location: USA
Posts: 489

Could you provide a link to translate the page into the language of your choice much like Biorust does with the tutorials? There's a flag icon at the bottom of the pages that when clicked use Google's translation tool to translate the page into a different language.
__________________

Jacorre Studios Blog
Jacorre is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 04-25-2007   #3 (permalink)
A$s On Fiyah
 
ecntrc's Avatar
 
Join Date: May 2005
Location: Ewa Beach, Hawaii
Posts: 601

Send a message via Yahoo to ecntrc
That could work also for somethings. But Id like for the internet browser the viewer is viewing my site with detect the language settings which could be samoan definately, english and possibly another language. And whatever it detects I want the page translated in their language. Whatever they choose. Is this possible?
__________________
google is my lover, whos yours?
ecntrc is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 04-25-2007   #4 (permalink)
Be Unique. Be Heard.
 
Jacorre's Avatar
 
Join Date: Jul 2006
Location: USA
Posts: 489

Sounds like a script will be needed. Try searching for javascript or php language detection scripts.
__________________

Jacorre Studios Blog
Jacorre is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 04-25-2007   #5 (permalink)
Rusty Bio-Hazard!
 
notjustgraphics's Avatar
 
Join Date: Sep 2006
Location: Toronto, Ontario, Canada
Posts: 1,067

Send a message via MSN to notjustgraphics
Sorry ecntrc... i have no experience with what your are asking...

Any time i've made multilingual websites, i leave it up to the user to select their appropriate language... I usually have a "english | french" option which branches to the appropriate files.

This link might help you do it autmoatically though: W3C I18N FAQ: Apache MultiViews language negotiation set up

Sorry, it's all I could find that looked useful... i don't think its a picnic.

Mike.
__________________
notjustgraphics is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 05-05-2007   #6 (permalink)
PHP Lover
 
Join Date: May 2007
Location: Zug, Switzerland
Posts: 84

Smile

Quote:
Originally Posted by ecntrc View Post
I have made a website for my grandma in memory of her since she passed away recently. My family is samoan and some do surf the web most likely in samoan also for those that live in samoa. So Id like to put up a filter or something that when the website is loaded on their computer it will detect their language settings or whatever.. can someone help me out with this? I did a google search but Im wondering if theres an easier way besides PHP, please let me know or any suggestions ect.. Thanks
Hi,

I'm not sure what the code for samoan language is, but you can do this very easily with php. Javascript also does have this feature.

with php it is
PHP Code:
$_SERVER['HTTP_ACCEPT_LANGUAGE'
if you would like help implementing this, please contact me.

Greg
Gjbphp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial Language Problem. c3400 General Discussions 10 10-02-2006 10:38 PM


All times are GMT +1. The time now is 01:09 PM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2008 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT