There are many ways to design a multilingual application in PHP. Some language file based, others database based.
-
I am looking to use it for mostly
small amounts of text e.g errors – at
most a paragraph. -
I guess I will need twenty or so
languages.
Really I am looking for recommendations rather than a definitive answer. What have you used before, what is fastest, easiest to update etc.
Many thanks,
The
Gettextfamily of functions is a good starting point:Zend_Translateis extremely flexible and has a thread-safe implementation ofgettext. The manual states that it addresses the following problems with native internationalization implementations:It is worth noting that the
Zend Frameworkis not a full-stack framework – in other words, you will not need to use the whole thing just to make use of its internationalization API.What I really like about it is its support for multiple adapters for different data sources, which you can easily mix, match, and change only having to apply very light modifications to your application. Hope that helps.