Make the name of the "Data" layer in OpenLayers translatable: Most of

the OL dialog is still stuck in map.js and untranslatable though.
This commit is contained in:
Ævar Arnfjörð Bjarmason 2009-06-08 18:10:17 +00:00
parent 6a9b2c85e9
commit 0b84885cfc
3 changed files with 3 additions and 1 deletions

View file

@ -107,7 +107,7 @@ end
map = createMap("map");
<% unless OSM_STATUS == :api_offline or OSM_STATUS == :database_offline %>
map.dataLayer = new OpenLayers.Layer("Data", { "visibility": false });
map.dataLayer = new OpenLayers.Layer("<%= I18n.t 'browse.start_rjs.data_layer_name' %>", { "visibility": false });
map.dataLayer.events.register("visibilitychanged", map.dataLayer, toggleData);
map.addLayer(map.dataLayer);
<% end %>