Multilingual website

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hgeithus
    New Member
    • Oct 2008
    • 20

    Multilingual website

    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
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    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

    Comment

    • hgeithus
      New Member
      • Oct 2008
      • 20

      #3
      Thank you. I'll look into it right away :)

      Comment

      • hgeithus
        New Member
        • Oct 2008
        • 20

        #4
        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 :)

        Comment

        Working...