Install gettext-0.18.1.1.tar.gz
[msysgit.git] / mingw / share / doc / gettext / examples / hello-guile / hello.scm
blob43c367e546edea64381e2de520ed701987490fae
1 #!@GUILE@ -s
2 !#
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@")
13 (define _ gettext)
15 (display (_ "Hello, world!"))
16 (newline)
17 (format #t (_ "This program is running as process number ~D.") (getpid))
18 (newline)