1 # Example for use of GNU gettext.
2 # This file is in the public domain.
4 # Source code of the Python program.
9 gettext
.textdomain('hello-python')
10 gettext
.bindtextdomain('hello-python', '@localedir@')
12 print gettext
.gettext("Hello, world!")
13 print gettext
.gettext("This program is running as process number %(pid)d.") \
14 % { 'pid': os
.getpid() }