misc: complete and allow translation of leaflet title attribute (#88610) #1310
Loading…
Reference in New Issue
No description provided.
Delete Branch "wip/88610-a11y-leaflet-title-attribute"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
c7c0c9a380
to0f494dc500
@ -27,2 +27,4 @@
map_options.gestureHandling = true;
var map = L.map($(this).attr('id'), map_options);
map.attributionControl.setPrefix(
'<a href="https://leafletjs.com" title="' + WCS_I18N.map_leaflet_title_attribute + '">Leaflet</a>')
J'avais d'abord uniquement vu ici une chaine en anglais.
@ -205,3 +207,3 @@
$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});
Mais pour le marqueur aussi, par défaut il a alt="Marker", pas traduit.
@ -74,12 +74,14 @@ 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'),
Comme juste "Marqueur" ça faisait un peu léger j'ai explicité.
WIP: misc: complete and allow translation of leaflet title attribute (#88610)to misc: complete and allow translation of leaflet title attribute (#88610)