Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / examples / hello-php / hello.php
blobbb7f9089b1a79d67f00cc4493697c145dbf0e116
1 #!@PHP@ -q
2 <?
3 // Example for use of GNU gettext.
4 // Copyright (C) 2003 Free Software Foundation, Inc.
5 // This file is in the public domain.
6 //
7 // Source code of the PHP program.
9 setlocale (LC_ALL, "");
10 textdomain ("hello-php");
11 bindtextdomain ("hello-php", "@localedir@");
13 echo _("Hello, world!");
14 echo "\n";
15 echo printf (_("This program is running as process number %d."),
16 posix_getpid());
17 echo "\n";