official (momanager) language packs

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

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]

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

momanager

#51 Post by L18L »

Bert wrote:#130525 L18L replace intltool-update by msgmerge

I presumed that was the code in your reply to Don570...so added that now.
Exactly!
... and this code snippet has made it into official momanager
http://bkhome.org/blog2/?viewDetailed=00267
(where Barry says it occurs in two places.)

I really should build an actual version of fast momanager soon.

edit
...done

edit
deleted 13 times downloaded pet

please simply use newer momanager-130601.pet: http://www.murga-linux.com/puppy/viewto ... 9&start=85
Last edited by L18L on Sun 09 Jun 2013, 12:35, edited 1 time in total.

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

fast momanager

#52 Post by L18L »

How would you like this sort

alphabetic
case insensitive
basename. not PATH

:?:

I have found it difficult to find any script in the old sort order
Attachments
momanager_sort.png
(32.25 KiB) Downloaded 366 times

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

Re: fast momanager

#53 Post by Bert »

L18L wrote:How would you like this sort

alphabetic
case insensitive
basename. not PATH

:?:

I have found it difficult to find any script in the old sort order
Great idea!

I have a secret momanager wish list, one of the items on that list was a search function...your idea is much better. It would certainly clear up the interface.

PATH is probably only useful for people like me, still learning where things are in Puppy?
Otherwise, would it be helpful to do:

alphabetic
case insensitive
basename, then PATH

?

Would the latest edited file be still on top in this new setup? Or is that then redundant, given the ease with which to find a file?

Anyhow, I vote 5 stars for your idea :!:
[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

#54 Post by don570 »

My wish list ---

A warning about old .pot files :twisted:

If the script has been changed momanager uses the old
pot file and becomes confused. I've had more problems with
old pot files than anything else.

_________________________________

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

Re: momanager

#55 Post by vicmz »

L18L wrote: Why not use the new Puppies built with woof2 ?
... and improve them if there should be anything wrong in them ?
That's actually what I say and do. Maybe some people feel nostalgic, like they miss that times, or maybe they think their hardware is too old for a newer Puppy.
[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/

Re: momanager

#56 Post by L18L »

vicmz wrote:...Maybe some people feel nostalgic...
... and English only is part of that nostalgic :lol:

They all should try shinobar's waryq...

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

momanager

#57 Post by L18L »

don570 wrote:My wish list ---

A warning about old .pot files :twisted:

If the script has been changed momanager uses the old
pot file and becomes confused. I've had more problems with
old pot files than anything else.

_________________________________
Check the POT-Creation-Date

momanager is always trying to create an actual pot file for scripts,
except in case when a pot file or a po file is found.

Look for example at
"POT-Creation-Date: 2011-08-27 16:07+0100\n"

is it from today?
No?
So it is old and you should delete .pot and .po

... and momanager will
- create an actual pot file
- merge your existing translations

You have to check
- empty msgstr
- Fuzzy marked translations
- delete unneeded #

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

Re: fast momanager

#58 Post by L18L »

Bert wrote:I have a secret momanager wish list
Could you publish this list please?
Bert wrote:PATH is probably only useful for people like me, still learning where things are in Puppy?

Where is what in puppy? (How I do it)
You know the text in the menu only. ex: Pcur

Code: Select all

# which Pcur
#
returned nothing because there is no executable Pcur.
So you will grep the menu:

Code: Select all

# grep Pcur .jwmrc
<Program label="Pcur Mauszeiger-Auswahl" icon="default_left_ptr.png">pcur</Program>
<Program label="PcurlFtp Datei sharing" icon="pc-2x.xpm">rox -d /root/File-Sharing</Program>
from which you pick the program pcur.
...now command which will show you where it is:

Code: Select all

# which pcur
/usr/sbin/pcur
#
That's it :wink:
Bert wrote:Otherwise, would it be helpful to do:

alphabetic
case insensitive
basename, then PATH
I understand. Just the base name at the beginning would make it easiest possible for you (and me). But that would have to result in too big changes from Barry's momanager. I want the changes in the code being very simple, and just sorting is simple.
Bert wrote:Would the latest edited file be still on top in this new setup? Or is that then redundant, given the ease with which to find a file?
Yes it is on top because everything other than this would slow it down again.

-----
what is new in attached momanager-20130602 ?
scripts are sorted
binaries are sorted

edit
12 x downloaded momanager-20130602 deleted
simply use newer momanager.pet: http://www.murga-linux.com/puppy/viewto ... 9&start=85
Attachments
momanager_sort.png
(32.25 KiB) Downloaded 301 times
momanager_sort_binaries.png
(22.9 KiB) Downloaded 308 times
Last edited by L18L on Sun 09 Jun 2013, 12:46, edited 5 times in total.

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

Re: momanager

#59 Post by Bert »

L18L wrote:
don570 wrote:My wish list ---

A warning about old .pot files :twisted:

If the script has been changed momanager uses the old
pot file and becomes confused. I've had more problems with
old pot files than anything else.

_________________________________
Check the POT-Creation-Date

momanager is always trying to create an actual pot file for scripts,
except in case when a pot file or a po file is found.

Look for example at
"POT-Creation-Date: 2011-08-27 16:07+0100\n"

is it from today?
No?
So it is old and you should delete .pot and .po

... and momanager will
- create an actual pot file
- merge your existing translations
That looks like one of the many L18L-posts that should be stickied :wink:
is it from today?
No?
So it is old and you should delete .pot and .po
Delete from? /usr/share/doc/nls only?
[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

Re: fast momanager

#60 Post by Bert »

L18L wrote:
Bert wrote:I have a secret momanager wish list
Could you publish this list please?
Well it's a short wish list really:

1. a search/find function, you know the luxurious type: just type 'pc' and up come all the entries for 'pcur'.

2. A 'Preferences' button ( or 'Settings' button) for Momanager:

* whenever I start a new translation, there's the MoManager intro-window, which I have to OK. Not really needed. So in 'Preferences' I tick 'No thanks, I've read it a hundred times'

* whenever I start a new translation, I am asked to choose between 'nl' and 'nl.NL'. I would like to teach MoManager I only use e.g. 'nl'. So this could be in the MoManager 'Preferences' as a predefined choice, not asked again at every new start of a translation.

* whenever I start a new translation, MoManager wants to know if I'm root@localhost :roll: ...I'm Bert and I typed in my email address so many times, I will never be able to forget it. So, in 'Preferences' there's a field to enter your email address once and for all.
L18L wrote:
Bert wrote:PATH is probably only useful for people like me, still learning where things are in Puppy?

Where is what in puppy? (How I do it)
You know the text in the menu only. ex: Pcur

Code: Select all

# which Pcur
#
returned nothing because there is no executable Pcur.
So you will grep the menu:

Code: Select all

# grep Pcur .jwmrc
<Program label="Pcur Mauszeiger-Auswahl" icon="default_left_ptr.png">pcur</Program>
<Program label="PcurlFtp Datei sharing" icon="pc-2x.xpm">rox -d /root/File-Sharing</Program>
from which you pick the program pcur.
...now command which will show you where it is:

Code: Select all

# which pcur
/usr/sbin/pcur
#
That's it :wink:


Thanks for this new voodoo lesson :lol:
When I type ' which Pcur' in terminal, I get:

Code: Select all

 /usr/sbin/pcur
The grep stuff is probably for learning purposes?

L18L wrote:
Bert wrote:Otherwise, would it be helpful to do:

alphabetic
case insensitive
basename, then PATH
I understand. Just the base name at the beginning would make it easiest possible for you (and me). But that would have to result in too big changes from Barry's momanager. I want the changes in the code being very simple, and just sorting is simple.
Wouldn't it make sense to fork Fast MoManager for a while? That would allow you to freely explore new territory.
Your original sorting idea is too good to get compromised by the need to keep compatibility with our grand master BK.
[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

back to my "BAD NEWS" returning

#61 Post by Bert »

Okay, this is about my problem with MoManager described on top of last page.

L18L tried to reproduce it and could not do so.

Neither can I, but I don't need to, as it reproduces itself... randomly.(or so it seems)

I'll try to explain: I can translate a couple of files without any problem and then suddenly things go wrong in one of two ways:

1. This is what happens most often: when trying to edit a left side file, MoManager is unable to merge the .po and .pot files and pops up "BAD NEWS", etc..

2. Same as 1., but a seemingly random amount of right side (untranslated) files (without a .mo) move to the left side.
After restarting MM, everything is back to normal.

As no other translators are complaining about this, I can only conclude:

* no one is really actively using MM at the moment, I mean doing translation with many files still to go.

OR:

* I have a local problem that is not yet understood.

Using the 20130601 pet didn't solve it.

I'm not panicking, as it is more or less usable. But something is definitely not right.
[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

#62 Post by L18L »

Bert wrote:...Delete from? /usr/share/doc/nls only?
Yes or move it elsewhere.[/quote]
/usr/sbin/momanager wrote:#120731 any script can have a pre-existing .pot file in /usr/share/doc/nls, it will automatically be used instead of generating a .pot file.
#
Bert wrote:When I type ' which Pcur' in terminal, I get:
Code:
/usr/sbin/pcur
So I guess you are using something other than precise5.6.1.
Bert wrote:The grep stuff is probably for learning purposes?
Yes, I had the impression that you wanted to learn something :)

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

Re: fast momanager

#63 Post by L18L »

Bert wrote:Well it's a short wish list really:

1. a search/find function, you know the luxurious type: just type 'pc' and up come all the entries for 'pcur'.

2. A 'Preferences' button ( or 'Settings' button) for Momanager:

* whenever I start a new translation, there's the MoManager intro-window, which I have to OK. Not really needed. So in 'Preferences' I tick 'No thanks, I've read it a hundred times'

* whenever I start a new translation, I am asked to choose between 'nl' and 'nl.NL'. I would like to teach MoManager I only use e.g. 'nl'. So this could be in the MoManager 'Preferences' as a predefined choice, not asked again at every new start of a translation.

* whenever I start a new translation, MoManager wants to know if I'm root@localhost :roll: ...I'm Bert and I typed in my email address so many times, I will never be able to forget it. So, in 'Preferences' there's a field to enter your email address once and for all.
.... and I add:
suppress create button for empty list
.... and I readd:
sort by base name.......
At http://puppylinux.com/development/project-statement.htm BarryK wrote:Now to get onto what really matters... having fun with Puppy.
.... and fork 8)

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

forked fast momanager

#64 Post by L18L »

Wish number 2 became true

Note the Preferences button

Have fun
Attachments
momanager-20130603.pet
(26.22 KiB) Downloaded 456 times

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

#65 Post by Bert »

Wow .. what can I say, never really expected you to implement this and certainly not this fast. Just wonderful :!:

Code: Select all

showINTRO=no 
transLANG=nl
myEMAIL=bert@
* Email: It now says "Automatically generated" in the .po heading. When does this happen? I reopened a translated file and it still says this. Email generation when the pet is created?

Thank You Very Much L18L!
[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