No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / examples / hello-python / hello.py.in
blob4e56cc179307576add528d3cb99bcd4ce5fde75d
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.
7 import gettext
8 import os
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() }