Changeset 8963 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2015-10-27T23:40:12+01:00 (9 years ago)
Author:
simon04
Message:

see #10730 - Way splitting: hide id of new ways for non English languages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java

    r8958 r8963  
    262262                    final String name = DefaultNameFormatter.getInstance().format((Way) value);
    263263                    // get rid of id from DefaultNameFormatter.decorateNameWithId()
    264                     final String nameWithoutId = name.replaceAll(" \\[id: -?\\d+\\]$", "");
     264                    final String nameWithoutId = name
     265                            .replace(tr(" [id: {0}]", ((Way) value).getId()), "")
     266                            .replace(tr(" [id: {0}]", ((Way) value).getUniqueId()), "");
    265267                    ((JLabel) c).setText(tr("Segment {0}: {1}", index + 1, nameWithoutId));
    266268                    return c;
Note: See TracChangeset for help on using the changeset viewer.