Changeset 6689 in josm
- Timestamp:
- 2014-01-15T11:08:51+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/validator/deprecated.mapcss
r6688 r6689 1 1 *[barrier=wire_fence] { 2 throwWarning: tr("{0}={1} is deprecated", " barrier", "wire_fence");2 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 3 3 fixAdd: "barrier=fence"; 4 4 fixAdd: "fence_type=chain_link"; … … 8 8 9 9 *[barrier=wood_fence] { 10 throwWarning: tr("{0}={1} is deprecated", " barrier", "wood_fence");10 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 11 11 fixAdd: "barrier=fence"; 12 12 fixAdd: "fence_type=wood"; … … 14 14 15 15 *[highway=ford] { 16 throwWarning: tr("{0}={1} is deprecated", " highway", "ford");16 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 17 17 fixRemove: "highway"; 18 18 fixAdd: "ford=yes"; … … 21 21 *[class] { 22 22 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */ 23 throwWarning: tr("{0} is deprecated", " class");23 throwWarning: tr("{0} is deprecated", "{0.key}"); 24 24 suggestAlternative: "highway"; 25 25 } … … 27 27 *[highway=stile] { 28 28 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */ 29 throwWarning: tr("{0}={1} is deprecated", " highway", "stile");29 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 30 30 fixRemove: "highway"; 31 31 fixAdd: "barrier=stile"; … … 34 34 *[highway=incline] { 35 35 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */ 36 throwWarning: tr("{0}={1} is deprecated", " highway", "incline");36 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 37 37 suggestAlternative: "incline"; 38 38 } … … 40 40 *[highway=incline_steep] { 41 41 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */ 42 throwWarning: tr("{0}={1} is deprecated", " highway", "incline");42 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 43 43 suggestAlternative: "incline"; 44 44 } … … 46 46 *[highway=unsurfaced] { 47 47 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */ 48 throwWarning: tr("{0}={1} is deprecated", " highway", "unsurfaced");48 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 49 49 fixAdd: "highway=road"; 50 50 fixAdd: "incline=unpaved"; … … 53 53 *[landuse=wood] { 54 54 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */ 55 throwWarning: tr("{0}={1} is deprecated", " landuse", "wood");55 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 56 56 suggestAlternative: "landuse=forest"; 57 57 suggestAlternative: "natural=wood"; … … 60 60 *[natural=marsh] { 61 61 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */ 62 throwWarning: tr("{0}={1} is deprecated", " natural", "marsh");62 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 63 63 fixAdd: "natural=wetland"; 64 64 fixAdd: "wetland=marsh"; … … 67 67 *[highway=byway] { 68 68 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */ 69 throwWarning: tr("{0}={1} is deprecated", " highway", "byway");69 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 70 70 } 71 71 72 72 *[power_source] { 73 73 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */ 74 throwWarning: tr("{0} is deprecated", " power_source");74 throwWarning: tr("{0} is deprecated", "{0.key}"); 75 75 suggestAlternative: "generator:source"; 76 76 } … … 78 78 *[power_rating] { 79 79 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */ 80 throwWarning: tr("{0} is deprecated", " power_rating");80 throwWarning: tr("{0} is deprecated", "{0.key}"); 81 81 suggestAlternative: "generator:output"; 82 82 } … … 84 84 *[shop=organic] { 85 85 /* from http://wiki.openstreetmap.org/wiki/Tag:shop=organic */ 86 throwWarning: tr("{0}={1} is deprecated", " shop", "organic");86 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 87 87 fixAdd: "shop=supermarket"; 88 88 fixAdd: "organic=only"; … … 91 91 *[bicycle_parking=sheffield] { 92 92 /* from http://wiki.openstreetmap.org/wiki/Key:bicycle_parking */ 93 throwWarning: tr("{0}={1} is deprecated", " bicycle_parking", "sheffield");93 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 94 94 fixAdd: "bicycle_parking=stands"; 95 95 } … … 97 97 *[amenity=emergency_phone] { 98 98 /* http://wiki.openstreetmap.org/wiki/Tag:emergency=phone */ 99 throwWarning: tr("{0}={1} is deprecated", " amenity", "emergency_phone");99 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 100 100 fixRemove: "amenity"; 101 101 fixAdd: "emergency=phone"; … … 104 104 *[sport=gaelic_football] { 105 105 /* fix #8132 - http://wiki.openstreetmap.org/wiki/Tag:sport=gaelic_football */ 106 throwWarning: tr("{0}={1} is deprecated", " sport", "gaelic_football");106 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 107 107 fixAdd: "sport=gaelic_games"; 108 108 } … … 110 110 *[power=station] { 111 111 /* see #8847 / #8961 - http://wiki.openstreetmap.org/wiki/Tag:power=station */ 112 throwWarning: tr("{0}={1} is deprecated", " power", "station");112 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 113 113 suggestAlternative: "power=plant"; 114 114 suggestAlternative: "power=substation"; 115 115 } 116 117 *[power=sub_station] { 118 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 119 fixAdd: "power=substation"; 120 } 116 121 117 122 *[generator:method=dam] { 118 throwWarning: tr("{0}={1} is deprecated", " generator:method", "dam");123 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 119 124 fixAdd: "generator:method=water-storage"; 120 125 } 121 126 122 127 *[generator:method=pumped-storage] { 123 throwWarning: tr("{0}={1} is deprecated", " generator:method", "pumped-storage");128 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 124 129 fixAdd: "generator:method=water-pumped-storage"; 125 130 } 126 131 127 132 *[generator:method=pumping] { 128 throwWarning: tr("{0}={1} is deprecated", " generator:method", "pumping");133 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 129 134 fixAdd: "generator:method=water-pumped-storage"; 130 135 } … … 132 137 *[fence_type=chain] { 133 138 /* see #8962 - http://wiki.openstreetmap.org/wiki/Key:fence_type */ 134 throwWarning: tr("{0}={1} is deprecated", " fence_type", "chain");139 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 135 140 suggestAlternative: "barrier=chain"; 136 141 suggestAlternative: "fence_type=chain_link"; … … 139 144 *[building=entrance] { 140 145 /* see #9000 - http://wiki.openstreetmap.org/wiki/Key:entrance */ 141 throwWarning: tr("{0}={1} is deprecated", " building", "entrance");146 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 142 147 suggestAlternative: "entrance"; 143 148 } … … 145 150 *[board_type=board] { 146 151 /* see #9213 - Useless tag proposed in internal preset for years */ 147 throwWarning: tr("{0}={1} is deprecated", " board_type", "board");152 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 148 153 fixRemove: "board_type"; 149 154 } … … 151 156 *[man_made=measurement_station] { 152 157 /* see #8434 - http://wiki.openstreetmap.org/wiki/Proposed_features/monitoring_station */ 153 throwWarning: tr("{0}={1} is deprecated", " man_made", "measurement_station");158 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 154 159 fixAdd: "man_made=monitoring_station"; 155 160 } 156 161 157 162 *[measurement=water_level] { 158 throwWarning: tr("{0}={1} is deprecated", " measurement", "water_level");163 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 159 164 fixRemove: "measurement"; 160 165 fixAdd: "monitoring:water_level=yes"; … … 162 167 163 168 *[measurement=weather] { 164 throwWarning: tr("{0}={1} is deprecated", " measurement", "weather");169 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 165 170 fixRemove: "measurement"; 166 171 fixAdd: "monitoring:weather=yes"; … … 168 173 169 174 *[measurement=seismic] { 170 throwWarning: tr("{0}={1} is deprecated", " measurement", "seismic");175 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 171 176 fixRemove: "measurement"; 172 177 fixAdd: "monitoring:seismic_activity=yes"; … … 174 179 175 180 *[monitoring:river_level] { 176 throwWarning: tr("{0} is deprecated", " monitoring:river_level");181 throwWarning: tr("{0} is deprecated", "{0.key}"); 177 182 fixChangeKey: "monitoring:river_level => monitoring:water_level"; 178 183 } … … 180 185 *[emergency=aed] { 181 186 /* see #9554 - http://wiki.openstreetmap.org/wiki/Proposed_features/automated_external_defibrillator */ 182 throwWarning: tr("{0}={1} is deprecated", " emergency", "aed");187 throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); 183 188 fixAdd: "emergency=defibrillator"; 184 189 }
Note:
See TracChangeset
for help on using the changeset viewer.