~ubuntu-branches/ubuntu/breezy/gettext/breezy

« back to all changes in this revision

Viewing changes to gettext-tools/examples/hello-php/hello.php

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2004-03-14 17:40:02 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040314174002-p1ad5ldve1hqzhye
Tags: 0.14.1-2
* Added libexpat1-dev to Build-Depends, for glade support.
* Added libc0.1-dev to Build-Depends, for GNU/kFreeBSD.
* Removed special-casing of knetbsd-gnu in debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
?>