Install gettext-0.18.1.1.tar.gz
[msysgit.git] / mingw / share / doc / gettext / examples / hello-python / hello.py.in
blobfffe85563eb6bcb539f88eb005da5b479cb402de
1 # Example for use of GNU gettext.
2 # This file is in the public domain.
4 # Source code of the Python program.
6 import gettext
7 import os
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() }