Changeset 15263 in josm for trunk/data/validator
- Timestamp:
- 2019-07-30T21:22:37+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/validator/deprecated.mapcss
r15262 r15263 1634 1634 fixAdd: "guest_house=bed_and_breakfast"; 1635 1635 } 1636 1637 /* #17880 */ 1638 *[diaper=yes], 1639 *[diaper=no] { 1640 throwWarning: tr("{0} is deprecated", "{0.tag}"); 1641 suggestAlternative: concat("changing_table=", "{0.value}"); 1642 group: tr("deprecated tagging"); 1643 fixChangeKey: "diaper => changing_table"; 1644 set diaper_checked; 1645 } 1646 *[diaper][diaper =~ /^[1-9][0-9]*$/] { 1647 throwWarning: tr("{0} is deprecated", "{0.tag}"); 1648 suggestAlternative: concat("changing_table=yes + changing_table:count=", "{0.value}"); 1649 group: tr("deprecated tagging"); 1650 fixChangeKey: "diaper => changing_table:count"; 1651 fixAdd: "changing_table=yes"; 1652 set diaper_checked; 1653 } 1654 *[diaper=room] { 1655 throwWarning: tr("{0} is deprecated", "{0.tag}"); 1656 suggestAlternative: "changing_table=room"; 1657 suggestAlternative: "changing_table=dedicated_room"; 1658 group: tr("deprecated tagging"); 1659 set diaper_checked; 1660 } 1661 *[diaper]!.diaper_checked { 1662 throwWarning: tr("{0} is deprecated", "{0.key}"); 1663 suggestAlternative: "changing_table"; 1664 group: tr("deprecated tagging"); 1665 } 1666 *[diaper:male=yes] { 1667 throwWarning: tr("{0} is deprecated", "{0.tag}"); 1668 suggestAlternative: "changing_table:location=male_toilet"; 1669 group: tr("deprecated tagging"); 1670 fixAdd: "changing_table:location=male_toilet"; 1671 fixRemove: "diaper:male"; 1672 set diaper___checked; 1673 } 1674 *[diaper:female=yes] { 1675 throwWarning: tr("{0} is deprecated", "{0.tag}"); 1676 suggestAlternative: "changing_table:location=female_toilet"; 1677 group: tr("deprecated tagging"); 1678 fixAdd: "changing_table:location=female_toilet"; 1679 fixRemove: "diaper:female"; 1680 set diaper___checked; 1681 } 1682 *[diaper:unisex=yes] { 1683 throwWarning: tr("{0} is deprecated", "{0.tag}"); 1684 suggestAlternative: "changing_table:location=unisex_toilet"; 1685 group: tr("deprecated tagging"); 1686 fixAdd: "changing_table:location=unisex_toilet"; 1687 fixRemove: "diaper:unisex"; 1688 set diaper___checked; 1689 } 1690 *[diaper:wheelchair=yes], 1691 *[diaper:wheelchair=no] { 1692 throwWarning: tr("{0} is deprecated", "{0.tag}"); 1693 suggestAlternative: concat("changing_table:wheelchair=", "{0.value}"); 1694 group: tr("deprecated tagging"); 1695 fixChangeKey: "diaper:wheelchair => changing_table:wheelchair"; 1696 set diaper___checked; 1697 } 1698 *[diaper:fee=yes], 1699 *[diaper:fee=no] { 1700 throwWarning: tr("{0} is deprecated", "{0.tag}"); 1701 suggestAlternative: concat("changing_table:fee=", "{0.value}"); 1702 group: tr("deprecated tagging"); 1703 fixChangeKey: "diaper:fee => changing_table:fee"; 1704 set diaper___checked; 1705 } 1706 *[/^diaper:/]!.diaper___checked { 1707 throwWarning: tr("{0} is deprecated", "diaper:*"); 1708 suggestAlternative: "changing_table:*"; 1709 group: tr("deprecated tagging"); 1710 } 1711 *[changing_table][changing_table!~/^(yes|no|limited)$/] { 1712 throwWarning: tr("wrong value: {0}", "{0.tag}"); 1713 suggestAlternative: "changing_table=yes"; 1714 suggestAlternative: "changing_table=no"; 1715 suggestAlternative: "changing_table=limited"; 1716 }
Note:
See TracChangeset
for help on using the changeset viewer.