Most efficient approach for multilingual PHP website

Posted by alexteg on Stack Overflow See other posts from Stack Overflow or by alexteg
Published on 2010-05-10T22:28:17Z Indexed on 2010/05/10 22:34 UTC
Read the original article Hit count: 273

Filed under:
|
|
|
|

I am working on a large multilingual website and I am considering different approaches for making it multilingual. The possible alternatives I can think of are:

  1. The Gettext functions with generation of .po files
  2. One MySQL table with the translations and a unique string ID for each text
  3. PHP-files with arrays containing the different translations with unique string IDs

As far as I have understood the Gettext functions should be most efficient, but my requirement is that it should be possible to change a text string in the original reference language (English) without the other translations of that string automatically reverting back to English just because a couple of words changed. Is this possible with Gettext?

What is the least resource demanding solution?
Is using the Gettext functions or PHP files with arrays more or less equally resource demanding?
Any other suggestions for more efficient solutions?

© Stack Overflow or respective owner

Related posts about php

Related posts about multilingual