pygettext examples?

Martin von Loewis loewis at informatik.hu-berlin.de
Sun Dec 2 09:08:42 EST 2001


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.

Regards,
Martin




More information about the Python-list mailing list