Page 11 of 15
Re: momanager
Posted: Sat 15 Nov 2014, 20:18
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
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.
Re: momanager
Posted: Wed 19 Nov 2014, 18:42
by L18L
Bert wrote:Hope this helps L18L
It is a bug, really
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
Posted: Wed 19 Nov 2014, 22:11
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...
bug
Posted: Thu 20 Nov 2014, 18:02
by L18L
Bert
IIVMW (It is very much worth)
Just one version more back in history....
MoManager-20140303 should do it for now.
Tested in precise5.7.1
Re: bug
Posted: Thu 20 Nov 2014, 18:46
by ASRI éducation
L18L wrote:IIVMW (It is very much worth)
The advantage of the problems: they allow us to provide solutions.
Re: bug
Posted: Thu 20 Nov 2014, 19:37
by Bert
L18L wrote:Bert
IIVMW (It is very much worth)
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
Edited file is on top of the drop-down list again.
Your detective work can start
Posted: Thu 20 Nov 2014, 20:04
by Bert
For the sake of completeness:
Barry has MM-20140326 in his new Quirky Unicorn.
Just tested and yes, same problem.
Re: bug
Posted: Fri 21 Nov 2014, 16:49
by L18L
Bert wrote:Your detective work can start
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
Re: bug
Posted: Fri 21 Nov 2014, 20:34
by Bert
L18L wrote:
Your choice
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?)
Re: bug
Posted: Sun 23 Nov 2014, 14:52
by L18L
Bert wrote: raise your salary again
I like
salary
momanager-20141123
Posted: Sun 23 Nov 2014, 16:34
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")
Re: momanager-20141123
Posted: Sun 23 Nov 2014, 18:03
by Bert
Yes, working well!
Thank you L18L...
L18L wrote:(but don't speak with "mouth too full")
Me? never...
Re: momanager-20141123
Posted: Thu 27 Nov 2014, 22:10
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!
Posted: Fri 28 Nov 2014, 18:11
by ASRI éducation
@ L18L
Optionally, you can update the first post of this thread, to add a link to your latest package.
Regards
Posted: Sun 30 Nov 2014, 12:00
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
Bert, you made me laugh long, thank you
Posted: Sun 30 Nov 2014, 18:01
by ASRI éducation
L18L wrote: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
Thank you L18L.
Posted: Thu 11 Dec 2014, 18:01
by ASRI éducation
From woof-ce forum:
L18L wrote:Last version of momanager (by L18L) seems to be ok to be integrated in woof-ce.
mavrothal wrote:It might be better to remove it from woof and just add it as a pet instead.
Is not needed for any fundamental OS function. Does it?
I think that BK put it originally in woof because he had no better place for it
Though the fixmenus bit is good speed-wise but brakes the hight adjustment introduced some time ago.
I agree with mavrothal, this will leave us more freedom to change/improve momanager (which is not an application for all users).
In this case, it will be necessary to point out precisely the existence of this package: on the wiki, the forum, etc.
What is your opinion?
Regards,
momanager
Posted: Thu 11 Dec 2014, 19:11
by L18L
ASRI éducation wrote:From woof-ce forum:
L18L wrote:Last version of momanager (by L18L) seems to be ok to be integrated in woof-ce.
mavrothal wrote:It might be better to remove it from woof and just add it as a pet instead.
Is not needed for any fundamental OS function. Does it?
I think that BK put it originally in woof because he had no better place for it
Though the fixmenus bit is good speed-wise but brakes the hight adjustment introduced some time ago.
I agree with mavrothal, this will leave us more freedom to change/improve momanager (which is not an application for all users).
In this case, it will be necessary to point out precisely the existence of this package: on the wiki, the forum, etc.
What is your opinion?
Regards,
fundamental OS function?
If "English only" is fundamental I am no fundamentalist.
woof built puppies and quirkies were so nice because they did contain everything for worldwide use.
momanager was not in devx, in Barry's latest builts there was no devx needed because other "not fundamental" functions (xgettext, msgfmt, etc) were included.
Anyone could
immediately start translating for any language.
Is there any other OS where this is possible?
Posted: Fri 12 Dec 2014, 00:43
by don570
Anyone could immediately start translating for any language.
There seems to be a flaw with LANG=zh_CN and LANG=zh_SG
The mo file can be created but it takes some clever manipulation to get
it to show in Chinese. Instead everything remains in English.
Even mainstream apps such as mtpaint or deadbeef will show only
English menus until forum member 'icake' does his magic.
I made a special page on installing Chinese menus when using LANG=zh_CN
http://www.murga-linux.com/puppy/viewtopic.php?t=87045
_______________________________________________________
Posted: Mon 15 Dec 2014, 19:49
by L18L
don570 wrote:Anyone could immediately start translating for any language.
There seems to be a flaw with LANG=zh_CN and LANG=zh_SG
The mo file can be created but it takes some clever manipulation to get
it to show in Chinese. Instead everything remains in English.
Never got any bug report from China.
So what?
... and the method of producing different language packs for every version of any puppy is ... mh... not for my taste