You are here: Re: English-to-Spanish « PHP Language « IT news, forums, messages
Re: English-to-Spanish

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация