Comment 1 for bug 434199

Revision history for this message
Severin H (severinh) wrote :

Hi Zach,

thanks for taking the time to report this. I'm not sure why the "locale" module doesn't have a "bindtextdomain" function on your machine. A quick test revealed that for the UI translation to work 100%, one needs to call the three functions provided by both gettext and locale, otherwise, some menu entries will remain untranslated, which is not that bad. At least it's much better than an application crash. ;-)

I could change the setup_translation method to something like this:

        domain = "lottanzb"

        for module in (gettext, locale):
            try:
                module.bindtextdomain(domain, resources.get_locale())
                module.bind_textdomain_codeset(domain, "UTF-8")
                module.textdomain(domain)
            except AttributeError:
                pass

A fix for this bug will be part of LottaNZB 0.5.2.