mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-22 03:50:30 +00:00
e28bd2fc99
MapLibre 6 and Mapbox GL 3 both throw out of their Map constructor without WebGL2. Every place that builds a GL map now asks one helper first, components/Map/glSupport.ts, and a browser without WebGL2 gets the Leaflet map with the user's tiles instead of a map that fails to start: - the trip map (MapViewAuto) and the journey maps (JourneyMapAuto) pick their renderer through useGlRenderer, which folds in the Mapbox token rule they each had; - the settings preview, desktop and phone, shows the Leaflet preview through useMapSettingsForm and says why under it; - the tour planner keeps the 2D map when 3D is asked for and says that 3D needs WebGL2; - the PDF route map and the Leaflet vector basemap already fell back and now report a GPU failure too. Behind the probe, buildGlMap wraps each constructor (MapViewGL, JourneyMapGL, the settings preview, the terrain map, the PDF map). A GPU that claims WebGL2 and still refuses the context is reported through utils/webgl, which turns the answer to no and tells every mounted map, so they switch to Leaflet without a reload; any other error is still thrown. Two new strings, map.webgl2.fallback and map.webgl2.terrain, in all 27 locales.
49 lines
2.7 KiB
TypeScript
49 lines
2.7 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
||
|
||
const map: TranslationStrings = {
|
||
'map.connections': 'Connexions',
|
||
'map.showConnections': 'Afficher les itinéraires',
|
||
'map.hideConnections': 'Masquer les itinéraires',
|
||
'poi.searchThisArea': 'Rechercher dans cette zone',
|
||
'poi.cat.restaurants': 'Restaurants', // same-as-en
|
||
'poi.cat.cafes': 'Cafés', // same-as-en
|
||
'poi.cat.bars': 'Bars & vie nocturne',
|
||
'poi.cat.hotels': 'Hébergement',
|
||
'poi.cat.sights': 'Sites touristiques',
|
||
'poi.cat.museums': 'Musées & culture',
|
||
'poi.cat.nature': 'Nature & parcs',
|
||
'poi.cat.activities': 'Activités',
|
||
'poi.pluginCategories': 'Catégories des plugins',
|
||
'map.showAllConnections': 'Afficher tous les itinéraires',
|
||
'map.hideAllConnections': 'Masquer tous les itinéraires',
|
||
'map.baseLayer.default': 'Carte',
|
||
'map.baseLayer.satellite': 'Satellite', // same-as-en
|
||
'map.baseLayer.hiking': 'Randonnée',
|
||
'map.baseLayer.hikingDown':
|
||
'OpenHikingMap ne répond pas pour le moment. Passe à une autre carte ; ton itinéraire reste inchangé.',
|
||
'map.baseLayer.cycle': 'Vélo',
|
||
'map.baseLayer.cycleDown':
|
||
'CyclOSM ne répond pas pour le moment. Passe à une autre carte ; ta sortie reste telle quelle.',
|
||
'map.baseLayer.switchToSatellite': 'Passer à la vue satellite',
|
||
'map.baseLayer.switchToDefault': 'Passer à la vue carte',
|
||
'map.location.denied':
|
||
'L’accès à la position est bloqué. Vérifiez les réglages de l’appareil. Une app installée possède sa propre autorisation de localisation, distincte du navigateur.',
|
||
'map.location.unavailable': 'Votre position n’a pas pu être déterminée.',
|
||
'map.location.timeout': 'La localisation a pris trop de temps. Réessayez avec une vue plus dégagée du ciel.',
|
||
'map.overview.show': 'Afficher tout le voyage',
|
||
'map.lock.lock': 'Verrouiller la vue de la carte',
|
||
'map.lock.unlock': 'Laisser la carte suivre la sélection',
|
||
'map.overview.hide': 'Masquer tout le voyage',
|
||
'map.overview.total': 'Distance totale',
|
||
'map.attribution': 'Crédits de la carte',
|
||
'map.overview.unrouted': '{count} étapes n’ont pas pu être calculées, les distances sont donc incomplètes.',
|
||
'map.overview.unrouted.one': '{count} étape n’a pas pu être calculée, les distances sont donc incomplètes.',
|
||
'map.overview.dayUnrouted': '{count} étapes de cette journée n’ont pas pu être calculées',
|
||
'map.overview.dayUnrouted.one': '{count} étape de cette journée n’a pas pu être calculée',
|
||
'map.baseLayer.topo': 'Topographique',
|
||
'map.webgl2.fallback':
|
||
'Ce navigateur ne propose pas WebGL2, nécessaire aux cartes GL : les cartes s’affichent donc avec Leaflet.',
|
||
'map.webgl2.terrain': 'La 3D nécessite WebGL2, que ce navigateur ne propose pas. La carte reste en 2D.',
|
||
};
|
||
export default map;
|