pygettext examples?

Trond Eivind Glomsrød teg at redhat.com
Mon Dec 3 10:43:27 EST 2001


Martin von Loewis <loewis at informatik.hu-berlin.de> writes:

> teg at redhat.com (Trond Eivind =?iso-8859-1?q?Glomsr=F8d?=) writes:
> 
> > gettext.textdomain(PROGNAME)
> > _=gettext.gettext
> 
> I would recommend against setting the textdomain globally. Instead,
> always use dgettext. That makes it possible to use your code as a
> library in a different program as well, with little coding overhead.

The code was snipped from a small startup program using those
libraries :)

-- 
Trond Eivind Glomsrød
Red Hat, Inc.



More information about the Python-list mailing list