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.
55 lines
4.0 KiB
TypeScript
55 lines
4.0 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const map: TranslationStrings = {
|
|
'map.connections': 'الاتصالات',
|
|
'map.showConnections': 'عرض مسارات الحجوزات',
|
|
'map.hideConnections': 'إخفاء مسارات الحجوزات',
|
|
'poi.searchThisArea': 'البحث في هذه المنطقة',
|
|
'poi.cat.restaurants': 'مطاعم',
|
|
'poi.cat.cafes': 'مقاهٍ',
|
|
'poi.cat.bars': 'حانات وحياة ليلية',
|
|
'poi.cat.hotels': 'أماكن إقامة',
|
|
'poi.cat.sights': 'معالم',
|
|
'poi.cat.museums': 'متاحف وثقافة',
|
|
'poi.cat.nature': 'طبيعة وحدائق',
|
|
'poi.cat.activities': 'أنشطة',
|
|
'poi.pluginCategories': 'فئات من الإضافات الخارجية',
|
|
'map.showAllConnections': 'إظهار جميع مسارات الحجوزات',
|
|
'map.hideAllConnections': 'إخفاء جميع مسارات الحجوزات',
|
|
'map.baseLayer.default': 'خريطة',
|
|
'map.baseLayer.satellite': 'قمر صناعي',
|
|
'map.baseLayer.hiking': 'المشي',
|
|
'map.baseLayer.hikingDown': 'لا يستجيب OpenHikingMap حاليًا. انتقل إلى خريطة أخرى، وتبقى جولتك كما هي.',
|
|
'map.baseLayer.cycle': 'دراجات',
|
|
'map.baseLayer.cycleDown': 'لا يستجيب CyclOSM الآن. انتقل إلى خريطة أخرى؛ تبقى جولتك كما هي.',
|
|
'map.baseLayer.switchToSatellite': 'التبديل إلى عرض القمر الصناعي',
|
|
'map.baseLayer.switchToDefault': 'التبديل إلى عرض الخريطة',
|
|
'map.location.denied':
|
|
'تم حظر الوصول إلى الموقع. تحقق من إعدادات الجهاز؛ فالتطبيق المثبت لديه إذن موقع خاص به منفصل عن المتصفح.',
|
|
'map.location.unavailable': 'تعذر تحديد موقعك.',
|
|
'map.location.timeout': 'استغرق تحديد موقعك وقتًا طويلًا. حاول مرة أخرى تحت سماء مكشوفة.',
|
|
'map.overview.show': 'عرض الرحلة كاملة',
|
|
'map.lock.lock': 'قفل عرض الخريطة',
|
|
'map.lock.unlock': 'دع الخريطة تتبع التحديد',
|
|
'map.overview.hide': 'إخفاء الرحلة كاملة',
|
|
'map.overview.total': 'المسافة الإجمالية',
|
|
'map.attribution': 'مصادر الخريطة',
|
|
'map.overview.unrouted': 'تعذّر حساب {count} مرحلة، لذا المسافات غير مكتملة.',
|
|
'map.overview.unrouted.zero': 'لا توجد مراحل تعذّر حسابها.',
|
|
'map.overview.unrouted.one': 'تعذّر حساب مرحلة واحدة، لذا المسافات غير مكتملة.',
|
|
'map.overview.unrouted.two': 'تعذّر حساب مرحلتين، لذا المسافات غير مكتملة.',
|
|
'map.overview.unrouted.few': 'تعذّر حساب {count} مراحل، لذا المسافات غير مكتملة.',
|
|
'map.overview.unrouted.many': 'تعذّر حساب {count} مرحلة، لذا المسافات غير مكتملة.',
|
|
'map.overview.dayUnrouted': 'تعذّر حساب {count} مرحلة من هذا اليوم',
|
|
'map.overview.dayUnrouted.zero': 'لا توجد مراحل تعذّر حسابها في هذا اليوم',
|
|
'map.overview.dayUnrouted.one': 'تعذّر حساب مرحلة واحدة من هذا اليوم',
|
|
'map.overview.dayUnrouted.two': 'تعذّر حساب مرحلتين من هذا اليوم',
|
|
'map.overview.dayUnrouted.few': 'تعذّر حساب {count} مراحل من هذا اليوم',
|
|
'map.overview.dayUnrouted.many': 'تعذّر حساب {count} مرحلة من هذا اليوم',
|
|
'map.baseLayer.topo': 'طبوغرافية',
|
|
'map.webgl2.fallback':
|
|
'لا يوفّر هذا المتصفح WebGL2 الذي تحتاجه خرائط GL، لذا تُعرض الخرائط باستخدام Leaflet بدلًا منها.',
|
|
'map.webgl2.terrain': 'يحتاج العرض ثلاثي الأبعاد إلى WebGL2، وهذا المتصفح لا يوفّره. تبقى الخريطة ثنائية الأبعاد.',
|
|
};
|
|
export default map;
|