Changeset 104 in josm for src/org/openstreetmap/josm/actions/mapmode/AddNodeAction.java
- Timestamp:
- 2006-07-03T00:31:24+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/actions/mapmode/AddNodeAction.java
r102 r104 1 1 package org.openstreetmap.josm.actions.mapmode; 2 3 import static org.openstreetmap.josm.tools.I18n.tr; 2 4 3 5 import java.awt.Cursor; … … 42 44 public AddNodeGroup(MapFrame mf) { 43 45 super(KeyEvent.VK_N,0); 44 actions.add(new AddNodeAction(mf, "Add node", Mode.node, "Add a new node to the map"));45 actions.add(new AddNodeAction(mf, "Add node into segment", Mode.nodesegment, "Add a node into an existing segment"));46 actions.add(new AddNodeAction(mf,tr("Add node"), Mode.node, tr("Add a new node to the map"))); 47 actions.add(new AddNodeAction(mf, tr("Add node into segment"), Mode.nodesegment,tr( "Add a node into an existing segment"))); 46 48 setCurrent(0); 47 49 } … … 79 81 Node n = new Node(Main.map.mapView.getLatLon(e.getX(), e.getY())); 80 82 if (n.coor.isOutSideWorld()) { 81 JOptionPane.showMessageDialog(Main.parent, "Can not add a node outside of the world.");83 JOptionPane.showMessageDialog(Main.parent,tr("Can not add a node outside of the world.")); 82 84 return; 83 85 } … … 128 130 } 129 131 130 c = new SequenceCommand( "Add Node into Segment", cmds);132 c = new SequenceCommand(tr("Add Node into Segment"), cmds); 131 133 } 132 134 Main.main.editLayer().add(c);
Note:
See TracChangeset
for help on using the changeset viewer.