LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-11-2013, 11:11 AM   #1
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: ElementaryOS, Ubuntu LTS, Slackware
Posts: 1,530

Rep: Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709
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?
 
Old 04-11-2013, 11:34 AM   #2
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: ElementaryOS, Ubuntu LTS, Slackware
Posts: 1,530

Original Poster
Rep: Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709
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 ?!?
 
Old 04-11-2013, 11:49 AM   #3
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,149

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
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.

Last edited by Didier Spaier; 04-11-2013 at 03:19 PM.
 
2 members found this post helpful.
Old 04-13-2013, 12:23 AM   #4
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: ElementaryOS, Ubuntu LTS, Slackware
Posts: 1,530

Original Poster
Rep: Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709
Thanks very much, Didier. As soon as I find the time, I'll write a SlackBuild script for Amarok 2.7, I guess.
 
Old 04-13-2013, 02:02 AM   #5
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,149

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
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.

Last edited by Didier Spaier; 04-13-2013 at 02:39 PM. Reason: s/xgettext/msgfmt/
 
Old 04-13-2013, 02:49 PM   #6
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,149

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
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).

Last edited by Didier Spaier; 04-13-2013 at 03:48 PM. Reason: Title added
 
1 members found this post helpful.
Old 04-16-2013, 03:42 PM   #7
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: ElementaryOS, Ubuntu LTS, Slackware
Posts: 1,530

Original Poster
Rep: Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709
Thumbs up for your elegant solution, Didier !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
impossible to enter password english keyboard instead of french keyboard papilonaa Linux - Newbie 6 12-03-2013 02:57 AM
[SOLVED] KDE 4.6.5: everything is localized OK in french, except K3B kikinovak Slackware 3 10-14-2011 12:37 AM
LXer: French KDE Day Conference Videos Available LXer Syndicated Linux News 0 06-12-2008 12:30 AM
Looking for a good English/French dictionary in Linux njschroe Linux - Software 2 04-10-2005 09:53 AM
French/English : Cahier des Charges or User Report before Development freddymio Programming 2 06-12-2002 06:22 AM


All times are GMT -5. The time now is 10:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration