| Switching between 2 languages - best way language, switch, script |
brd1984

msg:3861767 | 3:59 pm on Mar 3, 2009 (gmt 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? Thanks
|
Fotiman

msg:3861817 | 4:57 pm on Mar 3, 2009 (gmt 0) | 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.
|
coopster

msg:3862787 | 6:56 pm on Mar 4, 2009 (gmt 0) | Or the HTTP Server itself. For example, Apache has Content Negotiation [httpd.apache.org].
|
sandblocks

msg:3864934 | 8:58 am on Mar 7, 2009 (gmt 0) | What you might be referring to is a Google translate link. Tools like this allow you to have your site content translated automatically. [translate.google.com...] 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.
|
|
|