3 ;;; Example for use of GNU gettext.
4 ;;; This file is in the public domain.
6 ;;; Source code of the GNU guile program.
8 (use-modules (ice-9 format))
10 (catch #t (lambda () (setlocale LC_ALL "")) (lambda args #f))
11 (textdomain "hello-guile")
12 (bindtextdomain "hello-guile" "@localedir@")
15 (display (_ "Hello, world!"))
17 (format #t (_ "This program is running as process number ~D.") (getpid))