"i18n-tools": Using MoManager without having Devx loaded

For efforts in internationalising Puppy and solving problems in this area
Message
Author
User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

"i18n-tools": Using MoManager without having Devx loaded

#1 Post by Bert »

UPDATE: 20131111: new version and new name:

* i18n-tools replaces "MM-standalone" as the name.

* a short info file is now installed in /root, for newcomers mainly.

* the gcc executable, needed for versions of Momanager older than 20131110, is now replaced by a fake script. This saves 300K installed!

* pet and sfs are now small enough to post directly here on the forum.
Please see bottom of this message for downloading.

Happy translating!

*********************************************




UPDATE: 20131110: new version:

* MM-standalone-0.2.pet --> better use the package at bottom of this message

* MM-standalone-0.2.sfs--> better use the package at bottom of this message

Tested OK in Puppy Precise 5.7.1
Tested OK in Slacko 5.6
Tested OK in Upup Raring 3.9.9.2
Tested OK in LxPup 13.10

*********************************


Hi all,

I always had the feeling having to download and install devx to enable momanager is not really ideal.

So I tried to get the i18n stuff out of devx and into Puppy.
It was simpler than I had imagined!

Here's my "MM-standalone" pet for testing.

All it does is put the following in /usr/bin:

Image

The pet is 292K
The folder before petting it up: 776K

The pet is just a little too big for the forum (max. attachment= 256K)
So I'll upload it... okay, just click momanager:

Version 0.1 removed
Attachments
i18n-tools-0.3.sfs.gz
remove the fake .gz
(192 KiB) Downloaded 570 times
i18n-tools-0.3.pet
(193.67 KiB) Downloaded 647 times
Last edited by Bert on Mon 11 Nov 2013, 20:46, edited 7 times in total.
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

Nice choice

#2 Post by nilsonmorales »

thank you Bert.
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#3 Post by Bert »

nilsonmorales wrote:thank you Bert.
You're welcome :wink:

I forgot to mention that it works perfectly here, using Puppy Precise 5.7.1.

Maybe some adjustments will be needed for other Puppys?

E.g. the GCC version: is that the same in the devx of all Puppys?

Anyhow, if needed this pet can be improved. I'm quite happy with this first step. Anyone can do some translating now, without the need to download the ever-growing Devx. 8)
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#4 Post by Bert »

For people who prefer a sfs instead of a pet: version 0.1 removed
Last edited by Bert on Sun 10 Nov 2013, 13:26, edited 2 times in total.
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#5 Post by don570 »

You could combine it with my build_gettext pet package.
http://www.murga-linux.com/puppy/viewtopic.php?t=84133
_____________________________________________

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#6 Post by Bert »

don570 wrote:You could combine it with my build_gettext pet package.
http://www.murga-linux.com/puppy/viewtopic.php?t=84133
_____________________________________________
Thanks Don,

Yes, I was thinking about your build_gettext.pet too. It runs okay without devx being loaded now. But didn't it already? I'm a little confused :oops:
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

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

Using MoManager without having Devx loaded

#7 Post by L18L »

Bert wrote:...I forgot to mention that it works perfectly here, using Puppy Precise 5.7.1.
But not here (also using Puppy Precise 5.7.1) :wink:
Bert wrote:E.g. the GCC version: is that the same in the devx of all Puppys?
Why should gcc be needed at all?

... and what about msgmerge?

Code: Select all

grep msgmerge /usr/sbin/momanager
to see where it is used

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

Re: Using MoManager without having Devx loaded

#8 Post by Bert »

L18L wrote:
Bert wrote:...I forgot to mention that it works perfectly here, using Puppy Precise 5.7.1.
But not here (also using Puppy Precise 5.7.1) :wink:
Bert wrote:E.g. the GCC version: is that the same in the devx of all Puppys?
Why should gcc be needed at all?

... and what about msgmerge?

Code: Select all

grep msgmerge /usr/sbin/momanager
to see where it is used
Good morning L18L,

Thank you very much for testing!

I'm surprised it doesn't work in your Precise....when I say it works perfectly here, it means:

* MM starts up without asking for the devx to be loaded
* MM presents the files correctly
* I am able to make a translation+save it+mo created, all as it should be.

What happened in your test?

I made the pet with trial and error, just looking at the code trying to understand what it does. So when I saw "which gcc" (line 143 in your latest MM), I understood that as a condition needed by MM to start up.

msgmerge: oops, forgot one :oops:

Back to the drawing board :)

EDIT: just saw that I did put msgmerge in 'my' /usr/bin, but not in the pet....
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

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

Re: Using MoManager without having Devx loaded

#9 Post by L18L »

Good afternoon,

yes, it was msmerge....

...and

Code: Select all

if [ "`which gcc`" = "" ];then
 pupdialog --title "MoManager: abort" --background pink --colors --msgbox "Sorry, you must have the \Zbdevx\ZB SFS loaded. Aborting." 0 0
 exit 1
fi
This has to be deleted (my fault :oops: )
It was just a test on loaded devx.
no other gcc is found in momanager.

I will re-upload momanager-2013110.pet soon

edit
...done!

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

New version (0.2) available

#10 Post by Bert »

New version available: seefirst post.

Thanks for your patience guys :wink:
Last edited by Bert on Sun 10 Nov 2013, 15:35, edited 1 time in total.
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#11 Post by Bert »

L18L, saw your post only after posting the new version 0.2.

Does this mean I can remove gcc from MM-standalone?

If so, whoopie, let's bake a third version :lol:
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

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

#12 Post by L18L »

Bert wrote:L18L, saw your post only after posting the new version 0.2.

Does this mean I can remove gcc from MM-standalone?

If so, whoopie, let's bake a third version :lol:
It is safer to let it inside for now

because every version of momanager before 2013110 is checking existance of gcc

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#13 Post by Bert »

In case you're curious, this is what MM-standalone-0.2 puts into /usr/bin.

Testers more than welcome 8)
Attachments
image-3.png
(32.48 KiB) Downloaded 849 times
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#14 Post by Bert »

don570 wrote:You could combine it with my build_gettext pet package.
http://www.murga-linux.com/puppy/viewtopic.php?t=84133
_____________________________________________
Don, if you're still following this thread: I just tested your build_gettext app without devx loaded and without MM-standalone installed.
It simply does not run :wink: As soon as I installed MM-standalone, your pet worked flawlessly again.

I thought I remembered your build_gettext could be used without devx being loaded. Not true....

So...it's great to see that my little pet/sfs enables your very handy build_gettext too!
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
vicmz
Posts: 1262
Joined: Sun 15 Jan 2012, 22:47

#15 Post by vicmz »

I'm getting incomplete downloads from your link. I'm sorry to say it's not my ISP -- I can browse and download from other sites as usual. I think it's incredible for such a tiny package. :shock:

EDIT
I used wget and got a full download.
Attachments
Screenshot_2013-11-10_23_02_04.png
The file is meant to be 318 K, but as you can see in the download manager...
(57.29 KiB) Downloaded 960 times
[url=http://murga-linux.com/puppy/viewtopic.php?t=76948]Puppy Linux en español[/url]

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#16 Post by Bert »

Thanks for reporting this vicmz.

When I tested this service (e-nautia), I always had good results, both uploading and downloading.

I will change to another file host immediately , if this happens to more people. For now, let's hope it was a momentary hiccup...
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#17 Post by Bert »

nilsonmorales wrote:]test in puppy-es night rc

I had to add these libraries from the devx
libgettextlib-0.18.so
libgettextsrc-0.18.1.so

outdated devx maybe
everything looks good so far
[I copied the above to this thread, as it had arrived in a wrong one.]

Thank you for testing!
Do you know what Puppy-version puppy-es night rc is based on?
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#18 Post by Bert »

New version uploaded :)

See first post.
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#19 Post by Bert »

Hi all,

I had to stop wagging my tail to announce an unexpected problem:

When I use i18n-tools for editing existing translations in Momanager (scripts in left column), I get the "bad news" error.

I tested i18n-tools only by making new translations and that went flawlessly. Should of course have tested editing existing translations too. :oops:

As soon as I load devx, everything is back to normal again.
So it seems something is still missing from i18n-tools.

I've searched and searched, but it is beyond my understanding.

It could also be some corruption in my copy of Puppy (Precise), as it has probably seen too many risky experiments :wink:

What would be really great is if someone(..s) would give editing existing translated scripts a quick try with i18n-tools loaded and, of course, devx unloaded.

Thank you!
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

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

"i18n-tools": Using MoManager without having Devx loaded

#20 Post by L18L »

Bert wrote:What would be really great is if someone(..s) would give editing existing translated scripts a quick try with i18n-tools loaded and, of course, devx unloaded.
Quick try in latest FFMM:

Code: Select all

#131220 without complete devx

Code: Select all

MISSINGFILE=""
#[ "`which intltool-update`" = "" ] && MISSINGFILE="intltool-update " #131220
[ "`which xgettext`" = "" ] && MISSINGFILE="${MISSINGFILE}xgettext "
[ "`which msginit`" = "" ] && MISSINGFILE="${MISSINGFILE}msginit "
[ "`which msgfmt`" = "" ] && MISSINGFILE="${MISSINGFILE}msgfmt "
[ "`which msgunfmt`" = "" ] && MISSINGFILE="${MISSINGFILE}msgunfmt "
[ "`which msgmerge`" = "" ] && MISSINGFILE="${MISSINGFILE}msgmerge "
[ "`which urxvt`" = "" ] && MISSINGFILE="${MISSINGFILE}urxvt " #130610
copied from devx:
/usr/bin/xgettext msginit msmerge msgfmt msgunfmt
and (the missing)
/usr/lib/libgettextsrc.so -> libgettextsrc-0.18.1.so (file and link)
and libgettextlib.so -> libgettextlib-0.18.1.so (file and link)

They need to be exactly the same as in devx (ARM and FAt64 also exist)
You could try to make a script that fetches these files from devx
for later use without devx :idea:

Note, intltool* is used no more.
Attachments
edit_mo_without_devx.png
(64.77 KiB) Downloaded 491 times

Post Reply