xref: /netbsd-src/external/gpl2/gettext/dist/gettext-tools/examples/hello-gawk/hello.awk (revision 946379e7b37692fc43f68eb0d1c10daa0a7f3b6c)
1#!@GAWK@ -f
2# Example for use of GNU gettext.
3# Copyright (C) 2003 Free Software Foundation, Inc.
4# This file is in the public domain.
5#
6# Source code of the GNU awk program.
7
8BEGIN {
9  TEXTDOMAIN = "hello-gawk"
10  bindtextdomain ("@localedir@")
11
12  print _"Hello, world!"
13  printf _"This program is running as process number %d.", PROCINFO["pid"]
14  print
15}
16