O'Reilly logo

Core PHP Programming: Using PHP to Build Dynamic Web Sites by Leon Atkinson

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

Gettext

The Gettext functions are based on work by the GNU Translation Project. They aim to make it easier to write programs that send messages to users in their preferred language. You can read more about gettext on the GNU site <http://www.gnu. org/software/gettext/gettext.html>. The PHP functions are wrappers for the gettext library. Detailed documentation is available on the Web <http://www.gnu. org/manual/gettext/index .html>. The Gettext functions rely on translation tables. These are usually given either .po or .mo extensions and are collected into directories. There is a global area for these files, but you can override that directory using bindtextdomain.

The Gettext functions were added to PHP by Alex Plotnick.

string bindtextdomain(string ...

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