Opened 16 years ago
Closed 16 years ago
#1915 closed defect (fixed)
Context sensitive help for JMenu uses translated string
Reported by: | stoecker | Owned by: | framm |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | unspecified | Version: | |
Keywords: | Cc: |
Description
The context sensitive help for JMenu's uses the translated string instead of the unstranslated one.
http://josm.openstreetmap.de/wiki/Help/Menu/Datei is used instead of
http://josm.openstreetmap.de/wiki/Help/Menu/File and
http://josm.openstreetmap.de/wiki/Help/Menu/De:File
Attachments (1)
Change History (3)
by , 16 years ago
Attachment: | context_help_menu.diff added |
---|
comment:1 by , 16 years ago
I made an extremely silly patch that solved this for me (I am NOT a java programmer) that imho is too stupid to use, but it might show those more adept at java than me how to do it properly...
Basically in MainMenu.java I chop up the shortName that is sent in to add to register the shortcut into initial and rest, do a uppercase conversion on the initial character and mash them together again and store with putClientProperty as "help", then I remove the "if (c instanceof JMenu)" part from HelpAction.java, and let the (c instanceof AbstractButton) handle the JMenu as well.
Note: this breaks the WMS-plugin, since the help pages are stored at WMS, not Wms while the menu shortcut seems to be registered as wms.
silly diff of how I got context sensitive menu help working