Changeset 15019 in josm for trunk


Ignore:
Timestamp:
2019-04-25T17:30:56+02:00 (6 years ago)
Author:
GerdP
Message:

fix #17567: fix spelling turnrestriction -> turn restriction

File:
1 edited

Legend:

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

    r15004 r15019  
    1818
    1919/**
    20  * Checks if turnrestrictions are valid
     20 * Checks if turn restrictions are valid
    2121 * @since 3669
    2222 */
     
    5353     */
    5454    public TurnrestrictionTest() {
    55         super(tr("Turnrestrictions"), tr("This test checks if turnrestrictions are valid."));
     55        super(tr("Turn restrictions"), tr("This test checks if turn restrictions are valid."));
    5656    }
    5757
     
    6363        if (!r.hasTag("restriction", SUPPORTED_RESTRICTIONS)) {
    6464            errors.add(TestError.builder(this, Severity.ERROR, UNKNOWN_RESTRICTION)
    65                     .message(tr("Unknown turnrestriction"))
     65                    .message(tr("Unknown turn restriction"))
    6666                    .primitives(r)
    6767                    .build());
     
    116116                default:
    117117                    errors.add(TestError.builder(this, Severity.WARNING, UNEXPECTED_ROLE)
    118                             .message(tr("Unexpected role ''{0}'' in turnrestriction", m.getRole()))
     118                            .message(tr("Unexpected role ''{0}'' in turn restriction", m.getRole()))
    119119                            .primitives(l)
    120120                            .highlight(m.getMember())
     
    135135                } else {
    136136                    errors.add(TestError.builder(this, Severity.WARNING, UNEXPECTED_ROLE)
    137                             .message(tr("Unexpected role ''{0}'' in turnrestriction", m.getRole()))
     137                            .message(tr("Unexpected role ''{0}'' in turn restriction", m.getRole()))
    138138                            .primitives(l)
    139139                            .highlight(m.getMember())
     
    142142            } else {
    143143                errors.add(TestError.builder(this, Severity.WARNING, UNEXPECTED_TYPE)
    144                         .message(tr("Unexpected member type in turnrestriction"))
     144                        .message(tr("Unexpected member type in turn restriction"))
    145145                        .primitives(l)
    146146                        .highlight(m.getMember())
     
    225225            if (isFullOneway(toWay) && viaNode.equals(toWay.lastNode(true))) {
    226226                errors.add(TestError.builder(this, Severity.WARNING, SUPERFLUOUS)
    227                         .message(tr("Superfluous turnrestriction as \"to\" way is oneway"))
     227                        .message(tr("Superfluous turn restriction as \"to\" way is oneway"))
    228228                        .primitives(r)
    229229                        .highlight(toWay)
     
    233233            if (isFullOneway(fromWay) && viaNode.equals(fromWay.firstNode(true))) {
    234234                errors.add(TestError.builder(this, Severity.WARNING, SUPERFLUOUS)
    235                         .message(tr("Superfluous turnrestriction as \"from\" way is oneway"))
     235                        .message(tr("Superfluous turn restriction as \"from\" way is oneway"))
    236236                        .primitives(r)
    237237                        .highlight(fromWay)
     
    248248            if (isFullOneway(toWay) && ((Way) via.get(via.size() - 1)).isFirstLastNode(toWay.lastNode(true))) {
    249249                errors.add(TestError.builder(this, Severity.WARNING, SUPERFLUOUS)
    250                         .message(tr("Superfluous turnrestriction as \"to\" way is oneway"))
     250                        .message(tr("Superfluous turn restriction as \"to\" way is oneway"))
    251251                        .primitives(r)
    252252                        .highlight(toWay)
     
    256256            if (isFullOneway(fromWay) && ((Way) via.get(0)).isFirstLastNode(fromWay.firstNode(true))) {
    257257                errors.add(TestError.builder(this, Severity.WARNING, SUPERFLUOUS)
    258                         .message(tr("Superfluous turnrestriction as \"from\" way is oneway"))
     258                        .message(tr("Superfluous turn restriction as \"from\" way is oneway"))
    259259                        .primitives(r)
    260260                        .highlight(fromWay)
Note: See TracChangeset for help on using the changeset viewer.