xref: /netbsd-src/external/gpl2/gettext/dist/gettext-tools/examples/hello-sh/hello.sh (revision 946379e7b37692fc43f68eb0d1c10daa0a7f3b6c)
1#!/bin/sh
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 POSIX sh program.
7
8. gettext.sh
9
10TEXTDOMAIN=hello-sh
11export TEXTDOMAIN
12TEXTDOMAINDIR='@localedir@'
13export TEXTDOMAINDIR
14
15gettext "Hello, world!"; echo
16
17pid=$$
18eval_gettext "This program is running as process number \$pid."; echo
19