misc: complete and translate alt attribute of selected position marker (#88610)
This commit is contained in:
parent
dc21f05960
commit
8985a905ae
|
@ -206,7 +206,7 @@ $(window).on('wcs:maps-init', function() {
|
|||
|
||||
$map_widget.on('set-geolocation', function(e, coords, options) {
|
||||
if (map.marker === null) {
|
||||
map.marker = L.marker([0, 0]);
|
||||
map.marker = L.marker([0, 0], {alt: WCS_I18N.map_position_marker_alt});
|
||||
map.marker.addTo(map);
|
||||
}
|
||||
map.marker.setLatLng(coords);
|
||||
|
|
|
@ -74,6 +74,7 @@ def i18n_js(request):
|
|||
'geoloc_permission_denied': _('Geolocation: permission denied'),
|
||||
'geoloc_position_unavailable': _('Geolocation: position unavailable'),
|
||||
'geoloc_timeout': _('Geolocation: timeout'),
|
||||
'map_position_marker_alt': _('Marker of selected position'),
|
||||
'map_search_error': _('An error occured while fetching results'),
|
||||
'map_search_hint': _('Search address'),
|
||||
'map_search_searching': _('Searching...'),
|
||||
|
|
Loading…
Reference in New Issue