1 # Example for use of GNU gettext.
2 # Copyright (C) 2003 Free Software Foundation, Inc.
3 # This file is in the public domain.
5 # Source code of the Python program.
10 gettext
.textdomain('hello-python')
11 gettext
.bindtextdomain('hello-python', '@localedir@')
13 print gettext
.gettext("Hello, world!")
14 print gettext
.gettext("This program is running as process number %(pid)d.") \
15 % { 'pid': os
.getpid() }