Code Comments
Programming Forum and web based access to our favorite programming groups.I've been asked to develop a site which will display the content in either English or Spanish, upon the user's choice. Other than using Google's translation ability or something similar I don't know any means for making a n automatic translation. Can anybody recommend a PHP library that will handle this kind of translation behind the scenes?
Post Follow-up to this messageVic wrote: > I've been asked to develop a site which will display the content in either > English or Spanish, upon the user's choice. Other than using Google's > translation ability You call this joke "ability"? LOL! Google's translations are good for a laugh, but not for serious purposes. > or something similar I don't know any means for making an > automatic translation. Can anybody recommend a PHP library that will handl e > this kind of translation behind the scenes? AFAIK, there isn't any. And even if there was such an extension, I wouldn't trust it. Automatic translations often produce bullshit. So, the best way to do the job is to produce to static versions in English and Spanish and to display them on the user's choice. Alex
Post Follow-up to this messageAlexander Schestag <alex@schestag.info> writes: > Vic wrote: [...] > > AFAIK, there isn't any. And even if there was such an extension, I > wouldn't trust it. Automatic translations often produce bullshit. So, > the best way to do the job is to produce to static versions in English > and Spanish and to display them on the user's choice. One idea to implement this is to grab the user's choice as, say, "en" or "fr" and use this prefix to see if a page is available. If you had the time to translate index.html to french, then index.fr.html will exist, and so you display it; if not, then index.en.html would be displayed or whatever your default is. In fact, you may even tell the user you had not had the time to translate, and he may do it and send it to you, and you will gladly accept the kindness.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.