On Wed, 9 May 2001, Allingham, Donald wrote:
> I discovered I wasn't passing the domain to libglade,
> so I modified the line to:
>
> g = libglade.GladeXML("foo.glade","foo","foo")
>
> but it still doesn't work. How do I get it to recognize
> the domain?
You will need a python module that wraps the gettext library (such as
_intl) to call bindtextdomain() to tell the C level gettext library where
the translations for that domain should be. If you call textdomain("foo")
then you shouldn't need to use the extra domain arg to the GladeXML
constructor.
Unfortunately, the gettext.py distributed with python >= 2.0 (and the
gettext.py in gnome-python) are insufficient because they are pure python
implementations, so the gettext library has no idea what they are doing :(
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk