]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/amf_controller.rb
Make the preset list at the bottom of the screen (Airport, Bus stop,
[rails.git] / app / controllers / amf_controller.rb
index b9c344771ba88fe36e34152f2e6b16f85004af17..64abdb25785116632dab53bcdf2f8ba326a7551d 100644 (file)
@@ -232,6 +232,12 @@ class AmfController < ApplicationController
     help = localised["help_html"]
     localised.delete("help_html")
 
+    # Populate icon names
+    POTLATCH_PRESETS[10].each { |id|
+      POTLATCH_PRESETS[11][id] = localised["preset_icon_#{id}"]
+      localised.delete("preset_icon_#{id}")
+    }
+
     return POTLATCH_PRESETS+[localised,help]
   end