Changeset 1826 in josm for trunk/src/org/openstreetmap/josm/command
- Timestamp:
- 2009-07-24T11:19:32+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/DeleteCommand.java
r1814 r1826 90 90 91 91 String cname = null; 92 String apiname = null; 92 93 String cnamem = null; 93 94 for (OsmPrimitive osm : toDelete) { 94 95 if (cname == null) { 96 apiname = OsmPrimitiveType.from(osm).getAPIName(); 95 97 cname = OsmPrimitiveType.from(osm).getLocalizedDisplayNameSingular(); 96 cnamem = OsmPrimitiveType.from(osm).getLocalizedDisplayName Singular();98 cnamem = OsmPrimitiveType.from(osm).getLocalizedDisplayNamePlural(); 97 99 } else if (!cname.equals(OsmPrimitiveType.from(osm).getLocalizedDisplayNameSingular())) { 98 cname = "object"; 100 apiname = "object"; 101 cname = trn("object", "objects", 1); 99 102 cnamem = trn("object", "objects", 2); 100 103 } 101 104 } 102 105 DefaultMutableTreeNode root = new DefaultMutableTreeNode(new JLabel(tr("Delete {0} {1}", toDelete.size(), trn( 103 cname, cnamem, toDelete.size())), ImageProvider.get("data", cname), JLabel.HORIZONTAL));106 cname, cnamem, toDelete.size())), ImageProvider.get("data", apiname), JLabel.HORIZONTAL)); 104 107 for (OsmPrimitive osm : toDelete) { 105 108 root.add(new DefaultMutableTreeNode(
Note:
See TracChangeset
for help on using the changeset viewer.