mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-14 00:01:03 +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.
54 lines
2.8 KiB
TypeScript
54 lines
2.8 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
||
|
||
const map: TranslationStrings = {
|
||
'map.connections': 'Bağlantılar',
|
||
'map.showConnections': 'Rezervasiya marşrutlarını göstər',
|
||
'map.hideConnections': 'Rezervasiya marşrutlarını gizlət',
|
||
|
||
'poi.searchThisArea': 'Bu ərazidə axtar',
|
||
'poi.cat.restaurants': 'Restoranlar',
|
||
'poi.cat.cafes': 'Kafelər',
|
||
'poi.cat.bars': 'Barlar və gecə həyatı',
|
||
'poi.cat.hotels': 'Yaşayış yerləri',
|
||
'poi.cat.sights': 'Görməli yerlər',
|
||
'poi.cat.museums': 'Muzeylər və mədəniyyət',
|
||
'poi.cat.nature': 'Təbiət və parklar',
|
||
'poi.cat.activities': 'Fəaliyyətlər',
|
||
'poi.pluginCategories': 'Plaginlərdən gələn kateqoriyalar',
|
||
|
||
'map.showAllConnections': 'Bütün rezervasiya marşrutlarını göstər',
|
||
'map.hideAllConnections': 'Bütün rezervasiya marşrutlarını gizlət',
|
||
|
||
'map.baseLayer.default': 'Xəritə',
|
||
'map.baseLayer.satellite': 'Peyk',
|
||
'map.baseLayer.hiking': 'Gəzinti',
|
||
'map.baseLayer.hikingDown': 'OpenHikingMap hazırda cavab vermir. Başqa xəritəyə keçin; turunuz olduğu kimi qalır.',
|
||
'map.baseLayer.cycle': 'Velosiped',
|
||
'map.baseLayer.cycleDown': 'CyclOSM hazırda cavab vermir. Başqa xəritəyə keç; turun olduğu kimi qalır.',
|
||
'map.baseLayer.switchToSatellite': 'Peyk görünüşünə keç',
|
||
'map.baseLayer.switchToDefault': 'Xəritə görünüşünə keç',
|
||
|
||
'map.location.denied':
|
||
'Məkan məlumatlarına giriş bloklanıb. Cihazınızın tənzimləmələrini yoxlayın; quraşdırılmış tətbiqin brauzerdən ayrı məkan icazəsi var.',
|
||
'map.location.unavailable': 'Mövcud yerinizi müəyyən etmək mümkün olmadı.',
|
||
'map.location.timeout':
|
||
'Məkanınızı müəyyən etmək çox vaxt apardı. Səmanın daha açıq göründüyü yerdə yenidən cəhd edin.',
|
||
|
||
'map.overview.show': 'Bütün səyahəti göstər',
|
||
'map.lock.lock': 'Xəritə görünüşünü kilidlə',
|
||
'map.lock.unlock': 'Xəritə seçimi izləsin',
|
||
'map.overview.hide': 'Bütün səyahəti gizlət',
|
||
'map.overview.total': 'Ümumi məsafə',
|
||
'map.attribution': 'Xəritə mənbələri',
|
||
'map.overview.unrouted': '{count} marşrut hissəsini hesablamaq mümkün olmadığından məsafələr tam deyil.',
|
||
'map.overview.unrouted.one': '{count} marşrut hissəsini hesablamaq mümkün olmadığından məsafələr tam deyil.',
|
||
'map.overview.dayUnrouted': 'Bu günün {count} marşrut hissəsini hesablamaq mümkün olmadı',
|
||
'map.overview.dayUnrouted.one': 'Bu günün {count} marşrut hissəsini hesablamaq mümkün olmadı',
|
||
'map.baseLayer.topo': 'Topoqrafik',
|
||
'map.webgl2.fallback':
|
||
'Bu brauzer GL xəritələrinin ehtiyac duyduğu WebGL2-ni təqdim etmir, ona görə xəritələr Leaflet ilə göstərilir.',
|
||
'map.webgl2.terrain': '3D üçün WebGL2 lazımdır, bu brauzer isə onu təqdim etmir. Xəritə 2D olaraq qalır.',
|
||
};
|
||
|
||
export default map;
|