Install gettext-0.18.1.1.tar.gz
[msysgit.git] / mingw / share / doc / gettext / examples / hello-php / hello.php
blobca226f9c625c237a3b261c24d04e7af9aa6ffabd
1 #!@PHP@ -q
2 <?
3 // Example for use of GNU gettext.
4 // This file is in the public domain.
5 //
6 // Source code of the PHP program.
8 setlocale (LC_ALL, "");
9 textdomain ("hello-php");
10 bindtextdomain ("hello-php", "@localedir@");
12 echo _("Hello, world!");
13 echo "\n";
14 echo printf (_("This program is running as process number %d."),
15 posix_getpid());
16 echo "\n";