Modify

Opened 16 years ago

Closed 15 years ago

#2234 closed defect (fixed)

Translation can cause JosmActions to illegally handle shortcuts

Reported by: stoecker Owned by: team
Priority: major Milestone:
Component: Core Version:
Keywords: Cc:

Description

When titles are translated, the corresponding JosmActions can have equal names and the Main map shortcut handler is built using these names. This results in conflicts of these actions.

Solution: Either change storage or change all JosmAction to use marktr() and translate later. Second solution requires lots of code changes and probably breaks plugins.

Attachments (0)

Change History (6)

comment:1 by jttt, 15 years ago

Resolution: fixed
Status: newclosed

(In [3227]) Fix #2234 Translation can cause JosmActions to illegally handle shortcuts

comment:2 by jttt, 15 years ago

Resolution: fixed
Status: closedreopened

Fix reverted, some parts of JOSM relies on actions being saved by name in InputMap

comment:3 by stoecker, 15 years ago

Did you find a place where this happens. I searched, but could not really find these places.

comment:4 by jttt, 15 years ago

Escape is registered in UnselectAllAction.

I think proper fix for this issue will be replacing direct access to Main.contentPane by method, that takes action and shortcut and register them. Then it wouldn't matter how are actions stored internally.

comment:5 by stoecker, 15 years ago

Right. Sounds good.

comment:6 by jttt, 15 years ago

Resolution: fixed
Status: reopenedclosed

Fixed in r3252

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.