Move javascript translations to a separate key based on the path to

the javascript file that uses them and amend the layout to automatically
find and output all javascript strings.
This commit is contained in:
Tom Hughes 2009-10-02 23:33:17 +00:00
parent 52126dc3c1
commit 596ab82461
5 changed files with 48 additions and 29 deletions

View 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';
}
}