- Timestamp:
- 2007-07-06T09:57:37+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/actions/SplitWayAction.java
r203 r280 2 2 3 3 import static org.openstreetmap.josm.tools.I18n.tr; 4 import static org.openstreetmap.josm.tools.I18n.trn; 4 5 5 6 import java.awt.event.ActionEvent; … … 30 31 import org.openstreetmap.josm.data.osm.visitor.NameVisitor; 31 32 import org.openstreetmap.josm.data.osm.visitor.Visitor; 33 import org.openstreetmap.josm.tools.I18n; 32 34 33 35 /** … … 155 157 } 156 158 if (wayOccurenceCounter.isEmpty()) { 157 JOptionPane.showMessageDialog(Main.parent, tr("The selected node(s) is (are) not part of any way.")); 159 JOptionPane.showMessageDialog(Main.parent, 160 trn("The selected node is not part of any way.", 161 "The selected nodes are not part of any way.", selectedNodes.size())); 158 162 return; 159 163 } … … 183 187 } 184 188 if (!nds.isEmpty()) { 185 JOptionPane.showMessageDialog(Main.parent, tr("The selected way does not contain (all) the selected node(s).")); 189 JOptionPane.showMessageDialog(Main.parent, 190 trn("The selected way does not contain the selected node.", 191 "The selected way does not contain all the selected nodes.", selectedNodes.size())); 186 192 return; 187 193 } … … 201 207 } 202 208 if (wayOccurenceCounter.isEmpty()) { 203 JOptionPane.showMessageDialog(Main.parent, tr("The selected segment(s) is (are) not part of any way.")); 209 JOptionPane.showMessageDialog(Main.parent, 210 trn("The selected segment is not part of any way.", 211 "The selected segments are not part of any way.", selectedSegments.size())); 204 212 return; 205 213 } … … 208 216 if (entry.getValue().equals(selectedSegments.size())) { 209 217 if (selectedWay != null) { 210 JOptionPane.showMessageDialog(Main.parent, tr("There is more than one way using the segment(s) you selected. Please select the way also.")); 218 JOptionPane.showMessageDialog(Main.parent, 219 trn("There is more than one way using the segment you selected. Please select the way also.", 220 "There is more than one way using the segments you selected. Please select the way also.", selectedSegments.size())); 211 221 return; 212 222 } … … 224 234 225 235 if (!selectedWay.segments.containsAll(selectedSegments)) { 226 JOptionPane.showMessageDialog(Main.parent, tr("The selected way does not contain (all) the selected segment(s).")); 236 JOptionPane.showMessageDialog(Main.parent, 237 trn("The selected way does not contain the selected segment.", 238 "The selected way does not contain all the selected segments.", selectedSegments.size())); 227 239 return; 228 240 }
Note:
See TracChangeset
for help on using the changeset viewer.