Changeset 34785 in osm for applications/editors/josm


Ignore:
Timestamp:
2018-12-18T07:12:19+01:00 (6 years ago)
Author:
gerdp
Message:

don't use String constant in registerShortcut() because the call is parsed by a script to create an overview of the shortcuts and it cannot handle this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/actions/SplitOnIntersectionsAction.java

    r34782 r34785  
    4040    private static final String TOOL_DESC = tr("Split adjacent ways on T-intersections");
    4141    public SplitOnIntersectionsAction() {
    42         super(TITLE, "dumbutils/splitonintersections", TOOL_DESC,
    43                 Shortcut.registerShortcut("tools:splitonintersections", tr("Tool: {0}", TITLE), KeyEvent.VK_P, Shortcut.ALT_CTRL_SHIFT),
    44                 true);
     42                super(TITLE, "dumbutils/splitonintersections", TOOL_DESC,
     43                                Shortcut.registerShortcut("tools:splitonintersections", tr("Tool: {0}", tr("Split adjacent ways")),
     44                                                KeyEvent.VK_P, Shortcut.ALT_CTRL_SHIFT),
     45                                true);
    4546    }
    4647
Note: See TracChangeset for help on using the changeset viewer.