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/

momanager

#196 Post by L18L »

If you like to have just 1 languagepack for 1 language
(and not 1 languagepack for each puppy)
try this please:

Code: Select all

#141008 keep translations from other puppies to make languagepack useable for more than just 1 distro
insert 2 lines (the lines containing the date #141008) it is near line number 550:

Code: Select all

  case "$METHOD" in
   gettext) NOFUZZY='' ;;
   t12s)    NOFUZZY='--no-fuzzy-matching' ;;
  esac         
  msgmerge -q $NOFUZZY --no-wrap ${ATEXTDOMAIN}1 ${ATEXTDOMAIN}.pot -o - > ${ATEXTDOMAIN}.po 
  #141008 remove comment sign, ex: change #~ msgid "bla" to msgid "bla"
  sed -ir 's/^#~ //' ${ATEXTDOMAIN}.po #141008
 done < $SOURCE_LIST  
or simply download and install attached pet.
Attachments
momanager-20141008.pet
(36.88 KiB) Downloaded 277 times

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

Re: momanager

#197 Post by ASRI éducation »

L18L wrote:momanager-20141007.pet
I have a little problem ...

When I translate an application:
1 - I active 'momanager', then I edit the translation with poedit.
2 - I close momanager.
3 - I test translation (by activating the translated application).
4 - If I find that the translation can be improved, I raise momanager. Problem: translated application no longer appears in the menus of momanager, I must necessarily refresh momanager (this takes several minutes) to continue the translation.

Is it the same for you?
Last edited by ASRI éducation on Tue 11 Nov 2014, 13:59, edited 1 time in total.
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

Re: momanager

#198 Post by ASRI éducation »

double post, sorry
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

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

Re: momanager

#199 Post by L18L »

ASRI éducation wrote:
L18L wrote:momanager-20141007.pet
I have a little problem ...

When I translate an application:
1 - I active 'momanager', then I edit the translation with poedit.
2 - I close momanager.
3 - I test translation (by activating the translated application).
4 - If I find that the translation can be improved, I raise momanager. Problem: translated application no longer appears in the menus of momanager, I must necessarily refresh momanager (this takes several minutes) to continue the translation.

Is it the same for you?
Generally answered: No
When I translate an application:
0 - I launch application in console and momanager in another console.
1 - I edit the translation with geany.
2 - I do close geany and click some buttons öf momanager.
3 - I continue testing translation.
4 - Go to 1 or end.

But I think "the devil is in detail"
Please post
-which application
-which puppy
you are using when these things happen to you
and I will try to reproduce it.
I am much interested in solving this issue.

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

Re: momanager

#200 Post by ASRI éducation »

L18L wrote:But I think "the devil is in detail"
Please post
-which application
-which puppy
you are using when these things happen to you
and I will try to reproduce it.
I am much interested in solving this issue.
I use a base Precise CE (woof 0.3) slightly modified.

To simplify testing, I will create a test script. As soon as it's ready, I communicate it on this forum.

Regards
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

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

Re: momanager

#201 Post by Bert »

ASRI éducation wrote:
L18L wrote:momanager-20141007.pet
I have a little problem ...

When I translate an application:
1 - I active 'momanager', then I edit the translation with poedit.
2 - I close momanager.
3 - I test translation (by activating the translated application).
4 - If I find that the translation can be improved, I raise momanager. Problem: translated application no longer appears in the menus of momanager, I must necessarily refresh momanager (this takes several minutes) to continue the translation.

Is it the same for you?
Hi ASRI,

Confirmed. But with slight differences:

1. I start Momanager, then I edit the translation with Geany.
2. I do not close Momanager.
4. After testing translation, I want to change a thing, so I search for the program in Momanager, but it's gone.
Just like you I have to refresh Momanager to find the wanted program again, indeed taking minutes.

The test program was pcur, as I know it's very small...I changed one word before saving and closing Geany.

Hope this helps L18L :wink:

EDIT: Off-topic: bbcode is not working at the moment in this forum? I have two words in the above post that should be BOLD. <b>sdljhslv</b> is not working for me.
[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

#202 Post by L18L »

Bert wrote:Hope this helps L18L :wink:
It is a bug, really :shock:

The only idea I have now is to try older versions and see which version is starting with this behavor.

But before this let me upload Fatdog's docs....

Thanks for pointing to this bug

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

#203 Post by Bert »

FWIW,

I wiped Momanager- 20141007 and 20141008 from my Precise 5.7.2 and reinstalled MM-20140326 from a backup...same problem! It's a mystery problem now, as I do not recall experiencing it back in early 2014...
[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/

bug

#204 Post by L18L »

Bert
IIVMW (It is very much worth) :lol:

Just one version more back in history....

MoManager-20140303 should do it for now.

Tested in precise5.7.1

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

Re: bug

#205 Post by ASRI éducation »

L18L wrote:IIVMW (It is very much worth) :lol:
The advantage of the problems: they allow us to provide solutions.
:D
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

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

Re: bug

#206 Post by Bert »

L18L wrote:Bert
IIVMW (It is very much worth) :lol:

Just one version more back in history....

MoManager-20140303 should do it for now.

Tested in precise5.7.1
MM-20140303 tested OK in Precise 5.7.2 :wink:
Edited file is on top of the drop-down list again.

Your detective work can start :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
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#207 Post by Bert »

For the sake of completeness:

Barry has MM-20140326 in his new Quirky Unicorn.
Just tested and yes, same problem.
[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: bug

#208 Post by L18L »

Bert wrote:Your detective work can start :lol:
success
New function no_to_yes:

Code: Select all

no_to_yes() {   # update YES file and NO file using $APKGNAME #130505
#ex no_to_yes "$CACHE/YESMO_XML" "${ATEXTDOMAIN}.mo" "$CACHE/YESMO_XML" "$IN" #140308 #141120

 #passed param $1 is NO file	ex: NOMO_XML
 #passed param $2 is identifier ex: xwin.mo
 #passed param $3 is YES file	ex: YESMO_XML
 #passed param $4 is optional: insert $4 after first '>'

 #called from create_mo: $1=$CACHE/NOMO_XML $3=$CACHE/YESMO_XML
 #called from edit_mo:   $1=$3=$CACHE/YESMO_XML
  
 echo "move line of $1 containing "$2 " to begin of $3" #for debug only

 LINE_TO_MOVE="`grep $2 $1`" #131212 bug fix #140307
 echo LINE_TO_MOVE=$LINE_TO_MOVE

 JUST_CREATED=${LINE_TO_MOVE//$4/} #remove $4 to avoid doubles
 [ "$4" = "$ISIN" ] && JUST_CREATED=${JUST_CREATED//$NOTIN/}&& JUST_CREATED=${JUST_CREATED//$FUZZIN/} #140228 remove FUZZIN
 [ "$4" = "$NOTIN" ] && JUST_CREATED=${JUST_CREATED//$ISIN/} #140223 remove ISIN

 #build new YESMO_XML
 mv $3 ${3}_
 echo "${JUST_CREATED/>/>$4}" > $3   # line 1
 grep -v "$LINE_TO_MOVE" ${3}_ >> $3 # others appended

}
Do you want version 141120 which is just a bugfix pf 140309 :?:

Code: Select all

#141120 bug fix in no_to_yes; avoid message about zero fuzzy

#############################################################
# use find_fuzzy
if [ -f "$CACHE/fuzzies" ]; then #140228
 CMD="urxvt --hold --title "MoManager : At first please edit these Fuzzy Translations" -fg black -bg lightyellow -e cat "$CACHE/fuzzies""
 #if [ "`tail -n1 $CACHE/fuzzies | cut -d' ' -f1`" = "found" ]; then
 if [ "`tail -n1 $CACHE/fuzzies | cut -d' ' -f1-2`" = "found 0" ]; then #141120
  :
 else 
  find_fuzzy
  FUZZY_PID="`ps | grep 'urxvt --hold --title MoManager :' | grep -v grep | awk '{print $1}'`"
  [ "$FUZZY_PID" ] && kill $FUZZY_PID > /dev/null
  eval $CMD &
 fi
fi #140228
#############################################################

No
Choose 1 fixed version of:

Code: Select all

#140303 fuzzy bug fix
#140307 find all-fuzzies at start, new sort of scripts that have a mo file, refresh button
#140308 update list of fuzzies for YESMO
#140309 update list of fuzzies for NOMO
#140326 pre-caution: if create_pet then clear cache
#140922 by ASRI # improve icons: stop use /usr/local/lib/X11/mini-icons/, now use gtk icons # improve interface
#141002 by L18L and ASRI # Main window : change width-request of first hbox
#141007 bug fix: fuzzy was NOT shown for "mo file newer than script"
#141008 keep translations from other puppies to make languagepack useable for more than just 1 distro
Your choice :D

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

Re: bug

#209 Post by Bert »

L18L wrote: Your choice :D
Well, we will have to raise your salary again, seeing the speed with which you debug...

My choice?
That would be MM-201411xx. (the fixed 20141008).

( if possible with the extension that allows me to talk to anybody anywhere in the world in my language while eating my sandwich and they understand me and I understand them in their language, while they're eating no matter what. What do you think? Maybe better wait for gettext2?)
[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: bug

#210 Post by L18L »

Bert wrote: raise your salary again
I like salary :lol:

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

momanager-20141123

#211 Post by L18L »

Bert wrote:That would be MM-201411xx. (the fixed 20141008).

( if possible with the extension that allows me to talk to anybody anywhere in the world in my language while eating my sandwich and they understand me and I understand them in their language, while they're eating no matter what. What do you think? Maybe better wait for gettext2?)
Here it is attached
it allows you to talk to anybody anywhere in the world in your language while eating your sandwich (but don't speak with "mouth too full")
Attachments
momanager-20141123.pet
created and tested in precise5.7.1
(37.28 KiB) Downloaded 500 times

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

Re: momanager-20141123

#212 Post by Bert »

Yes, working well!
Thank you L18L...

L18L wrote:(but don't speak with "mouth too full")
Me? never...
Attachments
HMQvkH7.jpg
(10.83 KiB) Downloaded 619 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
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

Re: momanager-20141123

#213 Post by ASRI éducation »

L18L wrote:Here it is attached
momanager-20141123.pet
I have tested with only one translation. This seems to work.
Thank you L18L!
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#214 Post by ASRI éducation »

@ L18L
Optionally, you can update the first post of this thread, to add a link to your latest package.
Regards
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

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

#215 Post by L18L »

ASRI éducation wrote:... update the first post of this thread, to add a link to your latest package.
...done
Feel free to submit it to woof-ce :wink:

Bert, you made me laugh long, thank you :D

Post Reply