Hi, Im working on a website written in Spanish, I need it in English also. Ive never done this before, not sure what the proper way would be. Im sure the website isnt rewritten in different languages, multiple pages, there must be some kind of server side lang switcher or something..??? Any direction will be appreciated. Also, Im not sure if the server translates ,? but if it does, I have noticed that when you translate with , say google, it comes out completely whacky english.. thanks for any help.
Not really a css issue, but you could make two language files, arrays or database tables for the content and use a cookie, a session variable or the HTTP Accept language variable to determine the language and switch between them.
Sorry about the css category, didnt notice. Do you know were I can do some reading to go about starting one of the options. ? Thanks again for your help.
Someone will probably have a better way, but here's how I'd do it: Using PHP, set a session variable to the language they choose on either an intro page or from a link on your navigation or something. Load the content as XML, have each file with two nodes; <content lang="english"></content>, <content lang="spanish"></content>, match the session variable to the lang attribute of the content node...
I have made a couple of multi language web sites. When I make these kind of sites I do the following: * First check the HTTP Accept language variable so we can try to serve the correct language to the reader * Since some have English as this language in their browser, but they normally prefer another language they must have an option to choose. I store this new information in a session/cookie which overrides HTTP Accept language. * Don't forget the search engines, make sure they don't get into any problems since they don't use sessions and (probably not) sends HTTP Accept language. Therefor, you must define at "standard" language if the two first options fails.
The option I use for this is a redirect link (since I've had trouble with Opera caching the first language). I use a 301-redirect , and not a 302 (since this isn't a temporary redirect).
I either use language files or grab the different languages from my database.
Thank you for all the help, Im still doing some reading on how to go about this, but at least I know wich route to go and what I should research. I appreciate all the help.
If you want a content management system behind your site, then you could try using Plone. One of the developers came to our offices a coupe of months ago and was giving us the hard-sell. The main thing that interested me was the fact that it seemed to have pretty good facilities for multi-lingual sites.
However, I have to say that I haven't looked into it beyond a brief skim of their homepage, but have a look here :- http://plone.org/