Hi,

I got the same problem and found a workaround:

/usr/share/python-support/deluge-torrent/deluge/__init__.py need to be
changed.

Original __init__.py:

import gettext
        import gtk.glade
        import locale
        import os
        import common
        
        APP = 'deluge'
        DIR = os.path.join(common.INSTALL_PREFIX, 'share', 'locale')
        try:
            locale.setlocale(locale.LC_ALL, '')
        except:
            try:
                locale.setlocale(locale.LC_MESSAGES, '')
            except:
                pass
        gtk.glade.bindtextdomain(APP, DIR)
        gtk.glade.textdomain(APP)
        gettext.bindtextdomain(APP, DIR)
        gettext.textdomain(APP)
        gettext.install(APP, DIR, unicode=1)
        
Changed __init__.py:

import gettext
        import locale
        import os
        import common
        
        APP = 'deluge'
        DIR = os.path.join(common.INSTALL_PREFIX, 'share', 'locale')
        try:
            locale.setlocale(locale.LC_ALL, '')
        except:
            try:
                locale.setlocale(locale.LC_MESSAGES, '')
            except:
                import gtk.glade
                gtk.glade.bindtextdomain(APP, DIR)
                gtk.glade.textdomain(APP)
                pass
        gettext.bindtextdomain(APP, DIR)
        gettext.textdomain(APP)
        gettext.install(APP, DIR, unicode=1)
        

I reported this already to upstream (since I found it there first) on
[1], but I didn't get any reply yet ...

Regards
        -- hgb

[1]: http://forum.deluge-torrent.org/viewtopic.php?f=7&t=812

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to