File: hello.tcl

package info (click to toggle)
gettext 0.18.1.1-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 70,240 kB
  • ctags: 41,179
  • sloc: ansic: 333,297; sh: 51,526; makefile: 8,312; perl: 4,181; lisp: 3,357; yacc: 665; java: 613; cs: 578; sed: 369; objc: 337; cpp: 325; awk: 80; tcl: 63; pascal: 11; php: 8
file content (12 lines) | stat: -rw-r--r-- 328 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
#!@TCLSH@
# Example for use of GNU gettext.
# This file is in the public domain.
#
# Source code of the Tcl program.

package require msgcat
::msgcat::mcload [file join "@pkgdatadir@" "msgs"]
proc _ {s} {return [::msgcat::mc $s]}

puts [_ "Hello, world!"]
puts [format [_ "This program is running as process number %d."] [pid]]