official (momanager) language packs

For efforts in internationalising Puppy and solving problems in this area
Message
Author
rodin.s
Posts: 344
Joined: Wed 22 Sep 2010, 19:50
Location: Ukraine

#21 Post by rodin.s »

If several scripts have same textdomain, then one common po-file is used for all of them. So it doesn't matter which one of them to choose.
Now I am going to test new MoManager.

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

#22 Post by Bert »

rodin.s wrote:If several scripts have same textdomain, then one common po-file is used for all of them. So it doesn't matter which one of them to choose.
Now I am going to test new MoManager.
Understood :idea:

Thanks for your help!
[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

#23 Post by L18L »

rodin.s wrote:If several scripts have same textdomain, then one common po-file is used for all of them. So it doesn't matter which one of them to choose.
Now I am going to test new MoManager.
current momanager does not update correctly these.
I am working on it now ( :arrow: xEXTRASCRIPTS )
Special Monday service :lol:

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

fast momanager

#24 Post by L18L »

L18L wrote:...I am working on it now...
... done 130520

Code: Select all

    #no_to_yes $CACHE/NOMO_XML "${ASCRIPT}" $CACHE/YESMO_XML  # update YESMO_XML NOMO_XML #130519
    SCRIPTS="`cat /tmp/momanager/xEXTRASCRIPTS | rev | cut -d'.' -f2- | rev`" #130520
    no_to_yes $CACHE/NOMO_XML "${SCRIPTS}" $CACHE/YESMO_XML  # update YESMO_XML NOMO_XML #130520
xEXTRASCRIPTS are used Instead of ASCRIPT.
xEXTRASCRIPTS always exists even there is one script only.
.sh has to be cut off of the script names xEXTRASCRIPTS

fast momanager-20130520 will be uploaded soon.... [edit] ...done :)

------
edit
forget this
take next one :lol:

[edit] attachment deleted
use momanager-20130522 at
http://murga-linux.com/puppy/viewtopic. ... 9&start=31 please

[edit]use momanager-20130609 at
http://murga-linux.com/puppy/viewtopic. ... 9&start=85
Last edited by L18L on Sun 09 Jun 2013, 12:25, edited 3 times in total.

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

fast momanager

#25 Post by L18L »

Bert wrote:...Proudly running momanager 20130529...the first script ever to arrive from the future :lol:
... and here comes the second script from the future (tomorrow):

fast momanager-20130521 can handle create and edit of the created pot from binary now..... (pretty cryptic)

Entry in left list is different from entry in right list, so it had to be changed by sed:

Code: Select all

   sed -i "s#(${ANAME}#(${TRANSLANG} ${AMO}#" $CACHE/YESBIN_XML #130521
[edit] attachment deleted
use momanager-20130522 at
http://murga-linux.com/puppy/viewtopic. ... 9&start=31 please

[another edit] or better:
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:27, edited 5 times in total.

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

Re: fast momanager

#26 Post by Bert »

Replying quickly, before it's tomorrow... :)

Running 20130521 now, no visible changes, I play with it some more tonight.
L18L wrote: .... (pretty cryptic)
Yes :?

But I do hope it can help in this situation, which happens too often:

Image

Imagine "WOOF1.po" being empty window...and "WOOF.po" non-existant..

grrr.

Also this is re-occuring: translated XML files showing up on the right side again. Always the same four. As soon as one is edited, all four are on the left side again:
Image

Today I translated petget. Of the nine petget entries only one is showing up translated ('configure' the one I translated first.)
No errors, no warnings in Poedit.
I checked several of the petget.po's in terminal (msgfmt), again no errors. Put the created .mo's in LC_MESSAGES, no difference.

Hope this can be useful.
[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: fast momanager

#27 Post by L18L »

Thank you Bert, comments are always helpful.
Bert wrote:...Imagine "WOOF1.po" being empty window...and "WOOF.po" non-existant..
That is correct: there is no script named WOOF or TEXTDOMAIN=WOOF
Where does this happen?
Edit
script
menu category
menu entry
XML file ?

I am going to check XML files now...

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

Re: fast momanager

#28 Post by L18L »

L18L wrote:...I am going to check XML files now...
found it :lol:
find line
echo $NOXML_XML > $CACHE/NOXML_XML #130505
and change it to:
#echo $NOXML_XML > $CACHE/NOXML_XML #130505
echo -n "$NOXML_XML" > $CACHE/NOXML_XML #130522

thus every XML file has its own single line
and only the one which has been created is correctly moved to the list on the left side.



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:28, edited 3 times in total.

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

#29 Post by Bert »

Hi L18L,

It happened while trying to open and edit a file in left column, scripts.("scripts that have a mo file"). (and happens all the time)

I have now discovered what happened while translating petget:

I was happily translating away the petget entries, moving one after the other to the left side. After having translated about 9 entries, I opened the right dropdown again, to start the next one. Only to discover there were no petget entries left in the right side list!

With my newly acquired knowledge (thanks Sergey) I concluded the entries that disappeared must have all had the same text domain as the last one I translated.

But...after I installed Momanager-20130521 and checked the right side scripts dropbox, there were 7 petget items waiting for translation!

I think that clearly shows there's a bug...
[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

#30 Post by Bert »

Yes! You found it. Congrats!

(...and I found the search function in Geany :wink: )

I did the change you proposed with Momanager closed. Then opened it again and edited the first of the four entries. It moved to the left, without taking the others with it, great!
After editing them all, I closed and restarted momanager: only 1 item returned to the right side xml box: AppInfo.xml (build_gettext-plus-0.5)

Maybe because that is not a default puppy app..?
[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

#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]

Post Reply