Comment 6 for bug 1095665

Revision history for this message
Ibuntu (ibun-do-ubuntu) wrote :

I previously commented to attest the validity of Evandro's solution. After reinstalling and reapplying the fix, I noticed that it is very important where you place:

from gettext import gettext as _

in the three files. Initially I placed them too high and Magicicada would not start. So just for clarification, open each of these three files:

/usr/lib/python2.7/dist-packages/magicicada/gui/gtk/operations.py
/usr/lib/python2.7/dist-packages/magicicada/gui/gtk/listings.py
/usr/lib/python2.7/dist-packages/magicicada/gui/gtk/status.py

and add the line:

from gettext import gettext as _

to each of them, right after the line:

# pylint: enable=E0611

and that should work. This is usually right above any lines saying 'import magicicada ....' but also above another import in one of the files. I have tested that as long as 'from gettext import gettext as _' is after '# pylint: enable=E0611' and before any lines that say 'import magicicada ...' in all three files, that it works.