- Timestamp:
- 2022-12-07T14:52:06+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/datatransfer/importers/AbstractTagPaster.java
r14143 r18610 62 62 protected static void commitCommands(Collection<? extends OsmPrimitive> selection, List<Command> commands) { 63 63 if (!commands.isEmpty()) { 64 String title1 = trn("Pasting {0} tag", "Pasting {0} tags", commands.size(), commands.size()); 64 final int changedTags = commands.stream() 65 .filter(ChangePropertyCommand.class::isInstance) 66 .map(ChangePropertyCommand.class::cast) 67 .mapToInt(p -> p.getTags().size()) 68 .sum(); 69 String title1 = trn("Pasting {0} tag", "Pasting {0} tags", changedTags, changedTags); 65 70 String title2 = trn("to {0} object", "to {0} objects", selection.size(), selection.size()); 66 71 @I18n.QuirkyPluralString
Note:
See TracChangeset
for help on using the changeset viewer.