SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    a fresh, new start... dujmovicv's Avatar
    Join Date
    Aug 2006
    0 Post(s)
    0 Thread(s)

    Approach to multilingual site

    Hi All,

    I'm about to start developing a PHP engine for a special site. It will be multilingual. I've done a few multilingual sites before but now I really need to hear Your opinion which approach would be better :
    1. with a MySql table with the translations and a unique string ID for each text
    2. one PHP file for each language with arrays containing the different translations with unique string IDs

    There won't be much text on the site at first but I'm almost certain it WILL expand in the future (maybe with more than 3 languages as well).
    So what do you think guys, is it better (faster, more elegant, server-friendly, etc...) to store the translations in a database table and retrieve them when needed or use php files and include/require them on specific pages... ???

    Your advice is HIGHLY appreciated - as always!

    Full time ADMIN - art community
    Part time coder - dsign

  2. #2
    SitePoint Enthusiast
    Join Date
    Aug 2011
    1 Post(s)
    0 Thread(s)
    If the number of translations goes up your site will become slower if you use php arrays. Better to use a mysql table.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts