Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 08 Dec 2019, 00:08
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Localization Project
official (momanager) language packs
Moderators: Lobster, MU, raffy
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 20 [299 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, ..., 18, 19, 20 Next
Author Message
L18L

Joined: 19 Jun 2010
Posts: 3450
Location: www.eussenheim.de/

PostPosted: Sun 02 Jun 2013, 08:17    Post subject: Re: fast momanager
Subject description: sort
 

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:
# which Pcur
#
returned nothing because there is no executable Pcur.
So you will grep the menu:
Code:
# 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:
# 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/viewtopic.php?t=81259&start=85
momanager_sort.png
 Description   
 Filesize   32.25 KB
 Viewed   276 Time(s)

momanager_sort.png

momanager_sort_binaries.png
 Description   
 Filesize   22.9 KB
 Viewed   276 Time(s)

momanager_sort_binaries.png


Last edited by L18L on Sun 09 Jun 2013, 08:46; edited 5 times in total
Back to top
View user's profile Send private message 
Bert


Joined: 30 Jun 2006
Posts: 1107

PostPosted: Sun 02 Jun 2013, 15:47    Post subject: Re: momanager
Subject description: wish list
 

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

A warning about old .pot files Twisted Evil

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

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


Delete from? /usr/share/doc/nls only?

_________________


Back to top
View user's profile Send private message 
Bert


Joined: 30 Jun 2006
Posts: 1107

PostPosted: Sun 02 Jun 2013, 17:04    Post subject: Re: fast momanager
Subject description: sort
 

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 Rolling Eyes ...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:
# which Pcur
#
returned nothing because there is no executable Pcur.
So you will grep the menu:
Code:
# 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:
# which pcur
/usr/sbin/pcur
#
That's it Wink


Thanks for this new voodoo lesson Laughing
When I type ' which Pcur' in terminal, I get:
Code:
 /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.

_________________


Back to top
View user's profile Send private message 
Bert


Joined: 30 Jun 2006
Posts: 1107

PostPosted: Sun 02 Jun 2013, 18:25    Post subject: back to my "BAD NEWS" returning  

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.

_________________


Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 3450
Location: www.eussenheim.de/

PostPosted: Mon 03 Jun 2013, 08:25    Post subject: Re: momanager
Subject description: old pot file, which Pcur and grep
 

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 Smile
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 3450
Location: www.eussenheim.de/

PostPosted: Mon 03 Jun 2013, 08:38    Post subject: Re: fast momanager
Subject description: fork
 

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 Rolling Eyes ...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 Cool
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 3450
Location: www.eussenheim.de/

PostPosted: Mon 03 Jun 2013, 13:37    Post subject: forked fast momanager
Subject description: Bert's wish list
 

Wish number 2 became true

Note the Preferences button

Have fun
momanager-20130603.pet
Description 
pet

 Download 
Filename  momanager-20130603.pet 
Filesize  26.22 KB 
Downloaded  370 Time(s) 
Back to top
View user's profile Send private message 
Bert


Joined: 30 Jun 2006
Posts: 1107

PostPosted: Mon 03 Jun 2013, 15:05    Post subject:  

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

Code:
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!

_________________


Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 3450
Location: www.eussenheim.de/

PostPosted: Tue 04 Jun 2013, 04:03    Post subject: bug
Subject description: * Email: It now says "Automatically generated" in the .po heading
 

Bert wrote:
* Email: It now says "Automatically generated" in the .po heading.

Sorry, my bug Embarassed

gettext-tool msginit scans your PC about all known email clients where there could be your email addresses (yes: plural)
and $USER@$HOST which is root@localhost. If there is more than 1 address it has to be selected, just one address has to be confirmed.

I have inserted the --no-translator parameter which creates the "Automatically generated".

... and wanted to change this into $myEMAIL.

Reviewing the code I see my mistake: I forgot to change de.po (my test file) to output-file ${ATEXTDOMAIN}.po
in lines: 917 1062 1647 1656

Code:
sed -i 's/ de.po/ ${ATEXTDOMAIN}.po/' /usr/sbin/momager
will repair this. (copy the code into console and press ENTER key Very Happy )

Or wait for next version which will have also other improvements
Back to top
View user's profile Send private message 
Bert


Joined: 30 Jun 2006
Posts: 1107

PostPosted: Tue 04 Jun 2013, 05:50    Post subject:  

Repaired Smile
(after correcting 'momager' typo in code)
((funny, I often have that typo too! ))

It works flawlessly on new files.

But the file I translated yesterday still has "Automatically generated" in the header, even after editing and saving it twice.

So, for existing translations the programme doesn't use the $myEMAIL , it seems.
(which is maybe a design decision, not a bug Wink )

Thanks again.

_________________


Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 3450
Location: www.eussenheim.de/

PostPosted: Tue 04 Jun 2013, 11:27    Post subject: forked fast momanager
Subject description: next version
 

Bert wrote:
...
So, for existing translations the programme doesn't use the $myEMAIL , it seems.
(which is maybe a design decision, not a bug Wink )

Yes it it is a design decision.
msginit is invoked only for create.

Here is next version 130604 :

language in head line
--empty-- simply makes momanager restart now
search
momanager-20130604.pet
Description 
pet

 Download 
Filename  momanager-20130604.pet 
Filesize  26.76 KB 
Downloaded  370 Time(s) 
momanager_search.png
 Description   
 Filesize   54.2 KB
 Viewed   378 Time(s)

momanager_search.png

Back to top
View user's profile Send private message 
Bert


Joined: 30 Jun 2006
Posts: 1107

PostPosted: Tue 04 Jun 2013, 12:37    Post subject:  

Looking good!

Nice to have the correct language notation on top ('de' or 'de.DE')

After reading your thread about "How to find typo in mo file", I'm beginning to understand what you had in mind for the search engine.

To be honest, my proposal was much more modest: I was thinking about a find-function only for the script names in the Momanager lists. That was before you decided to reconsider 'sort by basename'... Wink

But I can see how your search function will become useful.

"--empty--"...nice..but why? (no need to reply, I'll get it in a few hours Laughing )

I'll continue playing with FFMM-20130604 now.
Thanks!

_________________


Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 3450
Location: www.eussenheim.de/

PostPosted: Tue 04 Jun 2013, 13:21    Post subject:  

Bert wrote:
"--empty--"...nice..but why? (no need to reply, I'll get it in a few hours Laughing )
But it is fun to reply.

You will never get it because nothing happens.
Before this improvement I had to cancel the edit of a file named ".po" and click some cancel buttons when I was accidently clicking "create" button for --empty--.

BTW do you have --empty-- at left side?
If yes then you could have tried it. Wink
Back to top
View user's profile Send private message 
Bert


Joined: 30 Jun 2006
Posts: 1107

PostPosted: Wed 05 Jun 2013, 12:14    Post subject: editing new files stopped working  

Problem: scripts from the right side, when clicked to edit, don't open in editor.

Editing existing translated scripts (left side): no problem.

Editing new XML (right): no problem.

When clicking a right side script, there's a short flashing window and then Momanager returns to its main page.

Anyone else seeing this with FFMM-20130604?

Back to the garden now Smile

EDIT: 'preferences':

Quote:
showINTRO=no
transLANG=nl
myEMAIL=bert@localpub

_________________



Last edited by Bert on Wed 05 Jun 2013, 15:23; edited 1 time in total
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 3450
Location: www.eussenheim.de/

PostPosted: Wed 05 Jun 2013, 13:15    Post subject: Re: editing new files stopped working
Subject description: FFMM-20130604
 

Bert wrote:
Anyone else seeing this with FFMM-20130604?

What is FFMM-20130604?
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 4 of 20 [299 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, ..., 18, 19, 20 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1106s ][ Queries: 12 (0.0167s) ][ GZIP on ]