FreeBSD Port: deskutils/hamster-applet

Ruslan Mahmatkhanov cvs-src at yandex.ru
Sun May 23 18:39:21 UTC 2010


23.05.2010 14:53, Jeff Molofee пишет:
> *I get the following error running hamster-standalone or gnome-time-tracker
> *
> ** (hamster-standalone:36135): WARNING **: Trying to register gtype
> 'WnckWindowState' as enum when in fact it is of type 'GFlags'
>
> ** (hamster-standalone:36135): WARNING **: Trying to register gtype
> 'WnckWindowActions' as enum when in fact it is of type 'GFlags'
>
> ** (hamster-standalone:36135): WARNING **: Trying to register gtype
> 'WnckWindowMoveResizeMask' as enum when in fact it is of type 'GFlags'
> Traceback (most recent call last):
> File "/usr/local/bin/hamster-standalone", line 529, in <module>
> module.bindtextdomain('hamster-applet', locale_dir)
> AttributeError: 'module' object has no attribute 'bindtextdomain'
>

This is a dirty hack but it will work for you while maintainer
(or upstream) fixes it. Change lines 528-530 in
/usr/local/bin/hamster-standalone like this:

528     for module in (gettext, locale):
529         gettext.bindtextdomain('hamster-applet', locale_dir)
530         gettext.textdomain('hamster-applet')

Python's locale module on FreeBSD didn't have bindtextdomain attribute.
See http://docs.python.org/library/locale.html#access-to-message-catalogs


-- 
Regards,
Ruslan


More information about the freebsd-gnome mailing list