Page 61 of 117

locale not working

Posted: Mon 25 Jun 2012, 04:06
by vicmz
Pmusic 2.6.3 working fine. The only bug is the GUI remains English despite default system language being Spanish. I'm translating the latest Pmusic and I can't see the translations on the GUI. I tried restarting X and rebooting, no changes. I have a Wary 5.3 frugal install to USB key, UTF-8 turned on.

BTW, I like the new choice for saving geometry, makes it more comfortable.

Posted: Mon 25 Jun 2012, 04:48
by 01micko
Hi Sigmund

I should learn to read code :oops:

I see your intention in the pinstall.sh and what I reference was wrong. It may even break stuff in a current running system, though will more likely just error and not run.

The stuff you intend to happen in woof can't because $HOME is not defined. Until woof supports multiuser the only way is either hard code to root or not have that routine. Also /tmp don't exist until the system is up and running. I just glanced at $HOME and didn't read the code knowing in my head $HOME can't exist in the build system. Sorry!

Maybe you could hide your code elsewhere and make it part of the pmusic initial code generation? That would work.

Cheers

Re: locale not working

Posted: Mon 25 Jun 2012, 06:53
by zigbert
vicmz wrote:Pmusic 2.6.3 working fine. The only bug is the GUI remains English despite default system language being Spanish. I'm translating the latest Pmusic and I can't see the translations on the GUI. I tried restarting X and rebooting, no changes. I have a Wary 5.3 frugal install to USB key, UTF-8 turned on.

BTW, I like the new choice for saving geometry, makes it more comfortable.
I 'think' your problem is that Pmusic has changed structure of the locale-files. The older model (which you probably are using) holds the spanish file as /usr/local/pmusic/locals/es:ES_spanish, while the new file is /usr/share/locales/es/LC_MESSAGES/pmusic


Good luck
Sigmund

Posted: Mon 25 Jun 2012, 06:59
by zigbert
01micko wrote: I see your intention in the pinstall.sh and what I reference was wrong. It may even break stuff in a current running system, though will more likely just error and not run.

The stuff you intend to happen in woof can't because $HOME is not defined. Until woof supports multiuser the only way is either hard code to root or not have that routine. Also /tmp don't exist until the system is up and running. I just glanced at $HOME and didn't read the code knowing in my head $HOME can't exist in the build system. Sorry!
No $HOME and no /tmp - is this the intended way to build up a system? When you tell this, it's not hard to see that my script fails :D
01micko wrote:Maybe you could hide your code elsewhere and make it part of the pmusic initial code generation? That would work.
Of course, but it wouldn't set up the roxapp or the rox-icon until you start Pmusic, and that doesn't sound like the best solution to me.


Sigmund

Posted: Mon 25 Jun 2012, 07:24
by greengeek
Hi Sigmund, I have recently been using earlier versions of Pmusic to play and rip music, but have been unable to find a way to get it to play an entire folder. Is there an easy way to add a whole folder to the playlist? And does this function only exist in more recent versions? (I think it was version 1.63 I was trying...). Thanks

Posted: Mon 25 Jun 2012, 15:46
by zigbert
greengeek
Browse (with the internal browser) to the folder of your liking, and choose 'Add all' from the Music-Source menu.


Sigmund

Posted: Mon 25 Jun 2012, 20:22
by greengeek
zigbert wrote:greengeek
Browse (with the internal browser) to the folder of your liking, and choose 'Add all' from the Music-Source menu.
Thanks Sigmund. I tried this (took me a while because I did not realise initially that the browsing is "single-click" not double :-) ) but it seems that it is necessary to go into the deepest folder and add the tracks just from that folder, instead of being able to add a group of folders. Am I using this wrong, or is this a normal limitation?

I would like to be able to add my entire "Music" folder to the playlist (and then select "random play", but I don't want to have to go into each folder one by one to add them to the playlist. Hope you can understand what I am trying to explain.

Posted: Mon 25 Jun 2012, 21:30
by zigbert
greengeek
I fully understand you (I hope :) )
It seems you are used to another kind of audio players that uses the playlist as its music storage - Like Winamp. Pmusic on the other hand is not clever with huge playlists. Instead it want you to work in the Music-source field which is built to handle enormous music collections. What is one of Pmusic strengths is that the Playlist(s) integrates well with other tools like copy/convert/rip/burn/masstag. With this in mind, the playlist (in Pmusic) is not the place to dump stuff, but the place to collect the tracks you actually want to act on; and acting of course includes playing....

Here follows 3 quests from the Pmusic FAQ

When I dump all my thousands of songs into a playlist, Pmusic becomes real slow?

Yes, depending on your CPU, Pmusic starts to become slow after adding some hundreds songs. But there is a solution. Please keep in mind a typical 150 song playlist is probably a 8+ hour long session. If your collection is larger than that, I recommend you to index the music files. It is a much faster way of selecting your songs to play. See next question for more information.

Why should I index my music?

There is no need of indexing your audio files. Pmusic has a builtin file-browser where you can find your music and add it to the playlist. This works perfectly for small music collections. If you on the other hand experience that it's hard to navigate through your huge collection, it's time to consider indexing.

You might think that 'indexing' sounds advanced, - but it's not. it is only a table holding information about all your songs and albums. This makes it easy to sort your music by artist, album, song name.... Also, Pmusic lists 20000 songs from your index in a blink of an eye. Open a directory with the same amount of files, you can drink a cup of coffee while waiting. While building the table (the index), Pmusic scans your system for audio files. It is possible to run various filters during this scan. ie. 'files in the same directory belongs together, and should be put in a new album'. Pmusic offers some simple filters depending on your collection structure.

But the biggest advantage of an index is its speed when searching for a song. Pmusic searches so fast that the search result shows up while typing. The downside is that the index must be refreshed after adding more music to your collection.

So if you have a large library, indexing is the way to go. Because of the search speed, you can create a playlist "session" to suit your needs of the moment quite quickly. When you have a playlist the way you want it, you can always save it for reuse later.

But hey, since I can't put my entire collection into the playlist, how can I play a random song?

In Pmusic you have to first 'Add random songs' from the music-source (browser) field into the playlist, - then play. You can define how many songs you want to pick randomly from the list of your music sources.

This way gives an improved random feature... Because Pmusic picks random tracks only from the shown list in the music-source field, you can finetune the random feature. Ie. First search for TNT, and then pick 10 random TNT-songs.

Posted: Mon 25 Jun 2012, 21:36
by zigbert
greengeek
I see that it should offer a 'recursive' checkbox for 'Add random'. Added to todo list.

This could be valid for 'Add all', but I really don't want users to do this... because Pmusic probably becomes a bad experience.


Sigmund

Posted: Wed 27 Jun 2012, 00:11
by OscarTalks
Hello Sigmund,

I have installed Pmusic 2.6.3 in Slacko 5.3.3 and Lupu Plus 5.2.8-005 on another computer but I can't see the "Stop" function in the "Track" menu.

I can see a line in the file /usr/local/pmusic/gui_menu

Is there something else I need to do?

Many thanks for all the hard work.

Posted: Wed 27 Jun 2012, 07:42
by zigbert
OscarTalks
I wonder how you made it? :)

in /root/.pmusic/tmp/, there is some xml files which is the gui-code. These should be removed during version check in /usr/local/pmusic/pmusic line 45. In fact all temporary files are removed, but to get a fresh gui-build the xml-files has to go.

Another way is to change frontend in the view-menu. That will also remove old xml-files.

The xml-files is stored for next run to make the startup time faster.


Sigmund

Posted: Wed 27 Jun 2012, 11:00
by OscarTalks
Sigmund,
I just cliked on the .pet on page 1.
I had installed 2.6.2 a few days previously and I uninstalled that in PPM before installing 2.6.3 (thinking it would just roll back to the original 2.5.3 and I didn't need the extra entry in the list of installed programs)
Maybe I should not have done this.

Posted: Thu 28 Jun 2012, 13:07
by zigbert
OscarTalks wrote:Sigmund,
I just cliked on the .pet on page 1.
I had installed 2.6.2 a few days previously and I uninstalled that in PPM before installing 2.6.3 (thinking it would just roll back to the original 2.5.3 and I didn't need the extra entry in the list of installed programs)
Maybe I should not have done this.
It shouldn't matter. Let's keep an eye on this. If it happens again, please report.


Thank you
Sigmund

Re: locale not working

Posted: Fri 29 Jun 2012, 07:06
by vicmz
zigbert wrote:
vicmz wrote:Pmusic 2.6.3 working fine. The only bug is the GUI remains English despite default system language being Spanish. I'm translating the latest Pmusic and I can't see the translations on the GUI. I tried restarting X and rebooting, no changes. I have a Wary 5.3 frugal install to USB key, UTF-8 turned on.

BTW, I like the new choice for saving geometry, makes it more comfortable.
I 'think' your problem is that Pmusic has changed structure of the locale-files. The older model (which you probably are using) holds the spanish file as /usr/local/pmusic/locals/es:ES_spanish, while the new file is /usr/share/locales/es/LC_MESSAGES/pmusic


Good luck
Sigmund
Thanks. I have another question, where's the locale file for Pmusic 2.6.3, since you no longer have a 'locales' folder in this version? I'm using the file from 2.6.2 and I can't find a couple of strings, for example 'Quit and save geometry'.

Posted: Fri 29 Jun 2012, 12:57
by zigbert
vicmz
Please look for /usr/local/pmusic/locales or the symlink in /usr/share/locales/en/LC_MESSAGES/pmusic

Posted: Fri 29 Jun 2012, 20:42
by vicmz
Thanks! I'll post in the language support thread when I'm done.

Posted: Sat 30 Jun 2012, 01:47
by recobayu
is it possible with pmusic to "drag n drop"? (like gnome-mplayer).
i select some file and then just drop it to pmusic..
i'm very like the pequalizer and file info..
good job zigbert..
:wink:

Posted: Sat 30 Jun 2012, 06:43
by zigbert
recobayu wrote:is it possible with pmusic to "drag n drop"? (like gnome-mplayer).
i select some file and then just drop it to pmusic..
i'm very like the pequalizer and file info..
good job zigbert..
:wink:
Sorry about that, but atm gtkdialog (that is pmusic' gui-library) does not support drag'n drop.
BUT, on the other hand, you can simply click on the file in the filemanager, and it will add itself to the playlist. (As long as Pmusic is the default audioplayer)


Sigmund

Posted: Sat 30 Jun 2012, 19:35
by don570
When I use Pemasu's Exprimo it allows me to use
drag and drop of files and folders into
folder select and file select boxes that gtkdialog scripts use.

I don't know how Pemasu does that trick but it's neat!!! :lol:

If you could integrate that feature into pmusic
it would nice feature. Maybe drag a music file to
a special area in the pmusic window and the file
is added automatically to current playlist.

________________________________________________

Posted: Thu 05 Jul 2012, 08:27
by esmourguit
Hello Zigbert,
There are two LOC2913 in /usr/local/pmusic/locales :

LOC2913="Copy / Convert / Rip / Record"
LOC2913="Start with number"

Which one is the good one?

What is the "- NLS: Added: $LOC_STOP " in changelog of 24/06?

Thanks ;)