Canek Peláez Valdés a écrit : > On Mon, Apr 27, 2009 at 5:45 AM, Philippe Normand <[email protected]> > wrote: >> Hi Canek, > > Hi! > >> That's awesome ;) I'd love to test your plugin but your website seems >> down at the moment. > > Yeah, sorry about that. It's up and running again. > > http://xochitl.matem.unam.mx/~canek/elisa/ > >> You can send the egg to the mailing list if you >> want. > > Currently my egg file doesn't work because I didn't put a i18n > directory and elisa fails to load it with the message: > > exception importing decorator elisa.plugins.fspot.controller:fspot_decorator: > failure <type 'exceptions.KeyError'> at > /usr/lib64/python2.5/site-packages/pkg_resources.py:1322: > _extract_resource(): 'elisa/plugins/fspot/i18n' > (elisa/plugins/pigment/pigment_frontend.py:257) > > Funnily enough, it works if I install the plugin with python setup.py install.
I can see two easy solutions: 1) Just add an i18n directory to your plugin containing an empty __init__.py file and generate a po template called messages.pot (instructions for this can be found in elisa-core/docs/internationalization.txt. You can worry later about providing actual translations in various languages. That's the best solution since it prepares your plugin for translation. 2) The lazy solution: remove any internationalized strings from your code (and any call to elisa.core.utils.i18n.install_translation). > Besides that, the plugin needs a little Python module for the > gdk_pixdata_deserialize function, because it's not covered by the > PyGtk bindings. > > Any suggestion with both problems would be really appreciated. Oh, and > I only tested my plugin against version 0.5.35 (in Linux), don't know > if it still works in 0.5.36 or 0.5.37 (but it should, I guess). > > Saludos.
