Install gettext-0.18.1.1.tar.gz
[msysgit.git] / mingw / share / doc / gettext / examples / hello-tcl / hello.tcl
blob19832736fb00803b2710ef145ee8dffbf46dda13
1 #!@TCLSH@
2 # Example for use of GNU gettext.
3 # This file is in the public domain.
5 # Source code of the Tcl program.
7 package require msgcat
8 ::msgcat::mcload [file join "@pkgdatadir@" "msgs"]
9 proc _ {s} {return [::msgcat::mc $s]}
11 puts [_ "Hello, world!"]
12 puts [format [_ "This program is running as process number %d."] [pid]]