Files
TREK/shared/src/i18n/sv/map.ts
T
Maurice 3238fbc517 fix(pdf): route every leg of the trip map and mark what is left unrouted
The PDF export routed the whole trip under an 8 s deadline while the router
is asked one leg at a time, a second apart. A cold month-long trip got about
seven legs routed per export; the rest printed as straight lines at "0 m"
under a total that looked final, and every further export routed a few more
days from the device cache.

The export now waits for every leg, bounded by the request pacing, the
rate-limit retries and a per-leg timeout. The export dialog and the phone
sheet count the legs while they route and offer to print without the rest.
Any leg left without a road is marked in the document: the day reads "not
routed" or "at least ...", the total says it is a floor, and a note names
how many legs are missing. The planner overview shares the same wording.

The PDF also routes what the planner map routes now: the road trip's vias,
the multi-day tour stages and the reader's distance unit.

Closes #2876
2026-10-29 14:48:13 +01:00

49 lines
2.6 KiB
TypeScript

import type { TranslationStrings } from '../types';
const map: TranslationStrings = {
'map.connections': 'Anslutningar',
'map.showConnections': 'Visa bokningsvägar',
'map.hideConnections': 'Dölj bokningsvägar',
'poi.searchThisArea': 'Sök i detta område',
'poi.cat.restaurants': 'Restauranger',
'poi.cat.cafes': 'Kaféer',
'poi.cat.bars': 'Barer och nattliv',
'poi.cat.hotels': 'Boende',
'poi.cat.sights': 'Sevärdheter',
'poi.cat.museums': 'Museer och kultur',
'poi.cat.nature': 'Natur och parker',
'poi.cat.activities': 'Aktiviteter',
'poi.pluginCategories': 'Kategorier från tillägg',
'map.showAllConnections': 'Visa alla bokningsvägar',
'map.hideAllConnections': 'Dölj alla bokningsvägar',
'map.baseLayer.default': 'Karta',
'map.baseLayer.satellite': 'Satellit',
'map.baseLayer.hiking': 'Vandring',
'map.baseLayer.hikingDown': 'OpenHikingMap svarar inte just nu. Byt till en annan karta; din tur förblir som den är.',
'map.baseLayer.cycle': 'Cykel',
'map.baseLayer.cycleDown': 'CyclOSM svarar inte just nu. Byt till en annan karta; din tur förblir som den är.',
'map.baseLayer.switchToSatellite': 'Byt till satellitvy',
'map.baseLayer.switchToDefault': 'Byt till kartvy',
'map.location.denied':
'Platsåtkomst är blockerad. Kontrollera enhetens inställningar; en installerad app har ett eget platstillstånd, skilt från webbläsaren.',
'map.location.unavailable': 'Din plats kunde inte fastställas.',
'map.location.timeout': 'Platsbestämningen tog för lång tid. Försök igen med friare sikt mot himlen.',
'map.overview.show': 'Visa hela resan',
'map.lock.lock': 'Lås kartvyn',
'map.lock.unlock': 'Låt kartan följa markeringen',
'map.overview.hide': 'Dölj hela resan',
'map.overview.total': 'Total sträcka',
'map.attribution': 'Kartkällor',
'map.overview.distanceAtLeast': 'minst {distance}',
'map.overview.notRouted': 'ej beräknad',
'map.overview.unrouted': '{count} delsträckor kunde inte beräknas, så avstånden är ofullständiga.',
'map.overview.unrouted.one': '{count} delsträcka kunde inte beräknas, så avstånden är ofullständiga.',
'map.overview.dayUnrouted': '{count} delsträckor för den här dagen kunde inte beräknas',
'map.overview.dayUnrouted.one': '{count} delsträcka för den här dagen kunde inte beräknas',
'map.baseLayer.topo': 'Topografisk',
'map.webgl2.fallback':
'Den här webbläsaren erbjuder inte WebGL2, som GL-kartor behöver, så kartorna visas med Leaflet i stället.',
'map.webgl2.terrain': '3D kräver WebGL2, som den här webbläsaren inte erbjuder. Kartan stannar i 2D.',
};
export default map;