Install gettext-0.18.1.1.tar.gz
[msysgit.git] / mingw / share / doc / gettext / examples / hello-tcl-tk / hello.tcl
blob4dfee53a084fb0818c2c19e66e4fab031f7d25b3
1 #!@WISH@
2 # Example for use of GNU gettext.
3 # This file is in the public domain.
5 # Source code of the Tcl/Tk program.
7 package require msgcat
8 ::msgcat::mcload [file join "@pkgdatadir@" "msgs"]
9 proc _ {s} {return [::msgcat::mc $s]}
11 frame .my
12 button .my.button \
13 -text [_ "Hello, world!"] \
14 -command exit
15 label .my.label \
16 -text [format [_ "This program is running as process number %d."] [pid]]
17 pack .my.button -side top
18 pack .my.label -side bottom
19 pack .my