friend map translations
This commit is contained in:
parent
18292dcc43
commit
ea2baaee3b
2 changed files with 6 additions and 3 deletions
|
@ -45,14 +45,14 @@
|
|||
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: <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);
|
||||
}
|
||||
|
||||
|
@ -75,7 +75,7 @@
|
|||
removeMarkerFromMap(marker);
|
||||
}
|
||||
|
||||
marker = addMarkerToMap(lonlat, null, "Your location");
|
||||
marker = addMarkerToMap(lonlat, null, "<%= t 'user.friend_map.your location' %>");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -142,3 +142,6 @@ en:
|
|||
nearby users: "Nearby users: "
|
||||
no nearby users: "There are no users who admit to mapping nearby yet."
|
||||
change your settings: change your settings
|
||||
friend_map:
|
||||
your location: Your location
|
||||
nearby mapper: "Nearby mapper: "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue