Changeset 18980 in josm for trunk/src/org


Ignore:
Timestamp:
2024-02-13T18:25:12+01:00 (9 months ago)
Author:
taylor.smock
Message:

Fix #23290: Improve region check messages and run region checks when informational warnings are disabled

File:
1 edited

Legend:

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

    r18918 r18980  
    750750                if (isInRegion == preset.exclude_regions()) {
    751751                    errors.add(TestError.builder(this, Severity.WARNING, INVALID_REGION)
    752                             .message(tr("Invalid region for this preset"),
     752                            .message(tr("Preset is invalid in this region"),
    753753                                    marktr("Preset {0} should not be applied in this region"),
    754754                                    preset.getLocaleName())
     
    826826                        .primitives(p);
    827827                if (value == null) {
    828                     builder.message(tr("Invalid region for this preset"),
     828                    builder.message(tr("Key from a preset is invalid in this region"),
    829829                            marktr("Preset {0} should not have the key {1}"),
    830830                            preset.getLocaleName(), key);
    831831                } else {
    832                     builder.message(tr("Invalid region for this preset"),
     832                    builder.message(tr("Value from a preset is invalid in this region"),
    833833                            marktr("Preset {0} should not have the tag {1}={2}"),
    834834                            preset.getLocaleName(), key, value);
     
    12671267        }
    12681268
    1269         checkRegions = includeOtherSeverity && Config.getPref().getBoolean(PREF_CHECK_REGIONS, true);
     1269        checkRegions = Config.getPref().getBoolean(PREF_CHECK_REGIONS, true);
    12701270        if (isBeforeUpload) {
    12711271            checkRegions = checkRegions && Config.getPref().getBoolean(PREF_CHECK_REGIONS_BEFORE_UPLOAD, true);
Note: See TracChangeset for help on using the changeset viewer.