From 95b1eb6ccea3fcaa55150538d67e5a93d1bf4e3b Mon Sep 17 00:00:00 2001 From: Eric Brelsford Date: Mon, 15 Jun 2015 16:37:42 -0400 Subject: [PATCH] Use the cycleway's strings.options property to get options --- js/id/ui/preset/cycleway.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/id/ui/preset/cycleway.js b/js/id/ui/preset/cycleway.js index 4c92242db..ebe28c147 100644 --- a/js/id/ui/preset/cycleway.js +++ b/js/id/ui/preset/cycleway.js @@ -71,9 +71,7 @@ iD.ui.preset.cycleway = function(field) { } cycleway.options = function() { - var options = ['none', 'lane', 'shared_lane', 'track', 'share_busway', 'opposite_lane', 'opposite']; - - return options.map(function(option) { + return d3.keys(field.strings.options).map(function(option) { return { title: field.t('options.' + option + '.description'), value: option