Bruno Haible 86c7e742d7 examples: hello-php: Fix runtime error.
* gettext-tools/examples/hello-php/hello.php: Fix the PHP markup. Don't print
the return value of the printf function.
2018-10-18 21:16:58 +02:00

17 lines
374 B
PHP

#!@PHP@ -q
<?php
// 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";
printf (_("This program is running as process number %d."), posix_getpid());
echo "\n";
?>