New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesnt show the translation / exaile in english #54

Closed
psyca opened this Issue Mar 7, 2015 · 8 comments

Comments

Projects
None yet
2 participants
@psyca

psyca commented Mar 7, 2015

Somehow exaile doest take the translated .po files.
I tried the Windows installation (german) and the text in exaile is still in english.
If i look in the po folder, the german translation looks ok.
Same i found on linux.

@virtuald

This comment has been minimized.

Show comment
Hide comment
@virtuald

virtuald Mar 7, 2015

Contributor

The option for the installer's language is different than what Exaile actually uses. Exaile will use the detected locale -- so if your OS is in English locale, it will use that.

When exaile 3.4.x first starts from the command line, it says something like "Using XXX locale". What does your installation of Exaile say?

Contributor

virtuald commented Mar 7, 2015

The option for the installer's language is different than what Exaile actually uses. Exaile will use the detected locale -- so if your OS is in English locale, it will use that.

When exaile 3.4.x first starts from the command line, it says something like "Using XXX locale". What does your installation of Exaile say?

@psyca

This comment has been minimized.

Show comment
Hide comment
@psyca

psyca Mar 7, 2015

INFO : Loading Exaile 3.4.2 on Python 2.7.9...
INFO : Loading settings...
INFO : Using de_DE UTF-8 locale
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
INFO : Loading plugins...
INFO : Loading collection...
WARNING : Exception occurred while loading /home/jurgen/.local/share/exaile/music.db
WARNING : Exception occurred while loading /home/jurgen/.local/share/exaile/music.db
WARNING : Exception occurred while loading /home/jurgen/.local/share/exaile/music.db
INFO : Loading devices...
INFO : Connected to udisks2
INFO : Loading interface...
INFO : Using GTK+ 2.24.26
INFO : Loading main window...
/usr/share/exaile/xlgui/guiutil.py:123: Warning: g_object_set_qdata: assertion 'G_IS_OBJECT (object)' failed
parent.add(replacement)
INFO : Connecting main window events...
INFO : Loading panels...
INFO : Connecting panel events...
INFO : Done loading main window...
INFO : WARNING: could not open podcast file
INFO : Exaile is shutting down...
INFO : Disabling plugins...
INFO : Saving state...
INFO : Bye!
Exception TypeError: "'NoneType' object is not callable" in ignored
Exception TypeError: "'NoneType' object is not callable" in ignored


This problem was also discussed in the german Mageia forum:
https://forums.mageia.org/de/viewtopic.php?f=18&t=2411

psyca commented Mar 7, 2015

INFO : Loading Exaile 3.4.2 on Python 2.7.9...
INFO : Loading settings...
INFO : Using de_DE UTF-8 locale
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
INFO : Loading plugins...
INFO : Loading collection...
WARNING : Exception occurred while loading /home/jurgen/.local/share/exaile/music.db
WARNING : Exception occurred while loading /home/jurgen/.local/share/exaile/music.db
WARNING : Exception occurred while loading /home/jurgen/.local/share/exaile/music.db
INFO : Loading devices...
INFO : Connected to udisks2
INFO : Loading interface...
INFO : Using GTK+ 2.24.26
INFO : Loading main window...
/usr/share/exaile/xlgui/guiutil.py:123: Warning: g_object_set_qdata: assertion 'G_IS_OBJECT (object)' failed
parent.add(replacement)
INFO : Connecting main window events...
INFO : Loading panels...
INFO : Connecting panel events...
INFO : Done loading main window...
INFO : WARNING: could not open podcast file
INFO : Exaile is shutting down...
INFO : Disabling plugins...
INFO : Saving state...
INFO : Bye!
Exception TypeError: "'NoneType' object is not callable" in ignored
Exception TypeError: "'NoneType' object is not callable" in ignored


This problem was also discussed in the german Mageia forum:
https://forums.mageia.org/de/viewtopic.php?f=18&t=2411

@virtuald

This comment has been minimized.

Show comment
Hide comment
@virtuald

virtuald Mar 7, 2015

Contributor

Ah, the information on the forum is useful, I see the problem. I'll look into fixing it tonight.

Contributor

virtuald commented Mar 7, 2015

Ah, the information on the forum is useful, I see the problem. I'll look into fixing it tonight.

@virtuald virtuald added the Type: bug label Mar 7, 2015

@virtuald virtuald added this to the Exaile 3.4.4 milestone Mar 7, 2015

@virtuald

This comment has been minimized.

Show comment
Hide comment
@virtuald

virtuald Mar 7, 2015

Contributor

There's definitely a problem with the way that Exaile installs it's locale files from the Makefile. It installs them by default to /usr/local/share/locale/po, but gettext is looking for them (seen via strace) in /usr/share/locale/po.

As for the problem reported on mageia, it seems like it installs exaile a bit differently than I would expect. I can't seem to find their RPM repository, can you post the output of rpm -ql exaile to a gist/pastebin? Thanks!

Contributor

virtuald commented Mar 7, 2015

There's definitely a problem with the way that Exaile installs it's locale files from the Makefile. It installs them by default to /usr/local/share/locale/po, but gettext is looking for them (seen via strace) in /usr/share/locale/po.

As for the problem reported on mageia, it seems like it installs exaile a bit differently than I would expect. I can't seem to find their RPM repository, can you post the output of rpm -ql exaile to a gist/pastebin? Thanks!

@psyca

This comment has been minimized.

Show comment
Hide comment
@psyca

psyca Mar 7, 2015

The output
http://www.mageia.psyca.de/exaile.txt

The RPMs (a mirror)
ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/Mageia/distrib/cauldron/SRPMS/core/release
ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/Mageia/distrib/cauldron/i586/media/core/release
ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/Mageia/distrib/cauldron/x86_64/media/core/release

psyca commented Mar 7, 2015

The output
http://www.mageia.psyca.de/exaile.txt

The RPMs (a mirror)
ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/Mageia/distrib/cauldron/SRPMS/core/release
ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/Mageia/distrib/cauldron/i586/media/core/release
ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/Mageia/distrib/cauldron/x86_64/media/core/release

virtuald added a commit that referenced this issue Mar 8, 2015

@virtuald

This comment has been minimized.

Show comment
Hide comment
@virtuald

virtuald Mar 8, 2015

Contributor

Cool, just as I suspected. Looks like Mageia packaging exaile in /usr/share/exaile -- with the exception of the po files, which it places in a standard location. The code that tries to detect whether we're running from a local checkout looked for a 'data' directory -- which existed, but not the 'po' directory. I changed it to search for the 'po' directory, which should solve that particular problem for you.

However, does not fix some secondary problems yet.

Contributor

virtuald commented Mar 8, 2015

Cool, just as I suspected. Looks like Mageia packaging exaile in /usr/share/exaile -- with the exception of the po files, which it places in a standard location. The code that tries to detect whether we're running from a local checkout looked for a 'data' directory -- which existed, but not the 'po' directory. I changed it to search for the 'po' directory, which should solve that particular problem for you.

However, does not fix some secondary problems yet.

@virtuald

This comment has been minimized.

Show comment
Hide comment
@virtuald

virtuald Mar 8, 2015

Contributor

@psyca let me know if #56 works for you on linux

Contributor

virtuald commented Mar 8, 2015

@psyca let me know if #56 works for you on linux

@psyca

This comment has been minimized.

Show comment
Hide comment
@psyca

psyca Mar 8, 2015

I cant proof it directly, because i dont know how to build pakages :)
But i filled an bugreport in Mageia.

https://bugs.mageia.org/show_bug.cgi?id=15447

\o/ Many thanks for your work \o/

psyca commented Mar 8, 2015

I cant proof it directly, because i dont know how to build pakages :)
But i filled an bugreport in Mageia.

https://bugs.mageia.org/show_bug.cgi?id=15447

\o/ Many thanks for your work \o/

@virtuald virtuald closed this in #56 Mar 10, 2015

@virtuald virtuald self-assigned this Mar 15, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment