summaryrefslogtreecommitdiff
path: root/gettext-tools/examples/hello-php/hello.php
blob: ca226f9c625c237a3b261c24d04e7af9aa6ffabd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!@PHP@ -q
<?
  // Example for use of GNU gettext.
  // This file is in the public domain.
  //
  // Source code of the PHP program.

  setlocale (LC_ALL, "");
  textdomain ("hello-php");
  bindtextdomain ("hello-php", "@localedir@");

  echo _("Hello, world!");
  echo "\n";
  echo printf (_("This program is running as process number %d."),
               posix_getpid());
  echo "\n";
?>