Minor fixes to the I18n code of routing
[rails.git] / app / assets / javascripts / routing.js.erb
index 84bf178328954205c4ade68ca92f68eb4da71a10..3f38beef4382a6484c273adad28e3830a0007894 100644 (file)
@@ -216,7 +216,7 @@ OSM.Routing=function(map,name,jqSearch) {
             $('#turnbyturn').append(row);
             cumulative+=step[3];
         }
-        $('#sidebar_content').append('<p id="routing_credit">' + r.chosenEngine.creditline + '</p>');
+        $('#sidebar_content').append('<p id="routing_credit">' + I18n.t('javascripts.directions.instructions.courtesy',{link: r.chosenEngine.creditline}) + '</p>');
 
     };
     r.clickTurn=function(instruction,latlng) {