Ignore:
Timestamp:
2016-11-17T17:07:37+01:00 (7 years ago)
Author:
simon04
Message:

fix #13995 - Duplicate nodes validator warnings are not translated

File:
1 edited

Legend:

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

    r11129 r11268  
    22package org.openstreetmap.josm.data.validation.tests;
    33
    4 import static org.openstreetmap.josm.tools.I18n.marktr;
    54import static org.openstreetmap.josm.tools.I18n.tr;
    65
     
    207206                if (nbType > 1) {
    208207                    errors.add(TestError.builder(parentTest, Severity.WARNING, DUPLICATE_NODE_MIXED)
    209                             .message(marktr("Mixed type duplicated nodes"))
     208                            .message(tr("Mixed type duplicated nodes"))
    210209                            .primitives(primitives)
    211210                            .build());
    212211                } else if (typeMap.get("highway")) {
    213212                    errors.add(TestError.builder(parentTest, Severity.ERROR, DUPLICATE_NODE_HIGHWAY)
    214                             .message(marktr("Highway duplicated nodes"))
     213                            .message(tr("Highway duplicated nodes"))
    215214                            .primitives(primitives)
    216215                            .build());
    217216                } else if (typeMap.get("railway")) {
    218217                    errors.add(TestError.builder(parentTest, Severity.ERROR, DUPLICATE_NODE_RAILWAY)
    219                             .message(marktr("Railway duplicated nodes"))
     218                            .message(tr("Railway duplicated nodes"))
    220219                            .primitives(primitives)
    221220                            .build());
    222221                } else if (typeMap.get("waterway")) {
    223222                    errors.add(TestError.builder(parentTest, Severity.ERROR, DUPLICATE_NODE_WATERWAY)
    224                             .message(marktr("Waterway duplicated nodes"))
     223                            .message(tr("Waterway duplicated nodes"))
    225224                            .primitives(primitives)
    226225                            .build());
    227226                } else if (typeMap.get("boundary")) {
    228227                    errors.add(TestError.builder(parentTest, Severity.ERROR, DUPLICATE_NODE_BOUNDARY)
    229                             .message(marktr("Boundary duplicated nodes"))
     228                            .message(tr("Boundary duplicated nodes"))
    230229                            .primitives(primitives)
    231230                            .build());
    232231                } else if (typeMap.get("power")) {
    233232                    errors.add(TestError.builder(parentTest, Severity.ERROR, DUPLICATE_NODE_POWER)
    234                             .message(marktr("Power duplicated nodes"))
     233                            .message(tr("Power duplicated nodes"))
    235234                            .primitives(primitives)
    236235                            .build());
    237236                } else if (typeMap.get("natural")) {
    238237                    errors.add(TestError.builder(parentTest, Severity.ERROR, DUPLICATE_NODE_NATURAL)
    239                             .message(marktr("Natural duplicated nodes"))
     238                            .message(tr("Natural duplicated nodes"))
    240239                            .primitives(primitives)
    241240                            .build());
    242241                } else if (typeMap.get("building")) {
    243242                    errors.add(TestError.builder(parentTest, Severity.ERROR, DUPLICATE_NODE_BUILDING)
    244                             .message(marktr("Building duplicated nodes"))
     243                            .message(tr("Building duplicated nodes"))
    245244                            .primitives(primitives)
    246245                            .build());
    247246                } else if (typeMap.get("landuse")) {
    248247                    errors.add(TestError.builder(parentTest, Severity.ERROR, DUPLICATE_NODE_LANDUSE)
    249                             .message(marktr("Landuse duplicated nodes"))
     248                            .message(tr("Landuse duplicated nodes"))
    250249                            .primitives(primitives)
    251250                            .build());
    252251                } else {
    253252                    errors.add(TestError.builder(parentTest, Severity.WARNING, DUPLICATE_NODE_OTHER)
    254                             .message(marktr("Other duplicated nodes"))
     253                            .message(tr("Other duplicated nodes"))
    255254                            .primitives(primitives)
    256255                            .build());
Note: See TracChangeset for help on using the changeset viewer.