gettext-example
This small program shows the basics of using the GNU Project library gettext for supporting internationalization (i18n) in your applications. Please use gettext and do not reinvent the wheel.
Run this program by executing it from the command line:
$ php gettext-example.php