Changeset 13027 in josm for trunk/data/validator


Ignore:
Timestamp:
2017-10-21T11:43:41+02:00 (7 years ago)
Author:
Klumbumbus
Message:

fix #15463 - improve layer validator messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/validator/numeric.mapcss

    r13005 r13027  
    88
    99*[layer =~ /^\+\d/] {
    10   throwWarning: tr("layer tag with + sign");
     10  throwWarning: tr("{0} value with + sign", "{0.key}");
    1111  fixAdd: concat("layer=", replace(tag("layer"), "+", ""));
    1212  assertMatch: "node layer=+1";
     
    1717
    1818*[layer][layer !~ /^0$|^(-|\+)?[1-5]$/] {
    19   throwWarning: tr("layer should be between -5 and 5");
     19  throwWarning: tr("{0} should be an integer value between -5 and 5", "{0.key}");
    2020  assertMatch: "node layer=-50";
    2121  assertMatch: "node layer=6";
    22   assertMatch: "node layer=+100";
     22  assertMatch: "node layer=+10";
     23  assertMatch: "node layer=0.5";
     24  assertMatch: "node layer=0;1";
    2325  assertNoMatch: "node layer=-5";
    2426  assertNoMatch: "node layer=0";
Note: See TracChangeset for help on using the changeset viewer.