Connecting Tech Pros Worldwide Forums | Help | Site Map

Multilingual website

hgeithus's Avatar
Newbie
 
Join Date: Oct 2008
Posts: 20
#1: Oct 31 '08
Hi.

I want to create a multilingual website (english, german and norwegian). And I know a little PHP and MySQL. How should I approach this? Should I store the text in different databases? I don't know how to do this in a good way, that makes it easy to maintain.

Any help is welcome. It would be very interesting to hear from someone who has made a similar system before :)

dlite922's Avatar
Expert
 
Join Date: Dec 2007
Location: Moon, Dark Side
Posts: 1,095
#2: Nov 1 '08

re: Multilingual website


I'll tell you one thing, it's a pain in the neck.

Look into gettext. A PHP module you can load that makes life a whole lot easier.

Unfortunately for me site, the host did not allow gettext extension and I had to look into gettext alternative (there is one that does it with code)

A quick Google with this info should lead you down the right path.



Dan
hgeithus's Avatar
Newbie
 
Join Date: Oct 2008
Posts: 20
#3: Nov 1 '08

re: Multilingual website


Thank you. I'll look into it right away :)
hgeithus's Avatar
Newbie
 
Join Date: Oct 2008
Posts: 20
#4: Nov 2 '08

re: Multilingual website


Hi again.

My multilingual website is now up and running with gettext, although there is not much content atm. Anyway, I searched around the web for a resource that could show me how to get started with gettext, and this is the guide that worked for me:

http://mel.melaxis.com/devblog/2005/08/06/localizing-php-web-sites-using-gettext/

It requires minimal of insight, but it illustrates the idea very well. A good example of learning by doing. This is not advertising, it's just a good resource :)
Reply