Home > Archive > PHP Language > August 2007 > English-to-Spanish
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
English-to-Spanish
|
|
|
| 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 an
automatic translation. Can anybody recommend a PHP library that will handle
this kind of translation behind the scenes?
| |
| Alexander Schestag 2007-08-19, 4:00 am |
| Vic 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 handle
> 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
| |
| Daniel C. Bastos 2007-08-19, 6:59 pm |
| Alexander 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.
|
|
|
|
|