Comment 0 for bug 240328

Revision history for this message
Andrea Corbellini (andrea.corbellini) wrote :

With the latest release of bzr-gedit (0.5) the plugin can't be loaded because of an ImportError:

Traceback (most recent call last):
  File "/home/andrea/.gnome2/gedit/plugins/bzr/__init__.py", line 40, in <module>
    import widgets
  File "/home/andrea/.gnome2/gedit/plugins/bzr/widgets.py", line 8, in <module>
    from bzrlib.plugins.gtk import _i18n
ImportError: cannot import name _i18n

In fact _i18n doesn't exist in bzr (1.6b2). Instead there's gettext so this problem can be fixed in this way:
  -from bzrlib.plugins.gtk import _i18n
  +from bzrlib.plugins.gtk import gettext as _i18n