Re: Forking Idle - translating menus, etc.

Andre Roberge <[email protected]> Tue, 28 May 2019 20:37:35 -0300
Newsgroups gmane.comp.python.idle
Message-ID <CAGMu_=onHrZ-7cCcBZ50Z=dW0YrSX7hyd1TWQ1efiN=OPkAd=g@mail.gmail.com>
Translation is *almost* working perfectly.  There are two exceptions that
are raised which I do not understand. Currently, I just ignore them and, as
far as I can tell, everything still works.
I've tried to figure out what is going on and I did not manage to do it.

The code is in the following branch
https://github.com/aroberge/cpython/tree/idle-translation-dev which has a
total of 3 commits.

The error I got are the following:

bad menu entry index "*Code Context"
menu =  options ;index =  *Code Context ;state =  disabled
menuitem =  .!menu.options

 bad menu entry index "* Height"
inside zoom_height_event
menu="options", index="* Height", label = RESTORE HEIGHT

 bad menu entry index "* Height"
inside zoom_height_event
menu="options", index="* Height", label = ZOOM Height

They all include an asterisk in the index. I'm guessing it has a special
meaning but I couldn't figure it out.

# The first one occurs in update_menu_state in editor.py -- sorry, I forgot
to log the information. The others occur in zoomheight.py

André Roberge

_______________________________________________
IDLE-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/idle-dev