Johan Dahlin wrote:
_translation = gettext.translation(APP, DIR)
gtk.glade.bindtextdomain (APP, DIR)
gtk.glade.textdomain (APP)
def _(s):
if s == '':
return s
assert s
return _translation.gettext(s)
This is busted. should only be:
_ = gettext.translation(APP, DIR)
unless I'm missing something.
APP / DIR might be wrong, you'd have to check what files are accessed by
python/
in fact,
_ = gettext.translation(APP, DIR).gettext works
It does the same thing.
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/