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 Peter Fox on 10/16/82 11:33

Following on from will's message. . .
>I have a php/mysql site and I am wondering if anyone has suggestions
>about strategies for making it bilingual or resources on how to do
>this. I thought of one way which would be to replace the text with
>calls to a database which has all the text in it. But I would prefer to
>have a single file with phrases and then just be able to translate that
>single file into another language to produce a site in another
>language.
>Any ideas would be appreciated.
>
Some thoughts:
* If the functionality in all languages is the same then some form of
lookup is practical. If on the other hand you are developing a
multi/national/ web site where perhaps you will have different forms for
different data (eg postal addresses and taxes may be different) then you
probably want to have mysite.com/en/.... and mysite.com/fr/... pages.

* There are three phases to 'translation' (1) - The initial page
design/test and (2) Ongoing maintenance of pages (3) Frequently changes
messages (offer of the day etc)
Item (3) looks like a database with built-in maintenance function the
users can play with.
Items (1) and (2) I would handle by creating a master version in my home
language and translate once (rather than add server load at every page
access to do exactly the same thing over and over again) to clone
other-language copies....

....You'd need a defined development process,
I'd have texts in my master as eg "~WELCOMEMSG~Welcome to my web site.
For a French version <a href="../fr/index.htm>click here</a>~" and write
a macro processor that can (a) extract the texts from all my pages to
pass to a qualified translator and (b) create final php copies with the
leading key removed and text substituted with the language of your
choice. Using this scheme you can thoroughly test albeit with extra key
words in your text and leave translation to somebody who is good at it.


--
PETER FOX Not the same since the poster business went to the wall
peterfox@eminent.demon.co.uk.not.this.bit.no.html
2 Tees Close, Witham, Essex.
Gravity beer in Essex <http://www.eminent.demon.co.uk>

 

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

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