]> git.openstreetmap.org Git - rails.git/blobdiff - public/javascripts/site.js
Some of our JavaScript files have UI messages but we don't want to
[rails.git] / public / javascripts / site.js
index b6566fa810aea39da85fb4a61de998e37cf30ec6..17b2f066875c1ed487c9b15c29b1b106bb9031ae 100644 (file)
@@ -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';
     }
   }