diff options
Diffstat (limited to 'gettext-tools/examples/hello-gawk/hello.awk')
-rw-r--r-- | gettext-tools/examples/hello-gawk/hello.awk | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gettext-tools/examples/hello-gawk/hello.awk b/gettext-tools/examples/hello-gawk/hello.awk new file mode 100644 index 0000000..872d2af --- /dev/null +++ b/gettext-tools/examples/hello-gawk/hello.awk @@ -0,0 +1,15 @@ +#!@GAWK@ -f +# Example for use of GNU gettext. +# Copyright (C) 2003 Free Software Foundation, Inc. +# This file is in the public domain. +# +# Source code of the GNU awk program. + +BEGIN { + TEXTDOMAIN = "hello-gawk" + bindtextdomain ("@localedir@") + + print _"Hello, world!" + printf _"This program is running as process number %d.", PROCINFO["pid"] + print +} |