friend map translations

This commit is contained in:
Shaun McDonald 2009-05-29 17:19:04 +00:00
parent 18292dcc43
commit ea2baaee3b
2 changed files with 6 additions and 3 deletions

View file

@ -45,14 +45,14 @@
setMapCenter(centre, zoom); setMapCenter(centre, zoom);
<% if marker %> <% 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 %> <% end %>
var near_icon = OpenLayers.Marker.defaultIcon(); var near_icon = OpenLayers.Marker.defaultIcon();
near_icon.url = OpenLayers.Util.getImagesLocation() + "marker-green.png";; near_icon.url = OpenLayers.Util.getImagesLocation() + "marker-green.png";;
var i = nearest.length; var i = nearest.length;
while( i-- ) { while( i-- ) {
var description = 'Nearby mapper: <a href="/user/'+nearest[i].display_name+'">'+nearest[i].display_name+'</a>' var description = '<%= t 'user.friend_map.nearby mapper'%><a href="/user/'+nearest[i].display_name+'">'+nearest[i].display_name+'</a>'
var nearmarker = addMarkerToMap(new OpenLayers.LonLat(nearest[i].home_lon, nearest[i].home_lat), near_icon.clone(), description); var nearmarker = addMarkerToMap(new OpenLayers.LonLat(nearest[i].home_lon, nearest[i].home_lat), near_icon.clone(), description);
} }
@ -75,7 +75,7 @@
removeMarkerFromMap(marker); removeMarkerFromMap(marker);
} }
marker = addMarkerToMap(lonlat, null, "Your location"); marker = addMarkerToMap(lonlat, null, "<%= t 'user.friend_map.your location' %>");
} }
} }

View file

@ -142,3 +142,6 @@ en:
nearby users: "Nearby users: " nearby users: "Nearby users: "
no nearby users: "There are no users who admit to mapping nearby yet." no nearby users: "There are no users who admit to mapping nearby yet."
change your settings: change your settings change your settings: change your settings
friend_map:
your location: Your location
nearby mapper: "Nearby mapper: "