Before embarking on details of the code to achieve a range of
gettext services within a PHP5 framework, it is important to say that this code is adapted from original work done by Carlos Souza, and incorporated into Mambo 4.6 and subsequent releases. The code has been released under either GNU/GPL or the MIT License. Now to the details of how to apply
gettext to a PHP5 CMS framework.
Everything can be achieved regardless of whether
gettext is installed on the computer running the CMS framework, and irrespective of whether the PHP
gettext library is available. In the original implementation for Mambo, the exception to this was the gathering, by scanning code files, of strings for translation. ...