O'Reilly logo

PHP 5 CMS Framework Development by Martin Brampton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Framework solution

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.

The gettext implementation

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required