|
Posted by Daniel C. Bastos on 08/19/07 22:36
Alexander Schestag <alex@schestag.info> writes:
> Vic wrote:
[...]
>> 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.
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.
[Back to original message]
|