Rox and desktop files: how to display Comment[fr]

For efforts in internationalising Puppy and solving problems in this area
Message
Author
User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#41 Post by mikeb »

Ah ha...the formula that states productivity is inversly proportional to time spent on the forum.

Well I am the chef so its a bit time consuming and I post inbetween ingredients. :)

If I try and edit .c files I would burn the result.

Mike

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#42 Post by musher0 »

Let's see. The recipe says: add a pinch of C on the steak, then dice the
carrot onto edit.c, and stir... :)
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#43 Post by mikeb »

Ahhh string manipulation is so painfully ugly... well only took and hour or so to split about the _ ...actually my printf did not show until closing this time just to confuse.

Ok this should try full LANG and then just the first part and finally use fallback

mike

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#44 Post by musher0 »

Ahhh, what mikeb can do on a full stomach!!!

Magnificent! Fantastic! How can we ever repay you! Wow! Yippee!
Many, many thanks! (Background noise of audience applauding... fade-out)
:) 8) :lol: :D
Attachments
Absolutely_Terrific!!!_2015-04-06.jpg
(63.49 KiB) Downloaded 333 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#45 Post by LazY Puppy »

Magnificent! Fantastic!
Confirmed! :D
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#46 Post by musher0 »

mikeb wrote:fichiers Desktop sont très exigeantes
don't blame me though my translation was worse...

I don't want to pass out while compiling.... please don't hold any breath during this food related pause

Actually i will slip a note into the version output to distinguish the build.

mike
To come back on this... never mind the translations. You're doing fine.

I'm more concerned about the other entries of the *.desktop files:
almost no one writes a *.desktop file that is standard compliant.

Added:
In particular, every one is trying to impose his/her own idea of
"Categories". And this brings chaos, my friend, worse: a real mess.

Even at the level of the standards committee.

For example, you can tell that none of the members there is or has ever
been a musician: the purely musical or sound programs should be in the
Audio category only, not merged inside the "AudioVideo" category.

Etc. etc., etc. Lack of logic all around.

We should open a separate thread about this mess.

BFN.

musher0
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#47 Post by mikeb »

kde add something to the exec line that is good for breaking other systems too :D

Actually I find an empty stomach a great motivator especially if the next filling is not guaranteed :)

So nothing else to do then for now... anyone want the sources...or at least the altered file?

MIke

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Rox and desktop files

#48 Post by L18L »

A big Thank You also from me.
mikeb wrote:So nothing else to do then for now...
The topic is SOLVED by you.
(If you are bored you can add similiar things with GenericName and Comment to JWM menu.)
mikeb wrote:... anyone want the sources...or at least the altered file?
or the patch file?
I think Barry, Mick, James, woof, etc. ...... will get them (and compile for 64 bit).


___
EDIT
changed jwm_menu_create to JWM menu

User avatar
xanad
Posts: 400
Joined: Fri 28 Feb 2014, 14:56
Location: 2 locations: MonteRosa Alp and Milano
Contact:

#49 Post by xanad »

Thanks Mikeb, works fine :D
[it] and [it_CH] too.
Confirmed!
[url]http://www.xanad.tk[/url] Html5 Parallax

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#50 Post by jamesbond »

Great work mikeb. Patch file please?
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#51 Post by mikeb »

Ah a patch file..the ultimate weapon of confusion.

Well you have filer.c and main.c needs altering to not show the running as root message.

Actually how is rox obtained for official puppy making...is there a build package or is it compiled each time and if so from what? main.c must be hacked for starters

I used the 2.11 download from ROX website...

I also could build for 2.10 which runs on gtk 2.8 + ..at least its working on puppy 4.12.

Mike

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#52 Post by jamesbond »

mikeb wrote:Actually how is rox obtained for official puppy making...is there a build package or is it compiled each time and if so from what? main.c must be hacked for starters
I can't say for contemporary puppies, but for Fatdog it is built from source from the latest git master (https://github.com/rox-desktop/rox-filer); with my own patches applied, using automated build script. So I don't depend on pre-built binary or pre-patched source, instead I apply the patches on vanilla sources as needed and then build it. I know that Quirky April follows the same method as well but using T2 as the build system.

----

To make the patch, do this:
1. Assume your modified version of rox 2.11 is stored in /mnt/sdb1/work/rox-2.11
2. Rename it to /mnt/sdb1/work/rox-2.11-new
3. Re-extract the original rox-filer to /mnt/sdb1/work/rox-2.11
4. Then, cd to /mnt/sdb1/work
5. and then "diff -ur rox-2.11 rox-2.11-new > $HOME/rox.patch"
(the patch created this way is a bit "dirty" but is usable). And you can ship the patch to me :lol:

Alternatively, just make a tarball of your build directory and upload it somewhere; since you told me that it is build from rox 2.11 I can do the steps above myself. Once done I am happy to share the patch with the rest of us.

cheers!
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#53 Post by mikeb »

Well the rox sources are a little unconventional plus there seem to be many variations floating around so not 100% on what's best in this case really.

Simplest way for now
https://www.dropbox.com/sh/s4ettwe6jiho ... Y77Ia?dl=1

Apart from needing to include i18n.h all changes are in the one function tip_from_desktop_file

I actually have a build from debian on one system and its layout has such as /usr/bin/rox for binary and /usr/share/rox for its data rather than the self contained apprun job usually found... did find it less confusing actually.

By the way you may wish to adjust my comments.. I normally don't get to share source changes cos no one wants them :D

mike

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#54 Post by jamesbond »

Thanks Mike. Btw Fatdog own patches are in http://distro.ibiblio.org/fatdog/source/700/patches; there are 3 patches for rox filer (applicable to the latest git master) for anyone who want it.

EDIT:
Mikeb's patch attached. I also re-write the patch and put my version here.

cheers!
Attachments
mikeb.patch.gz
(1.14 KiB) Downloaded 404 times
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#55 Post by musher0 »

@jamesbond: Of course the by-line for this edit will be mikeb's, right ... ? Is that noted somewhere in your file?
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#56 Post by mikeb »

So first I get a boat, now I have a patch....anyone got a wooden leg and a parrot handy?

mike

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#57 Post by musher0 »

mikeb wrote:So first I get a boat, now I have a patch....anyone got a wooden leg and a parrot handy?

mike
Not me.

No parrot, only a budgie, once.

But I have a few pronunciation exercises, like: arr, arr, arr. (repeat 5x)

Also a long library shelf made of plywood that you could use as a plank.

Arm-hooks are not your style, I gather. :twisted: Will destroy a keyboard in no time, shucks.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#58 Post by mikeb »

The arm hook could be very useful for using the sea toilet in a storm.....

as long as i remember which arm has the hook afterwards... :shock:

mike

ps

arrrrrrrrr!!!!!
pps
why does ginger look like Mr Krabbs?

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#59 Post by musher0 »

Back to serious:

Anybody noticed interference between the wm and mikeb's modd'ed ROX?

Under wmx (yeah, I know, musher0's always off-off-Broadway...), it seems
that wmx-8 takes over the modded ROX after 3-4 minutes, and I can't click
on any ROX icon. Just the wmx menus appear.

Working with jwm and modd'ed ROX appears ok, AFAICT.

BFN.

musher0
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#60 Post by mikeb »

serious ... this is the puppy linux forum isn't it :D

Hmm curious..something that works better with jwm.

Well I did free that which should be freed but there may be other patches applied to the rox in puppy but otherwise cannot think of a reason offhand.
I used 2.11 ...check what version you had with ROX-filer -v

I assume the rox you had was ok with wmx?

If I find anything I will report.

mike

Post Reply