Make more of the javascript routing functions internationalizable

This commit is contained in:
Kai Krueger 2014-02-01 21:10:54 -07:00
parent 3cfcf18a59
commit 3eaf58c151
9 changed files with 94 additions and 30 deletions

View file

@ -4,7 +4,7 @@
// http://cloudmade.com/documentation/routing
OSM.RoutingEngines.list.push({
name: 'Foot (CloudMade)',
name: "javascripts.directions.engines.cloudmade_foot",
draggable: false,
CM_SPRITE_MAP: {
"C": 1,
@ -25,7 +25,8 @@ OSM.RoutingEngines.list.push({
}
url+=p.join(',');
url+="/foot.js";
this.requestJSONP(url+"?callback=");
url+="?lang=" + I18n.currentLocale();
this.requestJSONP(url+"&callback=");
},
gotRoute: function(router,data) {
router.setPolyline(data.route_geometry);