diff --git a/data/presets/forms/roadtype.json b/data/presets/forms/roadtype.json index 4d8583857..f509e0695 100644 --- a/data/presets/forms/roadtype.json +++ b/data/presets/forms/roadtype.json @@ -1,5 +1,4 @@ { - "title": " ", "type": "radio", "options": [ "bridge", diff --git a/js/id/ui/preset/radio.js b/js/id/ui/preset/radio.js index a13dd9159..0340084fa 100644 --- a/js/id/ui/preset/radio.js +++ b/js/id/ui/preset/radio.js @@ -1,23 +1,22 @@ iD.ui.preset.radio = function(form) { var event = d3.dispatch('change', 'close'), - buttons, - input; + buttons; function radio(selection) { - selection.classed('preset-radio', true); buttons = selection.selectAll('button') .data(form.options) .enter() .append('button') - .text(function(d) { return d; }) + .text(function(d) { return form.t('options.' + d, {default: d}); }) .on('click', function() { buttons.classed('active', false); d3.select(this).classed('active', true); change(); }); + selection.append('button') .on('click', function() { buttons.classed('active', false); diff --git a/locale/en.js b/locale/en.js index 5d9729967..40d8fc78b 100644 --- a/locale/en.js +++ b/locale/en.js @@ -382,7 +382,7 @@ locale.en = { } }, "roadtype": { - "label": "Road Type", + "label": "Features", "options": { "bridge": "Bridge", "tunnel": "Tunnel",