misc: complete and translate alt attribute of selected position marker (#88610)

This commit is contained in:
Frédéric Péters 2024-03-25 11:56:20 +01:00
parent dc21f05960
commit 8985a905ae
2 changed files with 2 additions and 1 deletions

View File

@ -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);

View File

@ -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...'),