xref: /netbsd-src/external/gpl2/gettext/dist/gettext-tools/examples/hello-php/hello.php (revision 946379e7b37692fc43f68eb0d1c10daa0a7f3b6c)
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.
8
9  setlocale (LC_ALL, "");
10  textdomain ("hello-php");
11  bindtextdomain ("hello-php", "@localedir@");
12
13  echo _("Hello, world!");
14  echo "\n";
15  echo printf (_("This program is running as process number %d."),
16               posix_getpid());
17  echo "\n";
18?>
19