You are here: Re: Strategies for developing a bilingual website? « PHP Programming Language « IT news, forums, messages
Re: Strategies for developing a bilingual website?

Posted by Ian B on 10/30/20 11:33

I have done this in the past (see www.jasww.com or any other jas site -
they are all really the same site).

We did it with messages in a database (it's CF, but the principle is
the same).
You could use resource files and include the language of choice -
syncing is a problem here
You can write the site in English and go and get a translation

e.g.

echo translate("Welcome");

where translate()...
returns English immediately if language reqd is English
looks up translation in file/db and returns it if found
if translation not found, writes to a log and returns the English

A couple of things to remember, whichever way you do it:

The site needs a liquid layout - message strings will vary in length
Have long messages, eevn if you are sure you can split them up, don't
do it.
Trying to create a message (even a paragraph) from bits is
hazardous. Translating each word in a sentence one by one
obviouslygives pathetic results. even sentence by sentence gives
problems.

Ian

 

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

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