mirror of
https://https.git.savannah.gnu.org/git/gettext.git
synced 2026-01-31 03:45:49 +00:00
* gettext-tools/examples/hello-php/hello.php: Fix the PHP markup. Don't print the return value of the printf function.
17 lines
374 B
PHP
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";
|
|
?>
|