LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   KDE 4.8.5 in french, but Amarok in english (http://www.linuxquestions.org/questions/slackware-14/kde-4-8-5-in-french-but-amarok-in-english-4175457801/)

kikinovak 04-11-2013 12:11 PM

KDE 4.8.5 in french, but Amarok in english
 
Hi,

I'm running Slackware 14.0 with KDE 4.8.5 on a machine here. KDE appears in French OK, thanks to the kde-l10n-fr package. But Amarok displays its interface in english.

What am I missing?

kikinovak 04-11-2013 12:34 PM

Upon further investigation, it looks like the Slackware 14.0 version of Amarok supports 36 languages, among which gaelic, hungarian, basque, finnish, punjabi and bosnian... but not French.

WTF ?!?

Didier Spaier 04-11-2013 12:49 PM

I just had a look at the source tarball for amarok-2.6.0. There is no fr subdirectory in the po directory, that's why...

But there is one in the source tarball for 2.7.0. So just grab it and rebuild the package.

If that doesn't work you will have to copy the /po/fr directory from the 2.7.0 source tree to the 2.6.0 source tree instead, then rebuild the package.

kikinovak 04-13-2013 01:23 AM

Thanks very much, Didier. As soon as I find the time, I'll write a SlackBuild script for Amarok 2.7, I guess.

Didier Spaier 04-13-2013 03:02 AM

Seen this in KDE.SlackBuild:
Code:

# Allow for specification of individual packages to be built:
if [ -z "$1" ]; then
  MODQUEUE=$KDEMODS
else
  MODQUEUE="$*"
fi

So I'd just try:
Code:

./KDE.SlackBuild amarok
EDIT That's not the good way. I tried to tun "KDE.SlackBuilkd extragear" instead, leaving only amarok in file modules/extragear but it complains about missing /usr/lib/libmysqld.a. Sorry I won't investigate further, I don't use amarok anyway...

PS Silly me.. You just have to make a MO file with msgfmt and put it in its place... Wait a few minutes, I'll you indicate you the commands to use.

Didier Spaier 04-13-2013 03:49 PM

Silly me...
 
Code:

tar xf amarok.2.7.0.tar.xz
msgfmt -o /usr/share/locale/fr/LC_MESSAGES/amarok.mo amarok-2.7.0/po/fr/amarok.po

I always need a lot of time to find a simple way to do something...

You can do something similar with other PO files in the same directory (the formatted file should end in .mo).

kikinovak 04-16-2013 04:42 PM

Thumbs up for your elegant solution, Didier !


All times are GMT -5. The time now is 02:32 PM.