1#!@PHP@ -q 2<? 3 // Example for use of GNU gettext. 4 // This file is in the public domain. 5 // 6 // Source code of the PHP program. 7 8 setlocale (LC_ALL, ""); 9 textdomain ("hello-php"); 10 bindtextdomain ("hello-php", "@localedir@"); 11 12 echo _("Hello, world!"); 13 echo "\n"; 14 echo printf (_("This program is running as process number %d."), 15 posix_getpid()); 16 echo "\n"; 17?> 18