Use generic GraphHopper engine
[rails.git] / app / assets / javascripts / routing.js.erb
index d1c66e2939b6d86d98983fc584e54f1f018e2f54..2a10a9d5e571cd8025ea30e6cfad0160af31bef5 100644 (file)
@@ -238,7 +238,7 @@ OSM.Routing=function(map,name,jqSearch) {
 
        // Add all engines
        var list=OSM.RoutingEngines.list;
-       list.sort(function(a,b) { return a.name>b.name; });
+       list.sort(function(a,b) { return I18n.t(a.name)>I18n.t(b.name); });
        var select=r.jqSearch.find('select.routing_engines');
        for (var i=0; i<list.length; i++) {
                // Set up JSONP callback