Changeset 8873 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2015-10-14T22:55:08+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/util/MultipleNameVisitor.java
r8846 r8873 63 63 displayName = name; 64 64 } else { 65 displayName = size + ' ' + trn(multipleClassname, multiplePluralClassname, size);65 StringBuilder sb = new StringBuilder().append(size).append(' ').append(trn(multipleClassname, multiplePluralClassname, size)); 66 66 if (multipleName.length() > 0) { 67 sb.append(": "); 67 68 if (multipleName.length() <= MULTIPLE_NAME_MAX_LENGTH) { 68 displayName += ": " + multipleName;69 sb.append(multipleName); 69 70 } else { 70 displayName += ": " + multipleName.substring(0, MULTIPLE_NAME_MAX_LENGTH) + "...";71 sb.append(multipleName.substring(0, MULTIPLE_NAME_MAX_LENGTH)).append("..."); 71 72 } 72 73 } 74 displayName = sb.toString(); 73 75 } 74 76 }
Note:
See TracChangeset
for help on using the changeset viewer.