Files
TREK/shared/src/i18n/en/map.ts
T
Maurice e28bd2fc99 fix(maps): draw with Leaflet wherever WebGL2 is missing
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.
2026-10-24 22:41:56 +00:00

48 lines
2.4 KiB
TypeScript

import type { TranslationStrings } from '../types';
const map: TranslationStrings = {
'map.connections': 'Connections',
'map.showConnections': 'Show booking routes',
'map.hideConnections': 'Hide booking routes',
'poi.searchThisArea': 'Search this area',
'poi.cat.restaurants': 'Restaurants',
'poi.cat.cafes': 'Cafés',
'poi.cat.bars': 'Bars & nightlife',
'poi.cat.hotels': 'Accommodation',
'poi.cat.sights': 'Sights',
'poi.cat.museums': 'Museums & culture',
'poi.cat.nature': 'Nature & parks',
'poi.cat.activities': 'Activities',
'poi.pluginCategories': 'Categories from plugins',
'map.showAllConnections': 'Show all booking routes',
'map.hideAllConnections': 'Hide all booking routes',
'map.baseLayer.default': 'Map',
'map.baseLayer.satellite': 'Satellite',
'map.baseLayer.hiking': 'Hiking',
'map.baseLayer.hikingDown':
'OpenHikingMap is not answering right now. Switch to another map; your tour stays as it is.',
'map.baseLayer.cycle': 'Cycling',
'map.baseLayer.cycleDown': 'CyclOSM is not answering right now. Switch to another map; your tour stays as it is.',
'map.baseLayer.switchToSatellite': 'Switch to satellite view',
'map.baseLayer.switchToDefault': 'Switch to map view',
'map.location.denied':
'Location access is blocked. Check your device settings; an installed app has its own location permission, separate from the browser.',
'map.location.unavailable': 'Your location could not be determined.',
'map.location.timeout': 'Locating you took too long. Try again with a clearer view of the sky.',
'map.overview.show': 'Show whole trip',
'map.lock.lock': 'Lock the map view',
'map.lock.unlock': 'Let the map follow the selection',
'map.overview.hide': 'Hide whole trip',
'map.overview.total': 'Total distance',
'map.attribution': 'Map credits',
'map.overview.unrouted': '{count} legs could not be routed, so the distances are incomplete.',
'map.overview.unrouted.one': '{count} leg could not be routed, so the distances are incomplete.',
'map.overview.dayUnrouted': '{count} legs of this day could not be routed',
'map.overview.dayUnrouted.one': '{count} leg of this day could not be routed',
'map.baseLayer.topo': 'Topo',
'map.webgl2.fallback':
'This browser does not offer WebGL2, which GL maps need, so maps are shown with Leaflet instead.',
'map.webgl2.terrain': '3D needs WebGL2, which this browser does not offer. The map stays in 2D.',
};
export default map;