]> git.openstreetmap.org Git - rails.git/blobdiff - public/javascripts/site.js
Move javascript translations to a separate key based on the path to
[rails.git] / public / javascripts / site.js
index 17b2f066875c1ed487c9b15c29b1b106bb9031ae..9dbb2a6404862f9c4a27d0ddcc6e8572c92aef0c 100644 (file)
@@ -62,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(rails_i18n["layouts.edit_zoom_alert"]);';
+      node.href = 'javascript:alert(rails_i18n["javascripts.site.edit_zoom_alert"]);';
       node.style.fontStyle = 'italic';
     }
   }
@@ -87,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(rails_i18n["layouts.history_zoom_alert"]);';
+      node.href = 'javascript:alert(rails_i18n["javascripts.site.history_zoom_alert"]);';
       node.style.fontStyle = 'italic';
     }
   }