Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Switching between 2 languages - best way

language, switch, script

3:59 pm on Mar 3, 2009 (gmt 0)

New User

10+ Year Member

joined:Mar 24, 2006
posts: 13
votes: 0

Does anyone know of a good way to switch between content on a billingual site?

I've seen it on a number of sites and I presume it is javascript?


4:57 pm on Mar 3, 2009 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member fotiman is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 17, 2005
votes: 21

It is probably NOT JavaScript, as JavaScript should be used to enhance, not as a requirement for content. It's likely that there is some server side language (PHP, JSP, ASP, etc.) that controls which content is served.
6:56 pm on Mar 4, 2009 (gmt 0)


WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
votes: 2

Or the HTTP Server itself. For example, Apache has Content Negotiation [httpd.apache.org].
8:58 am on Mar 7, 2009 (gmt 0)

New User

5+ Year Member

joined:Mar 7, 2009
posts: 9
votes: 0

What you might be referring to is a Google translate link. Tools like this allow you to have your site content translated automatically.


Other than something like this, Fotiman is right -- you need to control translation on the server site. For a smaller site I would just recommend duplicating and maintaining the site in another language. For complex sites you'll need some kind of programming involved.


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members