X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/d0f228879741a8d35ae7d9e98d3fe3c9e227a1fa..b0e15608750417351c2ac3d9ffa6d13fcf6c8ccb:/public/javascripts/site.js diff --git a/public/javascripts/site.js b/public/javascripts/site.js index b6566fa81..17b2f0668 100644 --- a/public/javascripts/site.js +++ b/public/javascripts/site.js @@ -1,3 +1,4 @@ + /* * Called as the user scrolls/zooms around to aniplate hrefs of the * view tab and various other links @@ -61,7 +62,7 @@ function updatelinks(lon,lat,zoom,layers,minlon,minlat,maxlon,maxlat,objtype,obj node.href = setArgs("/edit", args); node.style.fontStyle = 'normal'; } else { - node.href = 'javascript:alert("zoom in to edit map");'; + node.href = 'javascript:alert(rails_i18n["layouts.edit_zoom_alert"]);'; node.style.fontStyle = 'italic'; } } @@ -86,7 +87,7 @@ function updatelinks(lon,lat,zoom,layers,minlon,minlat,maxlon,maxlat,objtype,obj node.href = setArgs("/history", args); node.style.fontStyle = 'normal'; } else { - node.href = 'javascript:alert("zoom in to see editing history");'; + node.href = 'javascript:alert(rails_i18n["layouts.history_zoom_alert"]);'; node.style.fontStyle = 'italic'; } }