official (momanager) language packs

For efforts in internationalising Puppy and solving problems in this area
Message
Author
User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

fast momanager

#31 Post by L18L »

L18L wrote:...Same procedure as with binaries....
Not exactly

find in /usr/sbin/momanager the line:
no_to_yes $CACHE/NOMO_XML "${SCRIPTS}" $CACHE/YESMO_XML # update YESMO_XML NOMO_XML #130520

and append:

for ASCRIPT in $SCRIPTS ; do #130522
sed -i "s#(${ATEXTDOMAIN}#(${ATRANSLANG} ${ATEXTDOMAIN}.mo#" $CACHE/YESMO_XML #130522
done #130522

Hope that helps
not hope I am sure :lol:




edit

or simply use new momanager.pet: http://www.murga-linux.com/puppy/viewto ... 9&start=50

edit
or simply use newer momanager.pet: http://www.murga-linux.com/puppy/viewto ... 9&start=57

edit
or simply use newer momanager.pet: http://www.murga-linux.com/puppy/viewto ... 9&start=85
Last edited by L18L on Sun 09 Jun 2013, 12:29, edited 4 times in total.

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

fast momanager

#32 Post by L18L »

For your convenience here is now:

fast momanager-20130522

why fast and how fast?

All drop down lists (left: translated, right: not translated) are created just once. Time for this was about 2 minutes on my (1.5GHz) box.

When a translation was being created then the entry is moved from right to left. Time for displaying the main window was about 2 seconds on my (1.5GHz) box.

As fixmenus is run when create/edit menu entries a slightly faster version of fixmenus is also included. It is faster just by using some builtin shell commands instead of echo grep cut (thanks technosaurus :D )



edit
attachment (32 times downloaded) deleted
simply use new momanager.pet: http://www.murga-linux.com/puppy/viewto ... 9&start=50
edit
or simply use newer momanager.pet: http://www.murga-linux.com/puppy/viewto ... 9&start=57
edit
or simply use newer momanager.pet: http://www.murga-linux.com/puppy/viewto ... 9&start=85
Last edited by L18L on Sun 09 Jun 2013, 12:29, edited 5 times in total.

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

#33 Post by Bert »

I am SO HAPPY I could kiss you!!

Everything just works now and INCREDIBLY fast.

Let the translation fun begin...

Well done L18L (and in record time!)

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/

fast momanager

#34 Post by L18L »

Would not have got it without your help. :D
Next time I should do more testing before publishing :oops:

I am hoping it can make it into woof now.
See http://bkhome.org/blog2/?viewDetailed=00229

rodin.s
Posts: 344
Joined: Wed 22 Sep 2010, 19:50
Location: Ukraine

xorgwizard and xorgwizard-cli

#35 Post by rodin.s »

One strange thing about MoManager is: when I choose to edit xorgwizard I got lines from xorgwizard-cli (has different textdomain) in the po-file.

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

Re: xorgwizard and xorgwizard-cli

#36 Post by L18L »

rodin.s wrote:One strange thing about MoManager is: when I choose to edit xorgwizard I got lines from xorgwizard-cli (has different textdomain) in the po-file.
Really strange.

Why different TEXTDOMAINs

Code: Select all

# for AFILE in `ls xorgwizard*.mo`; do file $AFILE  ;done
xorgwizard-cli.mo: GNU message catalog (little endian), revision 0, 91 messages
xorgwizard.mo: GNU message catalog (little endian), revision 0, 181 messages
56 duplicate message definitions...

Let us make one TEXTDOMAIN=xorg for both xorgizards?

# xgettext -o xorg.pot --language=shell /usr/sbin/xorgwizard /usr/sbin/xorgwizard-cli

merged my already translated po files, edited some fuzzy's and got:

# file xorg.mo
xorg.mo: GNU message catalog (little endian), revision 0, 218 messages

One TEXTDOMAIN would be really better

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

#37 Post by don570 »

Review:

I used the new Momanager to internationalize 'alien2puppy'
and it worked nicely :wink:

__________________________________

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

momanager-20130522.tar.gz

#38 Post by vicmz »

Hello everyone

I tried momanager-20130522.tar.gz
in Precise 5.6

I extracted to /

I tried to edit an existing .mo and got an error message

then back to the main GUI all scripts that didn't actually have a .mo file where moved to the list of those that do have

after that I restored the original momanager files

and everything worked as usual :shock:

I tried in Racy 5.5 and got the same results

I wonder what did I do wrong since all of you are saying it works nice on your systems :?
[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

#39 Post by Bert »

That's strange vlcmz.

Just to be sure: did you really download and install the latest MoManager (20130522), because your problems are exactly what was wrong in earlier editions.

I'm not doubting your intelligence with this question :lol:
Only want to exclude always-possible human errors.

Best regards.
[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

#40 Post by vicmz »

Yes, I did download that one. But there's something strange: I have another one that instead of 05-22 says 05-29 :shock:
The latter I didn't test yet, I downloaded 05-22 directly from this thread and used as-is.
OK, too much stress at work, maybe. :roll: I'm already planning some holidays.
[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

#41 Post by Bert »

Don't use the 05-29 (the 29 was a typo, should have been 19)

I cannot help you any further. All I can say is version 20130522 is the first one running without errors here. I've used it 3 days now and am as excited as I was after a few hours testing. The weeks before 20130522 were not easy, lots of problems I didn't understand, but do now, because the latest version solved all those problems.

For the record: I'm still running Precise 5.5, That's one difference with your 5.6.
(which I intend to install tomorrow)

I'm sure L18L will come to the rescue shortly... :wink:

Good luck!
[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: momanager-20130522.tar.gz

#42 Post by L18L »

vicmz wrote:...I tried to edit an existing .mo and got an error message...
Reveal the name of the .mo file, or better name of the executable and it might become reproducible. :wink:

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

fast momanager

#43 Post by L18L »

don570 wrote:Review:

I used the new Momanager to internationalize 'alien2puppy'
and it worked nicely :wink:

__________________________________
:)
Thanks for the review

Another issue was edit Xdialog.po in momanager

Find in /usr/sbin/momanager line which contains
Code:
LANG=${ORIGLANG} rxvt -e intltool-update --dist --gettext-package=${ATEXTDOMAIN} --output-file=${ATEXTDOMAIN}.po ${ATEXTDOMAIN}1

put a # at beginning of that line so it looks like:
Code:
#LANG=${ORIGLANG} rxvt -e intltool-update --dist --gettext-package=${ATEXTDOMAIN} --output-file=${ATEXTDOMAIN}.po ${ATEXTDOMAIN}1
and append the following line:
Code:
LANG=${ORIGLANG} rxvt -e msgmerge ${ATEXTDOMAIN}1.po ${ATEXTDOMAIN}.pot --output-file=${ATEXTDOMAIN}.po ; #130525

..and also ROX-Filer can be edited if you apply this change.


edit
or simply use new momanager.pet: http://www.murga-linux.com/puppy/viewto ... 9&start=50
edit
or simply use newer momanager.pet: http://www.murga-linux.com/puppy/viewto ... 9&start=57
edit
or simply use newer momanager.pet: http://www.murga-linux.com/puppy/viewto ... 9&start=85
Last edited by L18L on Sun 09 Jun 2013, 12:31, edited 3 times in total.

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

#44 Post by Bert »

I just noticed a little oddity:

The latest edited new (right-side) files no longer show up on top of the left side (files that have a mo) column.

Discovered this while translating the universal installer. (30% done, phew.. :wink: )

Not a big deal, but I suppose L18L's idea was to keep the latest files on top of the list, which is indeed very handy for quick corrections)
[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/

fast momanager

#45 Post by L18L »

Bert wrote:The latest edited new (right-side) files no longer show up on top of the left side (files that have a mo) column.
If you restart momanager then the order is as always is.
Bert wrote:I suppose L18L's idea was to keep the latest files on top of the list, which is indeed very handy for quick corrections)
Putting that entry at top of the list is the easiest way for coding
and , yes, it is very handy. But "latest created files on top" is only true in a "session" of momanager.

Appears it is more difficult to explain than to code. :wink:

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

problem returns

#46 Post by Bert »

Image I fired up MoManager maybe for the first time this week and, feeling a bit tired, decided to translate a mini app first: pEqualizer (just a few lines :wink: ).

Translation went well, but pEqualizer did not appear on top of the left column drop down box. Instead, there was a whole list of Pburn and Pmusic entries on top. Both apps should have remained on the right side, as I haven't even started translating them. (Not all the Pburn/Pmusic entries had moved to the left, roughly 50% had stayed on the right side)

When I opened one of the Pburn entries on the left side I was greeted with the dreaded BAD NEWS popup again....

So...maybe vlcmz's report was correct and I've been just lucky not to experience this problem before.

After closing MoManager, shaking my fist at Tradir (*), the translators' patron saint, and two strong coffees later, I reopened MM and everything looked normal again:

pEqualizer to the left alphabetically, Pburn and Pmusic back to the right side.

This also relates to my last post above, I accepted your reply but kept feeling it happened before closing MoManager. (Haven't had time to try and reproduce it.)

(*)
Image
[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

#47 Post by vicmz »

Bert wrote:Don't use the 05-29 (the 29 was a typo, should have been 19)
This is what actually happened :oops:
And the app was a gettext version of PupSnap 1.8, which I could translate as usual with 05-22.

Thanks, Bert and L18L :D

Not so off-topic, can momanager be ported to older Puppies? I've received requests for localizing Lucid 528-005 and Puppy 431, it'd be easier to have momanager as a more organised method for translating these.
Last edited by vicmz on Sat 01 Jun 2013, 20:37, edited 1 time in total.
[url=http://murga-linux.com/puppy/viewtopic.php?t=76948]Puppy Linux en español[/url]

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

momanager

#48 Post by L18L »

vicmz wrote:..can momanager be ported to older Puppies?..
I am sure it could. But not by me.

Just one hint:
Momanager identifies internationalized scripts by the line:

Code: Select all

export TEXTDOMAIN=
Why not use the new Puppies built with woof2 ?
... and improve them if there should be anything wrong in them ?

edit
waryq and lupq exist :wink:
http://www.murga-linux.com/puppy/profil ... le&u=17722
Last edited by L18L on Sat 01 Jun 2013, 11:14, edited 1 time in total.

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

Re: problem returns

#49 Post by L18L »

Bert wrote:Image I fired up MoManager maybe for the first time this week and, feeling a bit tired, decided to translate a mini app first: pEqualizer (just a few lines :wink: ).

Translation went well, but pEqualizer did not appear on top of the left column drop down box. Instead, there was a whole list of Pburn and Pmusic entries on top. Both apps should have remained on the right side, as I haven't even started translating them. (Not all the Pburn/Pmusic entries had moved to the left, roughly 50% had stayed on the right side)

When I opened one of the Pburn entries on the left side I was greeted with the dreaded BAD NEWS popup again....

So...maybe vlcmz's report was correct and I've been just lucky not to experience this problem before.

After closing MoManager, shaking my fist at Tradir (*), the translators' patron saint, and two strong coffees later, I reopened MM and everything looked normal again:

pEqualizer to the left alphabetically, Pburn and Pmusic back to the right side.

This also relates to my last post above, I accepted your reply but kept feeling it happened before closing MoManager. (Haven't had time to try and reproduce it.)

(*)
Image
Thanks for reporting "bad news" :)
I will try to reproduce it now:

I rename my LC_MESSAGES/pequalizer.mo
and launch momanager

...wait a moment

/usr/local/pequalizer/func and
/usr/local/pequalizer/pequalizer at right side.

now create /usr/local/pequalizer/pequalizer
translate 2 phrases and

/usr/local/pequalizer/func and
/usr/local/pequalizer/pequalizer at left side.

Now edit /usr/local/pequalizer/func
and..... no bad news.
/usr/local/pequalizer/pequalizer wrote: # 20121028 (c) 01micko@gmail.com and zigbert@murgalinux.com 2011-2012
...
VERSION=0.9.0
Do we use the same version of momanager?
Here the last comments of the version I am using at the moment:

#130503 test if .po file changed.
#130503 L18L: rename AppInfo.xml to AppInfo.xml.in for langpack
#130505 L18L: quick version: caching variables in CACHE/... from 2m to 2s
#130512 acknowledge new translators, deleting /tmp/momanager
#130519 L18L bug fix: instead of APKGNAME use ASCRIPT, DESKFILE, XMLFILE, ABIN; code for sss and menu categories unchanged
#130520 L18L bug fix: multiple scripts for 1 TEXTDOMAIN
#130521 L18L bug fix binaries, update NOCNT,YESCNT
#130522 L18L bug fix 1 line NOXML_XML and multiple scripts
#130525 L18L replace intltool-update by msgmerge

Hope that helps
or how gcmartin uses to write
Here to help :lol:

[edit] Close momanager, restart and wait some minutes is good.
But I really liked to make fast momanager useable
that is: not only fast but also precise 8) .

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

#50 Post by Bert »

Thank you!

The pEqualizer version is the same: v.0.9.0

Momanager is 20130522 as it left the factory...

I don't have

Code: Select all

#130525 L18L replace intltool-update by msgmerge
I presumed that was the code in your reply to Don570...so added that now.

Will let you know how it goes.

chüss.
[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]

Post Reply