Package: subdownloader
Version: 2.0.18-1
Severity: important

The subdownloader package in Debian seems to not properly locate the compiled 
.mo translations files:

$ subdownloader -d
[22:15] DEBUG::subdownloader.gui.main # Scanning translation files .mo in 
folder: locale
[22:15] DEBUG::subdownloader.gui.main # Found these translations languages: []
[22:15] DEBUG::subdownloader.gui.main # Interface language: en

The code in question lives in gui/main.py:

    def SetupInterfaceLang(self):
        if platform.system() == "Linux":
            if self.programFolder == '/usr/share/subdownloader':
                localedir = '/usr/share/locale/'
            else:
                localedir = 'locale'
        else:
                localedir = 'locale'
                #Get the local directory since we are not installing anything
                #local_path = os.path.realpath(os.path.dirname(sys.argv[0]))
                #print local_path


Since in Debian self.programFolder is not /usr/share/subdownloader but 
/usr/share/pyshared/subdownloader, it defaults back to the relative "locale" 
folder.
The Debian package should patch the 3rd line to adapt for the correct value of 
self.programFolder.



Marking the bug as important, as non-English users might have problems using 
the program.
(note that even after patching this, it looks like part of the UI is still in 
English. another issue might be causing that)

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.16-3-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages subdownloader depends on:
ii  python               2.7.8-1
ii  python-crypto        2.6.1-5+b1
ii  python-kaa-metadata  0.7.7+svn4596-4
pn  python:any           <none>

Versions of packages subdownloader recommends:
ii  python-qt4  4.11.2+dfsg-1

subdownloader suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to