X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7eb181999d3357bf210ceb24e18c913bf3ef6ba3..3b329ff9f9d799b2d3e4fe8a0030bd30aa08adef:/app/views/user/_friend_map.rhtml
diff --git a/app/views/user/_friend_map.rhtml b/app/views/user/_friend_map.rhtml
index 9bdb39aae..c6d5f8afe 100644
--- a/app/views/user/_friend_map.rhtml
+++ b/app/views/user/_friend_map.rhtml
@@ -45,18 +45,20 @@
setMapCenter(centre, zoom);
<% if marker %>
- marker = addMarkerToMap(new OpenLayers.LonLat(<%= mlon %>, <%= mlat %>), null, "Your location");
+ marker = addMarkerToMap(new OpenLayers.LonLat(<%= mlon %>, <%= mlat %>), null, "<%= t 'user.friend_map.your location' %>");
<% end %>
var near_icon = OpenLayers.Marker.defaultIcon();
near_icon.url = OpenLayers.Util.getImagesLocation() + "marker-green.png";;
var i = nearest.length;
while( i-- ) {
- var description = 'Nearby mapper: '+nearest[i].display_name+''
+ var description = '<%= t 'user.friend_map.nearby mapper'%>'+nearest[i].display_name+''
var nearmarker = addMarkerToMap(new OpenLayers.LonLat(nearest[i].home_lon, nearest[i].home_lat), near_icon.clone(), description);
}
- map.events.register("click", map, setHome);
+ if (document.getElementById('updatehome')) {
+ map.events.register("click", map, setHome);
+ }
}
function setHome( e ) {
@@ -73,7 +75,7 @@
removeMarkerFromMap(marker);
}
- marker = addMarkerToMap(lonlat, null, "Your location");
+ marker = addMarkerToMap(lonlat, null, "<%= t 'user.friend_map.your location' %>");
}
}