Changeset 8455 in josm for trunk/src


Ignore:
Timestamp:
2015-06-03T04:12:49+02:00 (9 years ago)
Author:
Don-vip
Message:

fix #11484 - group "missing name" and "long segments" validation results

Location:
trunk/src/org/openstreetmap/josm/data/validation/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/LongSegment.java

    r8382 r8455  
    3737        if(length > maxlength) {
    3838            length /= 1000.0;
    39             errors.add(new TestError(this, Severity.WARNING, tr("Very long segment of {0} kilometers", length.intValue()), LONG_SEGMENT, w));
     39            errors.add(new TestError(this, Severity.WARNING, tr("Long segments"),
     40                    tr("Very long segment of {0} kilometers", length.intValue()),
     41                    String.format("Very long segment of %d kilometers", length.intValue()),
     42                    LONG_SEGMENT, w));
    4043        }
    4144    }
  • trunk/src/org/openstreetmap/josm/data/validation/tests/NameMismatch.java

    r8382 r8455  
    5151    private void missingTranslation(OsmPrimitive p, String name) {
    5252        errors.add(new TestError(this, Severity.OTHER,
    53                 tr("Missing name:*={0}. Add tag with correct language key.", name), NAME_TRANSLATION_MISSING, p));
     53                tr("Missing name:* translation"),
     54                tr("Missing name:*={0}. Add tag with correct language key.", name),
     55                String.format("Missing name:*=%s. Add tag with correct language key.", name), NAME_TRANSLATION_MISSING, p));
    5456    }
    5557
Note: See TracChangeset for help on using the changeset viewer.