Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   JavaScript and Client-Side Browser Scripting (http://www.programmingforums.org/forum23.html)
-   -   Javascript - Getting language settings (http://www.programmingforums.org/showthread.php?t=9025)

Mage_From_Antares Mar 24th, 2006 6:15 PM

Javascript - Getting language settings
 
I have a site which has seperate pages for the hungarian and english languages,
and I want it to forward the browser to the page which uses the same language as
the user's setting.

Is there a way in Javascript to get the language setting of the user accessing
the site?

Agent 47 Mar 24th, 2006 6:36 PM

http://www.web-wise-wizard.com/javas...formation.html

It can be done, but it's wrong to rely on the client having JS
enabled for our site to work.

This is probly best done on the server. Something like:
http://techpatterns.com/downloads/ph..._detection.php

Mage_From_Antares Mar 24th, 2006 6:45 PM

Thanks for the quick and helpful reply Agent 47!


All times are GMT -5. The time now is 11:25 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC