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)

5+ Year Member

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)

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

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

Or the HTTP Server itself. For example, Apache has Content Negotiation [httpd.apache.org].


8:58 am on Mar 7, 2009 (gmt 0)

5+ Year Member

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.


Featured Threads

Hot Threads This Week

Hot Threads This Month