mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 02:14:05 +00:00
feat(tours): places along the tour, and a found place as a stop (PLN-02, PLN-03)
The editor gains a card under the waypoints: along the tour. It offers what the tour type stops for as chips (a hike viewpoints, huts and shelters, drinking water, food, summits, toilets, picnic spots, campsites, sights; a paddle tour put-ins, boat rental and the like, the first three ticked) and how far from the route to look, 250 m to 2 km. Only its button searches. Each place found shows how far it lies from the route, straight across, and where along the route; its pin is on the map in its category's colour, and a click there opens it in the card. Opened, a place says its kind and source, its address, opening hours as the source has them with a note to check them, and its website. The answer says when it is out of date (the route or the choices changed since), offline, failed, partly searched, cut short at the first part of a long tour, or more than shown. Nothing about the tour changes by searching. An opened place can go in as a stop: after the point chosen, the one before it along the route suggested, by the button alone, as one step undo takes back. It becomes a stop of the tour on the place's spot, not a place of the trip. A leg drawn by hand or a fixed line (a via ferrata, a portage) is not cut: the point after which it would go says why and offers no button. Once the new route is in, the card says what the stop added, as the difference of the route planned before and after; while it is planned it says so, and where either route could not be planned it says that rather than guess. The search merges a place OpenStreetMap maps twice, as a point and as its outline, by its name and spot. The library repository takes its offline error from a shared online-only module, which the search uses too.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"react-hooks/set-state-in-effect": 197,
|
||||
"@typescript-eslint/no-floating-promises": 167,
|
||||
"react-hooks/exhaustive-deps": 121,
|
||||
"@typescript-eslint/no-unused-vars": 130,
|
||||
"@typescript-eslint/no-unused-vars": 129,
|
||||
"react-hooks/immutability": 28,
|
||||
"max-lines-per-function": 133,
|
||||
"react-hooks/static-components": 78,
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
import type { TourPoiSearchRequest, TourPoiSearchResponse } from '@trek/shared';
|
||||
import apiClient from './client';
|
||||
|
||||
/**
|
||||
* PLN-02: places along a tour. A search runs several stretches against the map
|
||||
* search on the server, each allowed its own timeout there, so it may take
|
||||
* longer than the shared default.
|
||||
*/
|
||||
const POI_SEARCH_TIMEOUT_MS = 60_000;
|
||||
|
||||
export const tourPoiSearchApi = {
|
||||
search: (tripId: number | string, body: TourPoiSearchRequest, signal?: AbortSignal): Promise<TourPoiSearchResponse> =>
|
||||
apiClient
|
||||
.post(`/trips/${tripId}/tours/poi-search`, body, { signal, timeout: POI_SEARCH_TIMEOUT_MS })
|
||||
.then((r) => r.data),
|
||||
};
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Utensils, Coffee, Wine, BedDouble, Camera, Landmark, Trees, Ticket, Fuel, Zap, ParkingSquare, Tent, type LucideIcon } from 'lucide-react'
|
||||
import { Utensils, Coffee, Wine, BedDouble, Camera, Landmark, Trees, Ticket, Fuel, Zap, ParkingSquare, Tent, Binoculars, Mountain, Warehouse, Droplet, Toilet, Sandwich, Anchor, Sailboat, type LucideIcon } from 'lucide-react'
|
||||
import type { TourPoiCategory } from '@trek/shared'
|
||||
import { parsePluginPoiCategoryKey, type PluginPoiDetail } from '@trek/shared'
|
||||
// The road-trip kinds take their colour from the one place that defines it, so the
|
||||
// search result, the map pin and the road-trip rail cannot drift apart.
|
||||
@@ -40,9 +41,34 @@ export const ROADTRIP_POI_CATEGORIES: PoiCategory[] = CORRIDOR_CATEGORIES.map(
|
||||
({ key, labelKey, Icon, color }) => ({ key, labelKey, Icon, color }),
|
||||
)
|
||||
|
||||
const CORE_COLOR = new Map(POI_CATEGORIES.map(c => [c.key, c.color] as const))
|
||||
const coreColor = (key: string) => CORE_COLOR.get(key) ?? POI_DEFAULT_COLOR
|
||||
|
||||
/**
|
||||
* What a hike or a paddle tour stops for (PLN-02), searched along a tour in the
|
||||
* planner and drawn on its map. Each takes the colour of the explore category
|
||||
* it is closest to, so the map keeps one palette.
|
||||
*/
|
||||
export const TOUR_POI_LOOKS: Record<TourPoiCategory, PoiCategory> = {
|
||||
viewpoint: { key: 'viewpoint', labelKey: 'tours.poi.cat.viewpoint', Icon: Binoculars, color: coreColor('sights') },
|
||||
peak: { key: 'peak', labelKey: 'tours.poi.cat.peak', Icon: Mountain, color: coreColor('nature') },
|
||||
shelter: { key: 'shelter', labelKey: 'tours.poi.cat.shelter', Icon: Warehouse, color: HOTEL_COLOR },
|
||||
drinking_water: { key: 'drinking_water', labelKey: 'tours.poi.cat.drinking_water', Icon: Droplet, color: coreColor('museum') },
|
||||
food: { key: 'food', labelKey: 'tours.poi.cat.food', Icon: Utensils, color: coreColor('restaurant') },
|
||||
toilets: { key: 'toilets', labelKey: 'tours.poi.cat.toilets', Icon: Toilet, color: coreColor('bar') },
|
||||
picnic: { key: 'picnic', labelKey: 'tours.poi.cat.picnic', Icon: Sandwich, color: coreColor('nature') },
|
||||
campsite: { key: 'campsite', labelKey: 'tours.poi.cat.campsite', Icon: Tent, color: coreColor('activity') },
|
||||
sights: { key: 'sights', labelKey: 'tours.poi.cat.sights', Icon: Camera, color: coreColor('sights') },
|
||||
slipway: { key: 'slipway', labelKey: 'tours.poi.cat.slipway', Icon: Anchor, color: coreColor('museum') },
|
||||
boat_rental: { key: 'boat_rental', labelKey: 'tours.poi.cat.boat_rental', Icon: Sailboat, color: coreColor('cafe') },
|
||||
}
|
||||
|
||||
// A Map rather than an object, so a category named after an Object.prototype member
|
||||
// (`constructor`, `toString`) finds nothing rather than a function.
|
||||
const CATEGORY_BY_KEY = new Map([...POI_CATEGORIES, ...ROADTRIP_POI_CATEGORIES].map(c => [c.key, c] as const))
|
||||
// (`constructor`, `toString`) finds nothing rather than a function. A Tours category
|
||||
// that shares a key with an explore one (`sights`, `campsite`) keeps the explore look.
|
||||
const CATEGORY_BY_KEY = new Map(
|
||||
[...Object.values(TOUR_POI_LOOKS), ...POI_CATEGORIES, ...ROADTRIP_POI_CATEGORIES].map(c => [c.key, c] as const),
|
||||
)
|
||||
|
||||
// One POI result from /api/maps/pois (mirror of the server's OverpassPoi).
|
||||
export interface Poi {
|
||||
|
||||
@@ -2,7 +2,8 @@ import { act, renderHook, waitFor } from '@testing-library/react';
|
||||
import type { TourCreateResponse, TourLibraryItem, TourLibraryResponse } from '@trek/shared';
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
|
||||
import { fireEvent, render, screen, within } from '../../../../tests/helpers/render';
|
||||
import { TourLibraryOfflineError, tourLibraryRepo } from '../../../repo/tourLibraryRepo';
|
||||
import { OnlineOnlyError } from '../../../repo/onlineOnly';
|
||||
import { tourLibraryRepo } from '../../../repo/tourLibraryRepo';
|
||||
import { TourLibraryButton } from './TourLibraryDialog';
|
||||
import { useTourLibrary } from './useTourLibrary';
|
||||
|
||||
@@ -101,7 +102,7 @@ describe('useTourLibrary', () => {
|
||||
});
|
||||
|
||||
it('FE-TOUR-LIBRARY-003: says when it is offline or failed, and asks again on retry', async () => {
|
||||
list.mockRejectedValueOnce(new TourLibraryOfflineError()).mockRejectedValueOnce(new Error('500'));
|
||||
list.mockRejectedValueOnce(new OnlineOnlyError()).mockRejectedValueOnce(new Error('500'));
|
||||
const { result } = renderHook(() => useTourLibrary({ tripId: 5, onTakenOver: vi.fn() }));
|
||||
act(() => result.current.show());
|
||||
await waitFor(() => expect(result.current.listStatus).toBe('offline'));
|
||||
|
||||
@@ -7,7 +7,8 @@ import type {
|
||||
} from '@trek/shared';
|
||||
import { useCallback, useEffect, useRef, useState } from 'react';
|
||||
import { useTranslation } from '../../../i18n';
|
||||
import { TourLibraryOfflineError, tourLibraryRepo } from '../../../repo/tourLibraryRepo';
|
||||
import { OnlineOnlyError } from '../../../repo/onlineOnly';
|
||||
import { tourLibraryRepo } from '../../../repo/tourLibraryRepo';
|
||||
import { useToast } from '../../shared/Toast';
|
||||
|
||||
/** How long typing rests before the list is asked again. */
|
||||
@@ -22,7 +23,7 @@ interface Answer<T> {
|
||||
data?: T;
|
||||
}
|
||||
|
||||
const failure = (err: unknown): 'error' | 'offline' => (err instanceof TourLibraryOfflineError ? 'offline' : 'error');
|
||||
const failure = (err: unknown): 'error' | 'offline' => (err instanceof OnlineOnlyError ? 'offline' : 'error');
|
||||
|
||||
interface ListFilters {
|
||||
query: string;
|
||||
|
||||
@@ -44,6 +44,7 @@ import TourListFilterMenu, { TourFilterEmpty } from '../TourListFilterMenu'
|
||||
import { TourScopeSummary } from '../TourScopeSummary'
|
||||
import { useTourListFilters } from '../useTourListFilters'
|
||||
import { TourLibraryEntry } from '../library/TourLibraryDialog'
|
||||
import { TourPoiSearchCard } from '../poi/TourPoiSearchCard'
|
||||
|
||||
const STATUS_KEY: Partial<Record<TourPlannerStatus, string>> = {
|
||||
dirty: 'tours.planner.status.dirty',
|
||||
@@ -441,6 +442,8 @@ export function TourPlannerRail({ planner,
|
||||
|
||||
<TourWaypointList planner={planner} canEdit={canEdit} isSaving={isSaving} tourPlaceIds={tourPlaceIds} />
|
||||
|
||||
<TourPoiSearchCard planner={planner} />
|
||||
|
||||
<PaddleEditorCards planner={planner} locked={locked} checklist={paddleChecklist} />
|
||||
|
||||
<TourDetailsSection planner={planner} locked={locked} onDifficultyChange={changeDifficulty} />
|
||||
|
||||
@@ -0,0 +1,373 @@
|
||||
import type { TourPoi, TourPoiCategory } from '@trek/shared';
|
||||
import { TOUR_POI_CORRIDORS_M } from '@trek/shared';
|
||||
import {
|
||||
AlertTriangle,
|
||||
Clock,
|
||||
ExternalLink,
|
||||
Loader2,
|
||||
MoveHorizontal,
|
||||
Plus,
|
||||
RefreshCw,
|
||||
Route,
|
||||
Search,
|
||||
WifiOff,
|
||||
} from 'lucide-react';
|
||||
import { useEffect, useRef } from 'react';
|
||||
import { useTranslation } from '../../../i18n';
|
||||
import { useSettingsStore } from '../../../store/settingsStore';
|
||||
import { useTourPoiStore } from '../../../store/tourPoiStore';
|
||||
import { formatDistance } from '../../../utils/units';
|
||||
import { TOUR_POI_LOOKS } from '../../Map/poiCategories';
|
||||
import { WhiteBadge } from '../../Planner/planParts';
|
||||
import { PillSelect, Segmented } from '../../shared/dialogParts';
|
||||
import { fs } from '../../shared/DialogShell';
|
||||
import type { TourPlannerController } from '../planner/useTourPlanner';
|
||||
import { useWaypointPlaceNames } from '../planner/useWaypointPlaceNames';
|
||||
import { RailCard, TourNotice } from '../tourParts';
|
||||
import { formatPlannedTourDuration } from '../tourPresentation';
|
||||
import { usePoiInsertion, type InsertionOutcome } from './usePoiInsertion';
|
||||
import { useSelectedPoi, useTourPoiSearch, type TourPoiSearch } from './useTourPoiSearch';
|
||||
|
||||
type Unit = Parameters<typeof formatDistance>[1];
|
||||
|
||||
const km = (metres: number) => metres / 1000;
|
||||
|
||||
/** A category to search for, as a chip: its icon in its map colour, ticked or not. */
|
||||
function CategoryChip({ category, on, onToggle }: { category: TourPoiCategory; on: boolean; onToggle: () => void }) {
|
||||
const { t } = useTranslation();
|
||||
const look = TOUR_POI_LOOKS[category];
|
||||
return (
|
||||
<button
|
||||
type="button"
|
||||
onClick={onToggle}
|
||||
aria-pressed={on}
|
||||
data-testid={`tour-poi-category-${category}`}
|
||||
className={`inline-flex items-center gap-1.5 rounded-full px-2.5 py-1 font-medium transition-colors ${on ? 'bg-surface-card text-content shadow-sm ring-1 ring-inset ring-edge-faint' : 'bg-surface-tertiary text-content-muted hover:text-content'}`}
|
||||
style={fs(11.5, 'body')}
|
||||
>
|
||||
<look.Icon size={12} strokeWidth={2.2} style={{ color: on ? look.color : undefined }} />
|
||||
{t(look.labelKey)}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
|
||||
/** What the search answered beyond its places: out of date, offline, failed, partly searched, cut, or empty. */
|
||||
function SearchNotices({ search, unit }: { search: TourPoiSearch; unit: Unit }) {
|
||||
const { t } = useTranslation();
|
||||
const { status, answer, outdated } = search;
|
||||
if (status === 'offline')
|
||||
return <TourNotice icon={<WifiOff size={13} strokeWidth={2} />}>{t('tours.poi.offline')}</TourNotice>;
|
||||
if (status === 'error')
|
||||
return (
|
||||
<TourNotice tone="warning" icon={<AlertTriangle size={13} strokeWidth={2} />}>
|
||||
{t('tours.poi.failed')}
|
||||
</TourNotice>
|
||||
);
|
||||
if (!answer) return null;
|
||||
// Out of date is no fault, the route was just changed (often by adding a place from here): said plainly.
|
||||
const notes = [
|
||||
answer.partial && t('tours.poi.partial'),
|
||||
answer.capped && t('tours.poi.capped'),
|
||||
answer.truncated && t('tours.poi.truncated'),
|
||||
].filter((note): note is string => !!note);
|
||||
return (
|
||||
<>
|
||||
{outdated && <TourNotice icon={<RefreshCw size={13} strokeWidth={2} />}>{t('tours.poi.outdated')}</TourNotice>}
|
||||
{notes.map((note) => (
|
||||
<TourNotice key={note} tone="warning" icon={<AlertTriangle size={13} strokeWidth={2} />}>
|
||||
{note}
|
||||
</TourNotice>
|
||||
))}
|
||||
{answer.pois.length === 0 && (
|
||||
<p className="m-0 text-content-muted" style={fs(12, 'body')}>
|
||||
{t('tours.poi.empty', { distance: formatDistance(km(search.corridorM), unit) })}
|
||||
</p>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
/** The point a place would follow, picked from the tour's points, with why one cannot take it. */
|
||||
function AfterPicker({
|
||||
planner,
|
||||
poi,
|
||||
insertion,
|
||||
}: {
|
||||
planner: TourPlannerController;
|
||||
poi: TourPoi;
|
||||
insertion: ReturnType<typeof usePoiInsertion>;
|
||||
}) {
|
||||
const { t } = useTranslation();
|
||||
const names = useWaypointPlaceNames(planner.waypoints);
|
||||
const afterId = insertion.afterIdFor(poi);
|
||||
const options = planner.waypoints.map((point, index) => ({
|
||||
value: point.id,
|
||||
label: `${index + 1}. ${point.shaping ? t('tours.planner.shapingPoint') : (names[point.id] ?? `${point.lat.toFixed(4)}, ${point.lng.toFixed(4)}`)}`,
|
||||
}));
|
||||
const block = afterId ? insertion.blockOf(afterId) : 'none';
|
||||
const locked = !planner.canEdit || planner.isSaving;
|
||||
return (
|
||||
<div className="flex flex-col gap-2 rounded-[10px] bg-surface-secondary p-2.5" data-testid="tour-poi-insert">
|
||||
<div className="flex flex-wrap items-center gap-2">
|
||||
<span className="text-content-muted" style={fs(11.5, 'body')}>
|
||||
{t('tours.poi.addAfter')}
|
||||
</span>
|
||||
<PillSelect
|
||||
quiet
|
||||
label={t('tours.poi.addAfter')}
|
||||
value={afterId ?? ''}
|
||||
options={options}
|
||||
onChange={(value) => insertion.chooseAfter(poi, value)}
|
||||
/>
|
||||
</div>
|
||||
{block && (
|
||||
<p className="m-0 text-warning" style={fs(11, 'body')}>
|
||||
{t(`tours.poi.blocked.${block}`)}
|
||||
</p>
|
||||
)}
|
||||
<button
|
||||
type="button"
|
||||
disabled={!!block || locked}
|
||||
onClick={() => insertion.insert(poi)}
|
||||
data-testid="tour-poi-add"
|
||||
className="inline-flex h-8 items-center justify-center gap-1.5 rounded-[10px] bg-accent px-3 font-semibold text-accent-text shadow-sm transition-opacity hover:opacity-90 disabled:cursor-default disabled:opacity-40"
|
||||
style={fs(12, 'body')}
|
||||
>
|
||||
<Plus size={14} strokeWidth={2.2} />
|
||||
{t('tours.poi.add')}
|
||||
</button>
|
||||
<p className="m-0 text-content-faint" style={fs(10.5, 'body')}>
|
||||
{t('tours.poi.notAPlace')}
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
/** One place found: its kind, name and where it lies; opened, what the source says and the way to take it in. */
|
||||
function PoiRow({
|
||||
poi,
|
||||
selected,
|
||||
planner,
|
||||
insertion,
|
||||
unit,
|
||||
}: {
|
||||
poi: TourPoi;
|
||||
selected: boolean;
|
||||
planner: TourPlannerController;
|
||||
insertion: ReturnType<typeof usePoiInsertion>;
|
||||
unit: Unit;
|
||||
}) {
|
||||
const { t } = useTranslation();
|
||||
const select = useTourPoiStore((state) => state.select);
|
||||
const look = TOUR_POI_LOOKS[poi.category];
|
||||
const rowRef = useRef<HTMLLIElement>(null);
|
||||
useEffect(() => {
|
||||
if (selected) rowRef.current?.scrollIntoView?.({ block: 'nearest' });
|
||||
}, [selected]);
|
||||
return (
|
||||
<li
|
||||
ref={rowRef}
|
||||
className={`rounded-[10px] ${selected ? 'bg-surface-selected' : ''}`}
|
||||
data-testid={`tour-poi-${poi.id}`}
|
||||
>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => select(selected ? null : poi.id)}
|
||||
aria-expanded={selected}
|
||||
className="flex w-full min-w-0 items-start gap-2.5 rounded-[10px] px-2 py-2 text-start transition-colors hover:bg-surface-hover"
|
||||
>
|
||||
{/* The category's own map colour, as its pin on the map has it: a light wash, the icon in full. */}
|
||||
<span
|
||||
className="grid h-7 w-7 flex-none place-items-center rounded-full"
|
||||
style={{ background: `color-mix(in srgb, ${look.color} 16%, transparent)`, color: look.color }}
|
||||
>
|
||||
<look.Icon size={14} strokeWidth={2.2} />
|
||||
</span>
|
||||
<span className="flex min-w-0 flex-1 flex-col gap-1">
|
||||
<span className="min-w-0 truncate font-semibold text-content" style={fs(12.5, 'body')}>
|
||||
{poi.name || t(look.labelKey)}
|
||||
</span>
|
||||
<span className="flex flex-wrap gap-1.5">
|
||||
<WhiteBadge icon={<MoveHorizontal size={10} strokeWidth={2.2} className="text-content-faint" />}>
|
||||
{t('tours.poi.fromRoute', { distance: formatDistance(km(poi.distance_m), unit) })}
|
||||
</WhiteBadge>
|
||||
<WhiteBadge icon={<Route size={10} strokeWidth={2.2} className="text-content-faint" />}>
|
||||
{t('tours.poi.along', { distance: formatDistance(km(poi.along_m), unit) })}
|
||||
</WhiteBadge>
|
||||
</span>
|
||||
</span>
|
||||
</button>
|
||||
{selected && (
|
||||
<div className="flex flex-col gap-2 px-2 pb-2.5">
|
||||
<p className="m-0 flex flex-wrap gap-x-3 text-content-faint" style={fs(10.5, 'body')}>
|
||||
<span>{t(look.labelKey)}</span>
|
||||
<span>{t(poi.source === 'trek-places' ? 'tours.poi.source.trek' : 'tours.poi.source.osm')}</span>
|
||||
</p>
|
||||
{poi.address && (
|
||||
<p className="m-0 text-content-secondary" style={fs(11.5, 'body')}>
|
||||
{poi.address}
|
||||
</p>
|
||||
)}
|
||||
{poi.opening_hours && (
|
||||
<p className="m-0 flex items-start gap-1.5 text-content-secondary" style={fs(11.5, 'body')}>
|
||||
<Clock size={12} strokeWidth={2.2} className="mt-0.5 flex-none text-content-faint" />
|
||||
<span>
|
||||
{poi.opening_hours}
|
||||
<span className="block text-content-faint" style={fs(10.5, 'body')}>
|
||||
{t('tours.poi.hoursHint')}
|
||||
</span>
|
||||
</span>
|
||||
</p>
|
||||
)}
|
||||
{poi.website && (
|
||||
<a
|
||||
href={poi.website}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className="inline-flex items-center gap-1 self-start text-content-secondary underline-offset-2 hover:underline"
|
||||
style={fs(11.5, 'body')}
|
||||
>
|
||||
<ExternalLink size={12} strokeWidth={2.2} />
|
||||
{t('tours.poi.website')}
|
||||
</a>
|
||||
)}
|
||||
<AfterPicker planner={planner} poi={poi} insertion={insertion} />
|
||||
</div>
|
||||
)}
|
||||
</li>
|
||||
);
|
||||
}
|
||||
|
||||
/** What taking a place in did: being planned, the route's change, or that it could not be told. */
|
||||
function OutcomeNotice({ outcome, onDismiss, unit }: { outcome: InsertionOutcome; onDismiss: () => void; unit: Unit }) {
|
||||
const { t } = useTranslation();
|
||||
const signed = (value: string, negative: boolean) => `${negative ? '−' : '+'}${value}`;
|
||||
return (
|
||||
<div role="status" data-testid="tour-poi-outcome">
|
||||
<TourNotice
|
||||
icon={
|
||||
outcome.kind === 'measuring' ? (
|
||||
<Loader2 size={13} className="animate-spin" />
|
||||
) : (
|
||||
<Route size={13} strokeWidth={2} />
|
||||
)
|
||||
}
|
||||
>
|
||||
<span className="flex flex-col gap-1.5">
|
||||
<span>{t(`tours.poi.outcome.${outcome.kind}`, { name: outcome.name })}</span>
|
||||
{outcome.kind === 'measured' && (
|
||||
<span className="flex flex-wrap gap-1.5">
|
||||
<WhiteBadge>{signed(formatDistance(km(Math.abs(outcome.extraM)), unit), outcome.extraM < 0)}</WhiteBadge>
|
||||
{outcome.extraMinutes != null && (
|
||||
<WhiteBadge>
|
||||
{signed(formatPlannedTourDuration(Math.abs(outcome.extraMinutes)), outcome.extraMinutes < 0)}
|
||||
</WhiteBadge>
|
||||
)}
|
||||
</span>
|
||||
)}
|
||||
<span className="flex flex-wrap items-center gap-2 text-content-faint" style={fs(10.5, 'body')}>
|
||||
{t('tours.poi.undoHint')}
|
||||
<button type="button" onClick={onDismiss} className="font-semibold underline underline-offset-2">
|
||||
{t('common.close')}
|
||||
</button>
|
||||
</span>
|
||||
</span>
|
||||
</TourNotice>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* PLN-02/PLN-03: the card of the editor that looks for places along the tour
|
||||
* and takes one in as a stop. Searching changes nothing; only the add button
|
||||
* of a place does, as one step that undo takes back.
|
||||
*/
|
||||
export function TourPoiSearchCard({ planner }: { planner: TourPlannerController }) {
|
||||
const { t } = useTranslation();
|
||||
const unit = useSettingsStore((state) => state.settings.distance_unit) ?? 'metric';
|
||||
const search = useTourPoiSearch(planner);
|
||||
const insertion = usePoiInsertion(planner);
|
||||
const selected = useSelectedPoi();
|
||||
const pois = search.answer?.pois ?? [];
|
||||
if (!planner.route || planner.route.length < 2) return null;
|
||||
return (
|
||||
<RailCard
|
||||
icon={<Search size={14} strokeWidth={2} />}
|
||||
title={t('tours.poi.title')}
|
||||
foldId="along-tour"
|
||||
aside={
|
||||
search.answer ? (
|
||||
<span className="flex-none tabular-nums text-content-faint" style={fs(11.5, 'body')}>
|
||||
{pois.length}
|
||||
</span>
|
||||
) : undefined
|
||||
}
|
||||
>
|
||||
<div className="flex flex-col gap-3" data-testid="tour-poi-card">
|
||||
<p className="m-0 text-content-faint" style={fs(11, 'body')}>
|
||||
{t('tours.poi.intro')}
|
||||
</p>
|
||||
<div className="flex flex-wrap gap-1.5" role="group" aria-label={t('tours.poi.categories')}>
|
||||
{search.offered.map((category) => (
|
||||
<CategoryChip
|
||||
key={category}
|
||||
category={category}
|
||||
on={search.categories.includes(category)}
|
||||
onToggle={() => search.toggleCategory(category)}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
<div className="flex flex-col gap-1.5">
|
||||
<span className="text-content-muted" style={fs(11, 'body')}>
|
||||
{t('tours.poi.within')}
|
||||
</span>
|
||||
<Segmented<string>
|
||||
fill
|
||||
label={t('tours.poi.within')}
|
||||
value={String(search.corridorM)}
|
||||
onChange={(value) => search.setCorridorM(Number(value))}
|
||||
options={TOUR_POI_CORRIDORS_M.map((metres) => ({
|
||||
value: String(metres),
|
||||
label: formatDistance(km(metres), unit),
|
||||
}))}
|
||||
/>
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => void search.search()}
|
||||
disabled={!search.canSearch}
|
||||
data-testid="tour-poi-search"
|
||||
className="inline-flex h-9 items-center justify-center gap-1.5 rounded-[10px] bg-surface-tertiary font-semibold text-content transition-colors hover:bg-surface-hover disabled:cursor-default disabled:opacity-50"
|
||||
style={fs(12.5, 'body')}
|
||||
>
|
||||
{search.status === 'loading' ? (
|
||||
<Loader2 size={14} strokeWidth={2.2} className="animate-spin" />
|
||||
) : search.answer ? (
|
||||
<RefreshCw size={14} strokeWidth={2.2} />
|
||||
) : (
|
||||
<Search size={14} strokeWidth={2.2} />
|
||||
)}
|
||||
{t(
|
||||
search.status === 'loading' ? 'tours.poi.searching' : search.answer ? 'tours.poi.again' : 'tours.poi.search'
|
||||
)}
|
||||
</button>
|
||||
{insertion.outcome && <OutcomeNotice outcome={insertion.outcome} onDismiss={insertion.dismiss} unit={unit} />}
|
||||
<SearchNotices search={search} unit={unit} />
|
||||
{pois.length > 0 && (
|
||||
<ul className={`m-0 flex list-none flex-col gap-0.5 p-0 ${search.status === 'loading' ? 'opacity-60' : ''}`}>
|
||||
{pois.map((poi) => (
|
||||
<PoiRow
|
||||
key={poi.id}
|
||||
poi={poi}
|
||||
selected={selected?.id === poi.id}
|
||||
planner={planner}
|
||||
insertion={insertion}
|
||||
unit={unit}
|
||||
/>
|
||||
))}
|
||||
</ul>
|
||||
)}
|
||||
</div>
|
||||
</RailCard>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import type { TourPlannerWaypoint } from '../planner/tourPlannerWaypoints';
|
||||
import { defaultAfterId, insertionBlock, withPointAfter } from './poiInsertion';
|
||||
|
||||
// FE-TOUR-POI-INSERT-001 to FE-TOUR-POI-INSERT-005
|
||||
|
||||
const point = (id: string, lat: number, lng: number, over: Partial<TourPlannerWaypoint> = {}): TourPlannerWaypoint => ({
|
||||
id,
|
||||
lat,
|
||||
lng,
|
||||
role: 'via',
|
||||
...over,
|
||||
});
|
||||
|
||||
const A = point('a', 47.0, 11.0, { role: 'start' });
|
||||
const B = point('b', 47.01, 11.0);
|
||||
const C = point('c', 47.02, 11.0, { role: 'end' });
|
||||
const NEW = point('new', 47.005, 11.001);
|
||||
|
||||
describe('placing a found place in the tour (PLN-03)', () => {
|
||||
it('FE-TOUR-POI-INSERT-001: goes in right after the point chosen, as a stop the router plans to', () => {
|
||||
expect(withPointAfter([A, B, C], 'a', NEW)?.map((p) => p.id)).toEqual(['a', 'new', 'b', 'c']);
|
||||
expect(withPointAfter([A, B, C], 'a', NEW)?.[1]).toMatchObject({ role: 'via' });
|
||||
// After the last point the tour goes on to it.
|
||||
expect(withPointAfter([A, B, C], 'c', NEW)?.map((p) => p.id)).toEqual(['a', 'b', 'c', 'new']);
|
||||
});
|
||||
|
||||
it('FE-TOUR-POI-INSERT-002: never cuts a fixed line or a stretch drawn by hand', () => {
|
||||
const ferrata = point('b', 47.01, 11.0, {
|
||||
fixedLeg: {
|
||||
kind: 'ferrata',
|
||||
ref: 'way/1',
|
||||
name: null,
|
||||
geometry: [
|
||||
[47.01, 11.0],
|
||||
[47.02, 11.0],
|
||||
],
|
||||
},
|
||||
});
|
||||
const free = point('b', 47.01, 11.0, {
|
||||
fixedLeg: {
|
||||
kind: 'free',
|
||||
geometry: [
|
||||
[47.01, 11.0],
|
||||
[47.02, 11.0],
|
||||
],
|
||||
},
|
||||
});
|
||||
expect(insertionBlock([A, ferrata, C], 'b')).toBe('fixed');
|
||||
expect(insertionBlock([A, free, C], 'b')).toBe('free');
|
||||
expect(withPointAfter([A, free, C], 'b', NEW)).toBeNull();
|
||||
expect(insertionBlock([A, free, C], 'a')).toBeNull();
|
||||
});
|
||||
|
||||
it('FE-TOUR-POI-INSERT-003: nothing goes after the way back of a loop, or after a point that is gone', () => {
|
||||
const back = point('back', 47.0, 11.0, { role: 'end' });
|
||||
expect(insertionBlock([A, B, back], 'back')).toBe('none');
|
||||
expect(insertionBlock([A, B, C], 'gone')).toBe('none');
|
||||
expect(withPointAfter([A, B, back], 'back', NEW)).toBeNull();
|
||||
});
|
||||
|
||||
it('FE-TOUR-POI-INSERT-004: suggests the last point before the place along the route', () => {
|
||||
const route: Array<[number, number]> = [
|
||||
[47.0, 11.0],
|
||||
[47.01, 11.0],
|
||||
[47.02, 11.0],
|
||||
];
|
||||
// About 1.6 km along: after B (1.1 km), before C (2.2 km).
|
||||
expect(defaultAfterId([A, B, C], route, 1600)).toBe('b');
|
||||
expect(defaultAfterId([A, B, C], route, 100)).toBe('a');
|
||||
// Without a route the points themselves stand in for the line.
|
||||
expect(defaultAfterId([A, B, C], null, 1600)).toBe('b');
|
||||
});
|
||||
|
||||
it('FE-TOUR-POI-INSERT-005: skips a point that cannot take a stop, and has nothing to suggest without one', () => {
|
||||
const free = point('b', 47.01, 11.0, {
|
||||
fixedLeg: {
|
||||
kind: 'free',
|
||||
geometry: [
|
||||
[47.01, 11.0],
|
||||
[47.02, 11.0],
|
||||
],
|
||||
},
|
||||
});
|
||||
expect(defaultAfterId([A, free, C], null, 1600)).toBe('a');
|
||||
expect(defaultAfterId([], null, 0)).toBeNull();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,58 @@
|
||||
import { nearnessToLine } from '@trek/shared';
|
||||
import { isClosedLoop, withPointAppended, type RoutePoint } from '../planner/tourRouteActions';
|
||||
|
||||
type Point = RoutePoint & { role: string; shaping?: boolean };
|
||||
|
||||
/**
|
||||
* Why a place cannot go in after a point (PLN-03): the leg after it is a
|
||||
* fixed line (a via ferrata, a portage) or drawn by hand, which a new point in
|
||||
* between would cut or redraw without being asked; or there is no leg after it
|
||||
* to go into (the way back of a loop, a point that is gone).
|
||||
*/
|
||||
export type InsertionBlock = 'fixed' | 'free' | 'none';
|
||||
|
||||
/** What would stop a place going in after `afterId`, or null when it can. */
|
||||
export function insertionBlock(points: readonly Point[], afterId: string): InsertionBlock | null {
|
||||
const index = points.findIndex((point) => point.id === afterId);
|
||||
if (index < 0) return 'none';
|
||||
const last = index === points.length - 1;
|
||||
// After the last point the tour goes on to the place; after the way back of a loop there is nothing.
|
||||
if (last) return isClosedLoop(points) ? 'none' : null;
|
||||
const leg = points[index]?.fixedLeg;
|
||||
if (leg?.kind === 'free') return 'free';
|
||||
if (leg) return 'fixed';
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* The points with a new stop right after `afterId`: in a leg the router plans,
|
||||
* between that point and the next, or as the new end after the last. Null
|
||||
* where {@link insertionBlock} says it cannot go; nothing else is changed.
|
||||
*/
|
||||
export function withPointAfter<T extends Point>(points: readonly T[], afterId: string, point: T): T[] | null {
|
||||
if (insertionBlock(points, afterId) !== null) return null;
|
||||
const index = points.findIndex((candidate) => candidate.id === afterId);
|
||||
if (index === points.length - 1) return withPointAppended(points, point);
|
||||
return [...points.slice(0, index + 1), { ...point, role: 'via' }, ...points.slice(index + 1)];
|
||||
}
|
||||
|
||||
/**
|
||||
* The point a place found at `alongM` metres along the route most likely
|
||||
* follows: the last point before it along the line, where a stop can go in.
|
||||
* The first point that can take one when none lies before it.
|
||||
*/
|
||||
export function defaultAfterId(
|
||||
points: readonly Point[],
|
||||
route: Array<[number, number]> | null,
|
||||
alongM: number
|
||||
): string | null {
|
||||
const open = points.filter((point) => insertionBlock(points, point.id) === null);
|
||||
if (!open.length) return null;
|
||||
const line = route && route.length > 1 ? route : points.map((point): [number, number] => [point.lat, point.lng]);
|
||||
let chosen = open[0]?.id ?? null;
|
||||
for (const point of open) {
|
||||
const along = nearnessToLine(point, line)?.alongM ?? 0;
|
||||
if (along <= alongM) chosen = point.id;
|
||||
}
|
||||
return chosen;
|
||||
}
|
||||
@@ -0,0 +1,206 @@
|
||||
import { act, renderHook, waitFor } from '@testing-library/react';
|
||||
import type { TourPoi, TourPoiSearchResponse } from '@trek/shared';
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
|
||||
import { fireEvent, render, screen, within } from '../../../../tests/helpers/render';
|
||||
import { OnlineOnlyError } from '../../../repo/onlineOnly';
|
||||
import { tourPoiSearchRepo } from '../../../repo/tourPoiSearchRepo';
|
||||
import { useTourPoiStore } from '../../../store/tourPoiStore';
|
||||
import type { TourPlannerWaypoint } from '../planner/tourPlannerWaypoints';
|
||||
import type { TourPlannerController } from '../planner/useTourPlanner';
|
||||
import { TourPoiSearchCard } from './TourPoiSearchCard';
|
||||
import { usePoiInsertion, type PoiInsertionPlanner } from './usePoiInsertion';
|
||||
import { useTourPoiSearch } from './useTourPoiSearch';
|
||||
|
||||
// FE-TOUR-POI-001 to FE-TOUR-POI-008
|
||||
|
||||
vi.mock('../planner/useWaypointPlaceNames', () => ({ useWaypointPlaceNames: () => ({}) }));
|
||||
|
||||
const ROUTE: Array<[number, number]> = [
|
||||
[47.0, 11.0],
|
||||
[47.01, 11.0],
|
||||
[47.02, 11.0],
|
||||
];
|
||||
const PA: TourPlannerWaypoint = { id: 'a', lat: 47.0, lng: 11.0, role: 'start' };
|
||||
const PB: TourPlannerWaypoint = { id: 'b', lat: 47.01, lng: 11.0, role: 'via' };
|
||||
const PC: TourPlannerWaypoint = { id: 'c', lat: 47.02, lng: 11.0, role: 'end' };
|
||||
const POINTS = [PA, PB, PC];
|
||||
const SPRING: TourPoi = {
|
||||
id: 'node:1',
|
||||
name: 'Spring',
|
||||
lat: 47.015,
|
||||
lng: 11.001,
|
||||
category: 'drinking_water',
|
||||
kind: 'amenity=drinking_water',
|
||||
source: 'openstreetmap',
|
||||
address: null,
|
||||
website: 'https://example.test',
|
||||
phone: null,
|
||||
opening_hours: 'Mo-Su 08:00-18:00',
|
||||
distance_m: 80,
|
||||
along_m: 1650,
|
||||
};
|
||||
const ANSWER: TourPoiSearchResponse = { pois: [SPRING], truncated: false, partial: false, capped: false };
|
||||
|
||||
let search: ReturnType<typeof vi.spyOn>;
|
||||
beforeEach(() => {
|
||||
useTourPoiStore.getState().clear();
|
||||
search = vi.spyOn(tourPoiSearchRepo, 'search').mockResolvedValue(ANSWER);
|
||||
});
|
||||
afterEach(() => vi.restoreAllMocks());
|
||||
|
||||
const searchPlanner = (over: Partial<TourPlannerController> = {}) =>
|
||||
({
|
||||
tripId: 4,
|
||||
tourType: 'hike',
|
||||
route: ROUTE,
|
||||
mode: { type: 'edit-saved', placeId: 9 },
|
||||
...over,
|
||||
}) as TourPlannerController;
|
||||
|
||||
describe('useTourPoiSearch (PLN-02)', () => {
|
||||
it('FE-TOUR-POI-001: searches only when asked, with the type’s first three kinds and the corridor', async () => {
|
||||
const { result } = renderHook(() => useTourPoiSearch(searchPlanner()));
|
||||
expect(search).not.toHaveBeenCalled();
|
||||
expect(result.current.categories).toEqual(['viewpoint', 'shelter', 'drinking_water']);
|
||||
await act(() => result.current.search());
|
||||
expect(search).toHaveBeenCalledWith(
|
||||
4,
|
||||
expect.objectContaining({
|
||||
tour_type: 'hike',
|
||||
corridor_m: 500,
|
||||
line: ROUTE,
|
||||
categories: ['viewpoint', 'shelter', 'drinking_water'],
|
||||
}),
|
||||
expect.any(AbortSignal)
|
||||
);
|
||||
expect(result.current.status).toBe('ready');
|
||||
expect(useTourPoiStore.getState().pois).toEqual([SPRING]);
|
||||
});
|
||||
|
||||
it('FE-TOUR-POI-002: a change of the choices marks the answer outdated, and a kind can be dropped or added', async () => {
|
||||
const { result } = renderHook(() => useTourPoiSearch(searchPlanner()));
|
||||
await act(() => result.current.search());
|
||||
act(() => result.current.toggleCategory('viewpoint'));
|
||||
expect(result.current.categories).toEqual(['shelter', 'drinking_water']);
|
||||
expect(result.current.outdated).toBe(true);
|
||||
act(() => result.current.toggleCategory('food'));
|
||||
expect(result.current.categories).toContain('food');
|
||||
});
|
||||
|
||||
it('FE-TOUR-POI-003: says when it is offline or failed, and takes the places off the map then', async () => {
|
||||
search.mockRejectedValueOnce(new OnlineOnlyError()).mockRejectedValueOnce(new Error('500'));
|
||||
const { result } = renderHook(() => useTourPoiSearch(searchPlanner()));
|
||||
await act(() => result.current.search());
|
||||
expect(result.current.status).toBe('offline');
|
||||
await act(() => result.current.search());
|
||||
expect(result.current.status).toBe('error');
|
||||
expect(useTourPoiStore.getState().pois).toEqual([]);
|
||||
});
|
||||
|
||||
it('FE-TOUR-POI-004: a paddle tour starts with its own kinds', () => {
|
||||
const { result } = renderHook(() => useTourPoiSearch(searchPlanner({ tourType: 'kayak' })));
|
||||
expect(result.current.categories).toEqual(['slipway', 'boat_rental', 'drinking_water']);
|
||||
});
|
||||
});
|
||||
|
||||
/** A planner the insertion reads, its route and measures set by the test. */
|
||||
function insertionPlanner(over: Partial<PoiInsertionPlanner> = {}): PoiInsertionPlanner {
|
||||
return {
|
||||
waypoints: POINTS,
|
||||
route: ROUTE,
|
||||
editWaypoints: vi.fn(),
|
||||
setSelectedWaypointId: vi.fn(),
|
||||
routeCurrent: true,
|
||||
status: 'ready',
|
||||
distanceMeters: 2200,
|
||||
walkingDurationMinutes: 40,
|
||||
canEdit: true,
|
||||
isSaving: false,
|
||||
...over,
|
||||
};
|
||||
}
|
||||
|
||||
describe('usePoiInsertion (PLN-03)', () => {
|
||||
it('FE-TOUR-POI-005: suggests the point before the place and takes it in as one step after it', () => {
|
||||
const planner = insertionPlanner();
|
||||
const { result } = renderHook(() => usePoiInsertion(planner));
|
||||
expect(result.current.afterIdFor(SPRING)).toBe('b');
|
||||
act(() => {
|
||||
result.current.insert(SPRING);
|
||||
});
|
||||
expect(planner.editWaypoints).toHaveBeenCalledTimes(1);
|
||||
const updater = vi.mocked(planner.editWaypoints).mock.calls[0]?.[0] as (
|
||||
points: TourPlannerWaypoint[]
|
||||
) => TourPlannerWaypoint[];
|
||||
expect(updater(POINTS).map((point) => point.id)).toEqual(['a', 'b', expect.any(String), 'c']);
|
||||
expect(planner.setSelectedWaypointId).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('FE-TOUR-POI-006: reads what it added only from the route planned after, and nothing once the point is gone', () => {
|
||||
let planner = insertionPlanner();
|
||||
const { result, rerender } = renderHook(() => usePoiInsertion(planner));
|
||||
act(() => {
|
||||
result.current.insert(SPRING);
|
||||
});
|
||||
const added = vi.mocked(planner.setSelectedWaypointId).mock.calls[0]?.[0] as string;
|
||||
const withPoint = [PA, PB, { id: added, lat: 47.015, lng: 11.001, role: 'via' as const }, PC];
|
||||
planner = insertionPlanner({ waypoints: withPoint, routeCurrent: false, status: 'routing' });
|
||||
rerender();
|
||||
expect(result.current.outcome).toEqual({ kind: 'measuring', name: 'Spring' });
|
||||
planner = insertionPlanner({ waypoints: withPoint, distanceMeters: 2450, walkingDurationMinutes: 46 });
|
||||
rerender();
|
||||
expect(result.current.outcome).toEqual({ kind: 'measured', name: 'Spring', extraM: 250, extraMinutes: 6 });
|
||||
planner = insertionPlanner({ waypoints: withPoint, status: 'routing-failed' });
|
||||
rerender();
|
||||
expect(result.current.outcome).toEqual({ kind: 'unmeasured', name: 'Spring' });
|
||||
planner = insertionPlanner();
|
||||
rerender();
|
||||
expect(result.current.outcome).toBeNull();
|
||||
});
|
||||
|
||||
it('FE-TOUR-POI-007: takes nothing in while saving, without edit rights, or into a stretch drawn by hand', () => {
|
||||
const free: TourPlannerWaypoint[] = [
|
||||
PA,
|
||||
{
|
||||
...PB,
|
||||
fixedLeg: {
|
||||
kind: 'free',
|
||||
geometry: [
|
||||
[47.01, 11.0],
|
||||
[47.02, 11.0],
|
||||
],
|
||||
},
|
||||
},
|
||||
PC,
|
||||
];
|
||||
for (const planner of [insertionPlanner({ isSaving: true }), insertionPlanner({ canEdit: false })]) {
|
||||
const { result } = renderHook(() => usePoiInsertion(planner));
|
||||
expect(result.current.insert(SPRING)).toBe(false);
|
||||
expect(planner.editWaypoints).not.toHaveBeenCalled();
|
||||
}
|
||||
const planner = insertionPlanner({ waypoints: free });
|
||||
const { result } = renderHook(() => usePoiInsertion(planner));
|
||||
act(() => result.current.chooseAfter(SPRING, 'b'));
|
||||
expect(result.current.blockOf('b')).toBe('free');
|
||||
expect(result.current.insert(SPRING)).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
describe('TourPoiSearchCard', () => {
|
||||
it('FE-TOUR-POI-008: lists what was found with where it lies; opening a place offers to add it after a point', async () => {
|
||||
const planner = {
|
||||
...searchPlanner(),
|
||||
...insertionPlanner(),
|
||||
} as unknown as TourPlannerController;
|
||||
render(<TourPoiSearchCard planner={planner} />);
|
||||
fireEvent.click(screen.getByTestId('tour-poi-search'));
|
||||
const row = await screen.findByTestId('tour-poi-node:1');
|
||||
expect(row).toHaveTextContent('Spring');
|
||||
expect(row).toHaveTextContent('80 m from the route');
|
||||
fireEvent.click(within(row).getByRole('button', { name: /Spring/ }));
|
||||
expect(within(row).getByText('Mo-Su 08:00-18:00')).toBeInTheDocument();
|
||||
expect(within(row).getByText('As the source has them; check before you go.')).toBeInTheDocument();
|
||||
fireEvent.click(within(row).getByTestId('tour-poi-add'));
|
||||
await waitFor(() => expect(planner.editWaypoints).toHaveBeenCalledTimes(1));
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,122 @@
|
||||
import type { TourPoi } from '@trek/shared';
|
||||
import { useCallback, useState } from 'react';
|
||||
import { useTourPoiStore } from '../../../store/tourPoiStore';
|
||||
import { randomId } from '../../../utils/randomId';
|
||||
import type { TourPlannerWaypoint } from '../planner/tourPlannerWaypoints';
|
||||
import type { TourPlannerController, TourPlannerStatus } from '../planner/useTourPlanner';
|
||||
import { defaultAfterId, insertionBlock, withPointAfter } from './poiInsertion';
|
||||
|
||||
/** The route is planned through and its measures can be read. */
|
||||
const SETTLED: readonly TourPlannerStatus[] = ['ready', 'saved', 'elevation-failed'];
|
||||
|
||||
interface Measures {
|
||||
distanceM: number;
|
||||
minutes: number | null;
|
||||
}
|
||||
|
||||
/** A place taken in: which point it became, and the route's measures just before. */
|
||||
interface Inserted {
|
||||
pointId: string;
|
||||
name: string;
|
||||
before: Measures | null;
|
||||
/** How many points the tour had once the place was in; another edit after it ends the comparison. */
|
||||
pointCount: number;
|
||||
}
|
||||
|
||||
export type InsertionOutcome =
|
||||
| { kind: 'measuring'; name: string }
|
||||
| { kind: 'measured'; name: string; extraM: number; extraMinutes: number | null }
|
||||
| { kind: 'unmeasured'; name: string };
|
||||
|
||||
export type PoiInsertionPlanner = Pick<
|
||||
TourPlannerController,
|
||||
| 'waypoints'
|
||||
| 'route'
|
||||
| 'editWaypoints'
|
||||
| 'setSelectedWaypointId'
|
||||
| 'routeCurrent'
|
||||
| 'status'
|
||||
| 'distanceMeters'
|
||||
| 'walkingDurationMinutes'
|
||||
| 'canEdit'
|
||||
| 'isSaving'
|
||||
>;
|
||||
|
||||
function measuresOf(planner: PoiInsertionPlanner): Measures | null {
|
||||
if (!planner.routeCurrent || !SETTLED.includes(planner.status) || planner.distanceMeters == null) return null;
|
||||
return { distanceM: planner.distanceMeters, minutes: planner.walkingDurationMinutes ?? null };
|
||||
}
|
||||
|
||||
/**
|
||||
* PLN-03: a place found along the tour taken in as a stop, after the point
|
||||
* chosen, only when asked. It becomes a waypoint of its own on the place's
|
||||
* spot, not a place of the trip; the route is planned again as for any point,
|
||||
* and the one step it was can be undone. What it adds is the difference of the
|
||||
* route as planned before and after, read once the new route is in; where
|
||||
* either could not be planned, it says so rather than guess. A leg drawn by
|
||||
* hand or a fixed line is never cut: the point after which it would go says why.
|
||||
*/
|
||||
export function usePoiInsertion(planner: PoiInsertionPlanner) {
|
||||
const select = useTourPoiStore((state) => state.select);
|
||||
const [afterChoice, setAfterChoice] = useState<{ poiId: string; afterId: string } | null>(null);
|
||||
const [inserted, setInserted] = useState<Inserted | null>(null);
|
||||
|
||||
const afterIdFor = useCallback(
|
||||
(poi: TourPoi) =>
|
||||
afterChoice?.poiId === poi.id
|
||||
? afterChoice.afterId
|
||||
: defaultAfterId(planner.waypoints, planner.route, poi.along_m),
|
||||
[afterChoice, planner.route, planner.waypoints]
|
||||
);
|
||||
const chooseAfter = useCallback((poi: TourPoi, afterId: string) => setAfterChoice({ poiId: poi.id, afterId }), []);
|
||||
|
||||
const insert = useCallback(
|
||||
(poi: TourPoi) => {
|
||||
const afterId = afterIdFor(poi);
|
||||
if (!afterId || !planner.canEdit || planner.isSaving) return false;
|
||||
const point: TourPlannerWaypoint = { id: randomId(), lat: poi.lat, lng: poi.lng, role: 'via' };
|
||||
const next = withPointAfter(planner.waypoints, afterId, point);
|
||||
if (!next) return false;
|
||||
const before = measuresOf(planner);
|
||||
planner.editWaypoints((current) => withPointAfter(current, afterId, point) ?? current);
|
||||
planner.setSelectedWaypointId(point.id);
|
||||
setInserted({ pointId: point.id, name: poi.name, before, pointCount: next.length });
|
||||
select(null);
|
||||
return true;
|
||||
},
|
||||
[afterIdFor, planner, select]
|
||||
);
|
||||
|
||||
const dismiss = useCallback(() => setInserted(null), []);
|
||||
|
||||
return {
|
||||
afterIdFor,
|
||||
chooseAfter,
|
||||
blockOf: (afterId: string) => insertionBlock(planner.waypoints, afterId),
|
||||
insert,
|
||||
outcome: outcomeOf(inserted, planner),
|
||||
dismiss,
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* What taking the place in did to the route, read from the planner as it is
|
||||
* now: nothing once the point is gone again (undone or removed) or the tour
|
||||
* was edited further, so the figure never describes another route.
|
||||
*/
|
||||
function outcomeOf(inserted: Inserted | null, planner: PoiInsertionPlanner): InsertionOutcome | null {
|
||||
if (!inserted) return null;
|
||||
const stillThere = planner.waypoints.some((point) => point.id === inserted.pointId);
|
||||
if (!stillThere || planner.waypoints.length !== inserted.pointCount) return null;
|
||||
const { name, before } = inserted;
|
||||
if (planner.status === 'routing-failed') return { kind: 'unmeasured', name };
|
||||
const after = measuresOf(planner);
|
||||
if (!after) return { kind: 'measuring', name };
|
||||
if (!before) return { kind: 'unmeasured', name };
|
||||
return {
|
||||
kind: 'measured',
|
||||
name,
|
||||
extraM: after.distanceM - before.distanceM,
|
||||
extraMinutes: after.minutes != null && before.minutes != null ? after.minutes - before.minutes : null,
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
import { useMemo } from 'react';
|
||||
import { useTourPoiStore } from '../../../store/tourPoiStore';
|
||||
import type { Poi } from '../../Map/poiCategories';
|
||||
|
||||
/**
|
||||
* PLN-02: the places found along the tour as the planner map draws POIs, each
|
||||
* in its category's look, and a click on one that picks it in the card.
|
||||
*/
|
||||
export function useTourPoiMarkers(): { pois: Poi[]; onPoiClick: (poi: Poi) => void } {
|
||||
const found = useTourPoiStore((state) => state.pois);
|
||||
const select = useTourPoiStore((state) => state.select);
|
||||
const pois = useMemo(
|
||||
() =>
|
||||
found.map((poi): Poi => ({
|
||||
osm_id: poi.id,
|
||||
name: poi.name,
|
||||
lat: poi.lat,
|
||||
lng: poi.lng,
|
||||
category: poi.category,
|
||||
poi_type: poi.kind,
|
||||
address: poi.address,
|
||||
website: poi.website,
|
||||
phone: poi.phone,
|
||||
opening_hours: poi.opening_hours,
|
||||
cuisine: null,
|
||||
source: poi.source,
|
||||
})),
|
||||
[found]
|
||||
);
|
||||
return { pois, onPoiClick: (poi: Poi) => select(poi.osm_id) };
|
||||
}
|
||||
@@ -0,0 +1,144 @@
|
||||
import {
|
||||
TOUR_POI_CATEGORIES_BY_TYPE,
|
||||
TOUR_POI_MAX_CATEGORIES,
|
||||
TOUR_POI_MAX_LINE_POINTS,
|
||||
type PlannableTourType,
|
||||
type TourPoi,
|
||||
type TourPoiCategory,
|
||||
type TourPoiSearchResponse,
|
||||
} from '@trek/shared';
|
||||
import { useCallback, useEffect, useRef, useState } from 'react';
|
||||
import { useTranslation } from '../../../i18n';
|
||||
import { OnlineOnlyError } from '../../../repo/onlineOnly';
|
||||
import { tourPoiSearchRepo } from '../../../repo/tourPoiSearchRepo';
|
||||
import { useTourPoiStore } from '../../../store/tourPoiStore';
|
||||
import type { TourPlannerController } from '../planner/useTourPlanner';
|
||||
|
||||
/** What is ticked when a type is searched for the first time: the three most asked. */
|
||||
const STARTING_CATEGORIES = (type: PlannableTourType) => TOUR_POI_CATEGORIES_BY_TYPE[type].slice(0, 3);
|
||||
export const DEFAULT_CORRIDOR_M = 500;
|
||||
|
||||
type SearchStatus = 'idle' | 'loading' | 'ready' | 'error' | 'offline';
|
||||
|
||||
/** At most `most` points of a line, its ends kept. */
|
||||
function thinned(line: Array<[number, number]>, most: number): Array<[number, number]> {
|
||||
if (line.length <= most) return line;
|
||||
const step = (line.length - 1) / (most - 1);
|
||||
return Array.from({ length: most }, (_, index) => line[Math.min(line.length - 1, Math.round(index * step))]).filter(
|
||||
(point): point is [number, number] => !!point
|
||||
);
|
||||
}
|
||||
|
||||
/** What a search was asked with, so a later change of the route or the choices shows it is out of date. */
|
||||
function keyOf(route: Array<[number, number]> | null, type: string, categories: readonly string[], corridor: number) {
|
||||
const ends = route && route.length > 1 ? [route[0], route[route.length - 1], route.length] : [];
|
||||
return JSON.stringify([ends, type, [...categories].sort(), corridor]);
|
||||
}
|
||||
|
||||
export type TourPoiPlanner = Pick<TourPlannerController, 'tripId' | 'tourType' | 'route' | 'mode'>;
|
||||
|
||||
/**
|
||||
* PLN-02: places along the tour open in the planner, searched only when asked.
|
||||
* The categories offered are the tour type's; the corridor is how far from the
|
||||
* line a place may lie. The answer is shown until the next search: once the
|
||||
* route or the choices change, it says it was found for the route as it was.
|
||||
* Nothing about the tour changes here; taking a place in is usePoiInsertion's.
|
||||
*/
|
||||
export function useTourPoiSearch(planner: TourPoiPlanner) {
|
||||
const { locale } = useTranslation();
|
||||
const type = planner.tourType;
|
||||
const [chosen, setChosen] = useState<Partial<Record<PlannableTourType, TourPoiCategory[]>>>({});
|
||||
const categories = chosen[type] ?? STARTING_CATEGORIES(type);
|
||||
const [corridorM, setCorridorM] = useState(DEFAULT_CORRIDOR_M);
|
||||
const [answer, setAnswer] = useState<{
|
||||
key: string;
|
||||
status: Exclude<SearchStatus, 'idle' | 'loading'>;
|
||||
data?: TourPoiSearchResponse;
|
||||
} | null>(null);
|
||||
const [loadingKey, setLoadingKey] = useState<string | null>(null);
|
||||
const abortRef = useRef<AbortController | null>(null);
|
||||
const publish = useTourPoiStore((state) => state.publish);
|
||||
const clear = useTourPoiStore((state) => state.clear);
|
||||
|
||||
const route = planner.route;
|
||||
const currentKey = keyOf(route, type, categories, corridorM);
|
||||
const canSearch = !!route && route.length > 1 && categories.length > 0 && loadingKey === null;
|
||||
|
||||
const toggleCategory = useCallback(
|
||||
(category: TourPoiCategory) =>
|
||||
setChosen((current) => {
|
||||
const now = current[type] ?? STARTING_CATEGORIES(type);
|
||||
const next = now.includes(category)
|
||||
? now.filter((item) => item !== category)
|
||||
: now.length < TOUR_POI_MAX_CATEGORIES
|
||||
? [...now, category]
|
||||
: now;
|
||||
return { ...current, [type]: next };
|
||||
}),
|
||||
[type]
|
||||
);
|
||||
|
||||
const search = useCallback(async () => {
|
||||
if (!route || route.length < 2 || !categories.length) return;
|
||||
abortRef.current?.abort();
|
||||
const controller = new AbortController();
|
||||
abortRef.current = controller;
|
||||
const key = currentKey;
|
||||
setLoadingKey(key);
|
||||
try {
|
||||
const data = await tourPoiSearchRepo.search(
|
||||
planner.tripId,
|
||||
{
|
||||
tour_type: type,
|
||||
categories: [...categories],
|
||||
corridor_m: corridorM,
|
||||
line: thinned(route, TOUR_POI_MAX_LINE_POINTS),
|
||||
lang: locale,
|
||||
},
|
||||
controller.signal
|
||||
);
|
||||
setAnswer({ key, status: 'ready', data });
|
||||
publish(data.pois);
|
||||
} catch (err: unknown) {
|
||||
if (controller.signal.aborted) return;
|
||||
setAnswer({ key, status: err instanceof OnlineOnlyError ? 'offline' : 'error' });
|
||||
clear();
|
||||
} finally {
|
||||
if (abortRef.current === controller) {
|
||||
abortRef.current = null;
|
||||
setLoadingKey(null);
|
||||
}
|
||||
}
|
||||
}, [categories, clear, corridorM, currentKey, locale, planner.tripId, publish, route, type]);
|
||||
|
||||
// Leaving the planner, or a tour closed, takes the places off the map.
|
||||
useEffect(
|
||||
() => () => {
|
||||
abortRef.current?.abort();
|
||||
clear();
|
||||
},
|
||||
[clear]
|
||||
);
|
||||
|
||||
const status: SearchStatus = loadingKey !== null ? 'loading' : (answer?.status ?? 'idle');
|
||||
return {
|
||||
offered: TOUR_POI_CATEGORIES_BY_TYPE[type],
|
||||
categories,
|
||||
toggleCategory,
|
||||
corridorM,
|
||||
setCorridorM,
|
||||
canSearch,
|
||||
search,
|
||||
status,
|
||||
answer: answer?.data ?? null,
|
||||
/** The answer was found for the route or the choices as they were before. */
|
||||
outdated: !!answer && answer.key !== currentKey,
|
||||
};
|
||||
}
|
||||
|
||||
export type TourPoiSearch = ReturnType<typeof useTourPoiSearch>;
|
||||
|
||||
/** The place chosen in the list or on the map, while it is one of the answer's. */
|
||||
export function useSelectedPoi(): TourPoi | null {
|
||||
return useTourPoiStore((state) => state.pois.find((poi) => poi.id === state.selectedId) ?? null);
|
||||
}
|
||||
@@ -13,6 +13,7 @@ import { ChecklistObstaclePanel } from '../../components/Tours/paddle/ObstacleDe
|
||||
import PaddleObstacleOverlay from '../../components/Tours/paddle/PaddleObstacleOverlay';
|
||||
import { PaddleObstaclePlaceButton } from '../../components/Tours/paddle/PaddleObstaclePlaceButton';
|
||||
import { useShapingClick } from '../../components/Tours/planner/useShapingClick';
|
||||
import { useTourPoiMarkers } from '../../components/Tours/poi/useTourPoiMarkers';
|
||||
import type { TerrainLegendLayout } from '../../components/Tours/terrain/TourTerrainMap';
|
||||
import { isRtlLanguage, useTranslation } from '../../i18n';
|
||||
import { selectPaddleObstacle, usePaddleObstacleStore } from '../../store/paddleObstacleStore';
|
||||
@@ -154,6 +155,8 @@ export function TourPlannerMapStage({
|
||||
// PAD-03 on a recorded paddle track: with a marking tool on, a click on the line marks the spot on it.
|
||||
const { pickOnLine, onAddOrMark } = useTrackLinePick(tourPlanner, canPlaceEdit, closingPress.guard, waypoints.onAdd);
|
||||
// P2A-03: a click on the route being edited sets a shaping point there.
|
||||
// PLN-02: the places found along the tour, drawn on the map and picked from it.
|
||||
const poiMarkers = useTourPoiMarkers();
|
||||
const shapeAt = useShapingClick(tourPlanner, { editable: !!waypoints.onMove, picking: pickOnLine });
|
||||
// What each panel covers of the map, a collapsed one its rail.
|
||||
const leftInset = leftHidden ? 56 : leftPanelPx;
|
||||
@@ -226,6 +229,7 @@ export function TourPlannerMapStage({
|
||||
ferrataLayer={ferrataLayer}
|
||||
onViewportChange={viewportChanged}
|
||||
placeTool={placeTool}
|
||||
{...poiMarkers}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
import { isEffectivelyOffline } from '../sync/networkMode';
|
||||
|
||||
/**
|
||||
* What an online-only repository call answers while there is no connection:
|
||||
* nothing read or written, and the view says why instead of a failure.
|
||||
*/
|
||||
export class OnlineOnlyError extends Error {
|
||||
constructor() {
|
||||
super('This needs a connection');
|
||||
this.name = 'OnlineOnlyError';
|
||||
}
|
||||
}
|
||||
|
||||
export function requireOnline(): void {
|
||||
if (isEffectivelyOffline()) throw new OnlineOnlyError();
|
||||
}
|
||||
@@ -1,7 +1,8 @@
|
||||
import type { TourCreateResponse } from '@trek/shared';
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest';
|
||||
import { tourLibraryApi } from '../api/tourLibrary';
|
||||
import { TourLibraryOfflineError, tourLibraryRepo } from './tourLibraryRepo';
|
||||
import { OnlineOnlyError } from './onlineOnly';
|
||||
import { tourLibraryRepo } from './tourLibraryRepo';
|
||||
|
||||
// FE-REPO-TOUR-LIBRARY-001 to FE-REPO-TOUR-LIBRARY-002
|
||||
|
||||
@@ -20,10 +21,10 @@ describe('tourLibraryRepo', () => {
|
||||
it('FE-REPO-TOUR-LIBRARY-001: reads and takes over only online, never from a cache', async () => {
|
||||
network.offline = true;
|
||||
const list = vi.spyOn(tourLibraryApi, 'list');
|
||||
await expect(tourLibraryRepo.list({})).rejects.toBeInstanceOf(TourLibraryOfflineError);
|
||||
await expect(tourLibraryRepo.detail(3)).rejects.toBeInstanceOf(TourLibraryOfflineError);
|
||||
await expect(tourLibraryRepo.list({})).rejects.toBeInstanceOf(OnlineOnlyError);
|
||||
await expect(tourLibraryRepo.detail(3)).rejects.toBeInstanceOf(OnlineOnlyError);
|
||||
await expect(tourLibraryRepo.takeOver(5, { source_trip_id: 2, source_place_id: 3 })).rejects.toBeInstanceOf(
|
||||
TourLibraryOfflineError
|
||||
OnlineOnlyError
|
||||
);
|
||||
expect(list).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
@@ -7,19 +7,7 @@ import type {
|
||||
} from '@trek/shared';
|
||||
import { tourLibraryApi } from '../api/tourLibrary';
|
||||
import { cacheTourAnswer } from '../db/cacheTour';
|
||||
import { isEffectivelyOffline } from '../sync/networkMode';
|
||||
|
||||
/** What a library call answers while there is no connection: nothing read, and the view says why. */
|
||||
export class TourLibraryOfflineError extends Error {
|
||||
constructor() {
|
||||
super('The tour library needs a connection');
|
||||
this.name = 'TourLibraryOfflineError';
|
||||
}
|
||||
}
|
||||
|
||||
function requireOnline(): void {
|
||||
if (isEffectivelyOffline()) throw new TourLibraryOfflineError();
|
||||
}
|
||||
import { requireOnline } from './onlineOnly';
|
||||
|
||||
/**
|
||||
* LIB-02, online only on purpose: the list reads across trips this device may
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
import type { TourPoiSearchRequest, TourPoiSearchResponse } from '@trek/shared';
|
||||
import { tourPoiSearchApi } from '../api/tourPoiSearch';
|
||||
import { requireOnline } from './onlineOnly';
|
||||
|
||||
/**
|
||||
* PLN-02, online only: the places along a tour come from the map search
|
||||
* behind the server, and nothing of them is kept. Offline the card says so.
|
||||
*/
|
||||
export const tourPoiSearchRepo = {
|
||||
async search(
|
||||
tripId: number | string,
|
||||
body: TourPoiSearchRequest,
|
||||
signal?: AbortSignal
|
||||
): Promise<TourPoiSearchResponse> {
|
||||
requireOnline();
|
||||
return await tourPoiSearchApi.search(tripId, body, signal);
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,21 @@
|
||||
import type { TourPoi } from '@trek/shared';
|
||||
import { create } from 'zustand';
|
||||
|
||||
/**
|
||||
* PLN-02: the places found along the tour in the planner, and the one chosen.
|
||||
* The card searches and lists them; the map stage draws them and picks one
|
||||
* on a click. Nothing here is kept beyond the view.
|
||||
*/
|
||||
export const useTourPoiStore = create<{
|
||||
pois: readonly TourPoi[];
|
||||
selectedId: string | null;
|
||||
publish: (pois: readonly TourPoi[]) => void;
|
||||
select: (id: string | null) => void;
|
||||
clear: () => void;
|
||||
}>((set) => ({
|
||||
pois: [],
|
||||
selectedId: null,
|
||||
publish: (pois) => set({ pois, selectedId: null }),
|
||||
select: (selectedId) => set({ selectedId }),
|
||||
clear: () => set({ pois: [], selectedId: null }),
|
||||
}));
|
||||
@@ -43,6 +43,17 @@ const PARALLEL_TILES = 3;
|
||||
/** The most places one stretch is asked for. */
|
||||
const PER_TILE_LIMIT = 60;
|
||||
|
||||
/** Within this many metres, two places of one name are one place mapped twice. */
|
||||
const SAME_PLACE_M = 60;
|
||||
|
||||
function sameSpot(a: Pick<TourPoi, 'name' | 'lat' | 'lng'>, b: { name: string; lat: number; lng: number }): boolean {
|
||||
if (a.name.trim().toLocaleLowerCase() !== b.name.trim().toLocaleLowerCase()) return false;
|
||||
const metresPerDegree = 111_320;
|
||||
const dLat = (a.lat - b.lat) * metresPerDegree;
|
||||
const dLng = (a.lng - b.lng) * metresPerDegree * Math.cos((a.lat * Math.PI) / 180);
|
||||
return Math.hypot(dLat, dLng) <= SAME_PLACE_M;
|
||||
}
|
||||
|
||||
function tourCategoryOf(mapsCategory: string, asked: readonly TourPoiCategory[]): TourPoiCategory | undefined {
|
||||
return asked.find((category) => MAPS_CATEGORIES[category].includes(mapsCategory));
|
||||
}
|
||||
@@ -99,6 +110,8 @@ export class TourPoiSearchService {
|
||||
const category = tourCategoryOf(poi.category, body.categories);
|
||||
const near = nearnessToLine({ lat: poi.lat, lng: poi.lng }, line);
|
||||
if (!category || !near || near.distanceM > body.corridor_m || found.has(poi.osm_id)) continue;
|
||||
// OpenStreetMap often maps one place twice, as a point and as its outline: one name in one spot is one place.
|
||||
if (poi.name && [...found.values()].some((other) => sameSpot(other, poi))) continue;
|
||||
found.set(poi.osm_id, {
|
||||
id: poi.osm_id,
|
||||
name: poi.name,
|
||||
|
||||
@@ -95,6 +95,18 @@ describe('TourPoiSearchService', () => {
|
||||
expect(result).toMatchObject({ truncated: false, partial: false, capped: false });
|
||||
});
|
||||
|
||||
it('TOUR-POI-006: one name in one spot is one place, mapped twice as a point and an outline', async () => {
|
||||
pois.mockResolvedValue(
|
||||
answer([
|
||||
poi('node:9', 47.41, 11.1003, 'viewpoint', { name: 'AlpspiX' }),
|
||||
poi('way:9', 47.4101, 11.1004, 'viewpoint', { name: 'AlpspiX' }),
|
||||
poi('node:10', 47.4102, 11.1003, 'viewpoint', { name: 'Other' }),
|
||||
]),
|
||||
);
|
||||
const result = await service.search({ tour_type: 'hike', categories: ['viewpoint'], corridor_m: 500, line: LINE });
|
||||
expect(result.pois.map((found) => found.id)).toEqual(['node:9', 'node:10']);
|
||||
});
|
||||
|
||||
it('TOUR-POI-002: asks the map search for what each category means, and names a hit by the category asked', async () => {
|
||||
pois.mockResolvedValue(answer([poi('node:cafe', 47.41, 11.1, 'cafe')]));
|
||||
const result = await service.search({
|
||||
|
||||
@@ -308,6 +308,47 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': 'تم نقل «{name}» إلى هذه الرحلة.',
|
||||
'tours.library.failed': 'تعذّر نقل الجولة.',
|
||||
'tours.provenance.takenOverFrom': 'منقولة من',
|
||||
'tours.poi.title': 'على طول الجولة',
|
||||
'tours.poi.intro': 'أماكن للتوقف قريبة من المسار. لا يتغير شيء حتى تضيف واحدًا.',
|
||||
'tours.poi.categories': 'ما الذي تبحث عنه',
|
||||
'tours.poi.within': 'ضمن هذه المسافة من المسار',
|
||||
'tours.poi.search': 'ابحث على طول الجولة',
|
||||
'tours.poi.searching': 'جارٍ البحث…',
|
||||
'tours.poi.again': 'ابحث مرة أخرى',
|
||||
'tours.poi.offline': 'يتطلب البحث اتصالًا بالإنترنت.',
|
||||
'tours.poi.failed': 'لم ينجح البحث. حاول مرة أخرى بعد قليل.',
|
||||
'tours.poi.outdated': 'وُجدت للمسار كما كان سابقًا. ابحث مرة أخرى لتطابق المسار الحالي.',
|
||||
'tours.poi.partial': 'تعذّر البحث في بعض المقاطع، وقد تكون هناك أماكن مفقودة.',
|
||||
'tours.poi.capped': 'الجولة طويلة: تم البحث في جزئها الأول فقط.',
|
||||
'tours.poi.truncated': 'هناك أماكن أكثر مما يظهر. قلّل المسافة أو الأنواع.',
|
||||
'tours.poi.empty': 'لم يُعثر على شيء ضمن {distance} من المسار.',
|
||||
'tours.poi.fromRoute': '{distance} من المسار',
|
||||
'tours.poi.along': 'عند {distance}',
|
||||
'tours.poi.source.osm': 'من OpenStreetMap',
|
||||
'tours.poi.source.trek': 'من فهرس أماكن TREK',
|
||||
'tours.poi.hoursHint': 'كما تذكرها المصادر؛ تحقّق منها قبل الانطلاق.',
|
||||
'tours.poi.website': 'الموقع الإلكتروني',
|
||||
'tours.poi.addAfter': 'أضِف بعد',
|
||||
'tours.poi.add': 'أضِف كتوقف',
|
||||
'tours.poi.notAPlace': 'يصبح توقفًا في الجولة، وليس مكانًا في الرحلة.',
|
||||
'tours.poi.blocked.fixed': 'المقطع بعد هذه النقطة خط ثابت، مسار تسلق أو حمل للقارب. اختر نقطة أخرى.',
|
||||
'tours.poi.blocked.free': 'المقطع بعد هذه النقطة مرسوم يدويًا. اختر نقطة أخرى أو أعد توجيه المقطع أولًا.',
|
||||
'tours.poi.blocked.none': 'لا يوجد مقطع بعد هذه النقطة لإضافة توقف إليه.',
|
||||
'tours.poi.outcome.measuring': 'أصبح «{name}» توقفًا الآن؛ يُعاد تخطيط المسار.',
|
||||
'tours.poi.outcome.measured': 'أصبح «{name}» توقفًا الآن. تتغير الجولة بمقدار:',
|
||||
'tours.poi.outcome.unmeasured': 'أصبح «{name}» توقفًا الآن. تعذّر حساب مقدار ما يضيفه.',
|
||||
'tours.poi.undoHint': 'التراجع في المحرر يلغيه.',
|
||||
'tours.poi.cat.viewpoint': 'نقاط مشاهدة',
|
||||
'tours.poi.cat.peak': 'قمم',
|
||||
'tours.poi.cat.shelter': 'أكواخ وملاجئ',
|
||||
'tours.poi.cat.drinking_water': 'مياه الشرب',
|
||||
'tours.poi.cat.food': 'طعام',
|
||||
'tours.poi.cat.toilets': 'دورات مياه',
|
||||
'tours.poi.cat.picnic': 'أماكن نزهة',
|
||||
'tours.poi.cat.campsite': 'مخيمات',
|
||||
'tours.poi.cat.sights': 'معالم',
|
||||
'tours.poi.cat.slipway': 'نقاط إنزال القوارب',
|
||||
'tours.poi.cat.boat_rental': 'تأجير القوارب',
|
||||
'tours.copy.action': 'حفظ كجولة جديدة',
|
||||
'tours.copy.hint': 'ينسخ هذه الجولة كجولة جديدة مستقلة دون أيامها. يبقى الأصل كما هو.',
|
||||
'tours.copy.name': '{name} (نسخة)',
|
||||
|
||||
@@ -297,6 +297,49 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': '“{name}” bu səfərə götürüldü.',
|
||||
'tours.library.failed': 'Tur götürülə bilmədi.',
|
||||
'tours.provenance.takenOverFrom': 'Götürüldüyü yer',
|
||||
'tours.poi.title': 'Tur boyunca',
|
||||
'tours.poi.intro': 'Marşruta yaxın dayanacaq yerləri. Birini əlavə edənə qədər heç nə dəyişmir.',
|
||||
'tours.poi.categories': 'Nə axtarılsın',
|
||||
'tours.poi.within': 'Marşrutdan bu məsafədə',
|
||||
'tours.poi.search': 'Tur boyunca axtar',
|
||||
'tours.poi.searching': 'Axtarılır…',
|
||||
'tours.poi.again': 'Yenidən axtar',
|
||||
'tours.poi.offline': 'Axtarış üçün bağlantı lazımdır.',
|
||||
'tours.poi.failed': 'Axtarış alınmadı. Bir azdan yenidən cəhd et.',
|
||||
'tours.poi.outdated': 'Marşrutun əvvəlki halı üçün tapılıb. İndikinə uyğun olması üçün yenidən axtar.',
|
||||
'tours.poi.partial': 'Bəzi hissələrdə axtarış aparılmadı; orada yerlər çatışmaya bilər.',
|
||||
'tours.poi.capped': 'Tur uzundur: yalnız ilk hissəsində axtarış aparıldı.',
|
||||
'tours.poi.truncated': 'Göstəriləndən çox yer var. Məsafəni və ya növləri azalt.',
|
||||
'tours.poi.empty': 'Marşrutdan {distance} məsafədə heç nə tapılmadı.',
|
||||
'tours.poi.fromRoute': 'marşrutdan {distance}',
|
||||
'tours.poi.along': '{distance}-də',
|
||||
'tours.poi.source.osm': 'OpenStreetMap-dən',
|
||||
'tours.poi.source.trek': 'TREK-in yerlər indeksindən',
|
||||
'tours.poi.hoursHint': 'Mənbədə olduğu kimi; getməzdən əvvəl yoxla.',
|
||||
'tours.poi.website': 'Veb sayt',
|
||||
'tours.poi.addAfter': 'Bundan sonra əlavə et',
|
||||
'tours.poi.add': 'Dayanacaq kimi əlavə et',
|
||||
'tours.poi.notAPlace': 'Turun dayanacağı olur, səfərin yeri yox.',
|
||||
'tours.poi.blocked.fixed':
|
||||
'Bu nöqtədən sonrakı hissə sabit xəttdir, via ferrata və ya qayığın daşınmasıdır. Başqa nöqtə seç.',
|
||||
'tours.poi.blocked.free':
|
||||
'Bu nöqtədən sonrakı hissə əllə çəkilib. Başqa nöqtə seç və ya əvvəlcə hissəni yenidən marşrutlaşdır.',
|
||||
'tours.poi.blocked.none': 'Bu nöqtədən sonra dayanacaq əlavə ediləcək hissə yoxdur.',
|
||||
'tours.poi.outcome.measuring': '“{name}” artıq dayanacaqdır; marşrut yenidən planlaşdırılır.',
|
||||
'tours.poi.outcome.measured': '“{name}” artıq dayanacaqdır. Tur bu qədər dəyişir:',
|
||||
'tours.poi.outcome.unmeasured': '“{name}” artıq dayanacaqdır. Nə qədər əlavə etdiyi hesablana bilmədi.',
|
||||
'tours.poi.undoHint': 'Redaktordakı geri al bunu ləğv edir.',
|
||||
'tours.poi.cat.viewpoint': 'Mənzərə nöqtələri',
|
||||
'tours.poi.cat.peak': 'Zirvələr',
|
||||
'tours.poi.cat.shelter': 'Daxmalar və sığınacaqlar',
|
||||
'tours.poi.cat.drinking_water': 'İçməli su',
|
||||
'tours.poi.cat.food': 'Yemək',
|
||||
'tours.poi.cat.toilets': 'Tualetlər',
|
||||
'tours.poi.cat.picnic': 'Piknik yerləri',
|
||||
'tours.poi.cat.campsite': 'Düşərgələr',
|
||||
'tours.poi.cat.sights': 'Görməli yerlər',
|
||||
'tours.poi.cat.slipway': 'Suya buraxılma yerləri',
|
||||
'tours.poi.cat.boat_rental': 'Qayıq icarəsi',
|
||||
'tours.copy.action': 'Yeni tur kimi saxla',
|
||||
'tours.copy.hint': 'Bu turu günləri olmadan yeni, müstəqil tur kimi kopyalayır. Orijinal olduğu kimi qalır.',
|
||||
'tours.copy.name': '{name} (surət)',
|
||||
|
||||
@@ -302,6 +302,49 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': '“{name}” foi trazido para esta viagem.',
|
||||
'tours.library.failed': 'Não foi possível trazer o passeio.',
|
||||
'tours.provenance.takenOverFrom': 'Trazido de',
|
||||
'tours.poi.title': 'Ao longo do passeio',
|
||||
'tours.poi.intro': 'Lugares para uma parada, perto da rota. Nada muda até você adicionar um.',
|
||||
'tours.poi.categories': 'O que procurar',
|
||||
'tours.poi.within': 'Até esta distância da rota',
|
||||
'tours.poi.search': 'Buscar ao longo do passeio',
|
||||
'tours.poi.searching': 'Buscando…',
|
||||
'tours.poi.again': 'Buscar novamente',
|
||||
'tours.poi.offline': 'A busca precisa de conexão.',
|
||||
'tours.poi.failed': 'A busca não funcionou. Tente novamente em instantes.',
|
||||
'tours.poi.outdated': 'Encontrado para a rota como era antes. Busque novamente para combinar com a atual.',
|
||||
'tours.poi.partial': 'Alguns trechos não puderam ser buscados; podem faltar lugares neles.',
|
||||
'tours.poi.capped': 'O passeio é longo: só a primeira parte foi buscada.',
|
||||
'tours.poi.truncated': 'Há mais lugares do que os mostrados. Reduza a distância ou os tipos.',
|
||||
'tours.poi.empty': 'Nada encontrado a até {distance} da rota.',
|
||||
'tours.poi.fromRoute': 'a {distance} da rota',
|
||||
'tours.poi.along': 'no {distance}',
|
||||
'tours.poi.source.osm': 'Do OpenStreetMap',
|
||||
'tours.poi.source.trek': 'Do índice de lugares do TREK',
|
||||
'tours.poi.hoursHint': 'Conforme a fonte; confira antes de ir.',
|
||||
'tours.poi.website': 'Site',
|
||||
'tours.poi.addAfter': 'Adicionar depois de',
|
||||
'tours.poi.add': 'Adicionar como parada',
|
||||
'tours.poi.notAPlace': 'Vira uma parada do passeio, não um lugar da viagem.',
|
||||
'tours.poi.blocked.fixed':
|
||||
'O trecho após este ponto é uma linha fixa, uma via ferrata ou um transbordo. Escolha outro ponto.',
|
||||
'tours.poi.blocked.free':
|
||||
'O trecho após este ponto foi desenhado à mão. Escolha outro ponto ou volte a roteá-lo antes.',
|
||||
'tours.poi.blocked.none': 'Não há trecho após este ponto para adicionar uma parada.',
|
||||
'tours.poi.outcome.measuring': '“{name}” agora é uma parada; a rota está sendo planejada de novo.',
|
||||
'tours.poi.outcome.measured': '“{name}” agora é uma parada. O passeio muda em:',
|
||||
'tours.poi.outcome.unmeasured': '“{name}” agora é uma parada. Não foi possível calcular quanto ela acrescenta.',
|
||||
'tours.poi.undoHint': 'Desfazer no editor reverte isso.',
|
||||
'tours.poi.cat.viewpoint': 'Mirantes',
|
||||
'tours.poi.cat.peak': 'Cumes',
|
||||
'tours.poi.cat.shelter': 'Cabanas e abrigos',
|
||||
'tours.poi.cat.drinking_water': 'Água potável',
|
||||
'tours.poi.cat.food': 'Comida',
|
||||
'tours.poi.cat.toilets': 'Banheiros',
|
||||
'tours.poi.cat.picnic': 'Locais de piquenique',
|
||||
'tours.poi.cat.campsite': 'Campings',
|
||||
'tours.poi.cat.sights': 'Atrações',
|
||||
'tours.poi.cat.slipway': 'Pontos de entrada na água',
|
||||
'tours.poi.cat.boat_rental': 'Aluguel de barcos',
|
||||
'tours.copy.action': 'Salvar como novo passeio',
|
||||
'tours.copy.hint':
|
||||
'Copia este passeio como um novo passeio independente, sem os seus dias. O original fica como está.',
|
||||
|
||||
@@ -303,6 +303,49 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': "S'ha agafat «{name}» en aquest viatge.",
|
||||
'tours.library.failed': "No s'ha pogut agafar la ruta.",
|
||||
'tours.provenance.takenOverFrom': 'Agafada de',
|
||||
'tours.poi.title': 'Al llarg de la ruta',
|
||||
'tours.poi.intro': "Llocs per fer una parada, a prop de la ruta. No canvia res fins que n'afegeixis un.",
|
||||
'tours.poi.categories': 'Què cercar',
|
||||
'tours.poi.within': "Dins d'aquesta distància de la ruta",
|
||||
'tours.poi.search': 'Cerca al llarg de la ruta',
|
||||
'tours.poi.searching': "S'està cercant…",
|
||||
'tours.poi.again': 'Torna a cercar',
|
||||
'tours.poi.offline': 'La cerca necessita connexió.',
|
||||
'tours.poi.failed': "La cerca no ha funcionat. Torna-ho a provar d'aquí a una estona.",
|
||||
'tours.poi.outdated': "Trobat per a la ruta tal com era abans. Torna a cercar perquè encaixi amb l'actual.",
|
||||
'tours.poi.partial': "No s'han pogut cercar alguns trams; hi poden faltar llocs.",
|
||||
'tours.poi.capped': "La ruta és llarga: només se n'ha cercat la primera part.",
|
||||
'tours.poi.truncated': 'Hi ha més llocs dels que es mostren. Redueix la distància o els tipus.',
|
||||
'tours.poi.empty': "No s'ha trobat res a menys de {distance} de la ruta.",
|
||||
'tours.poi.fromRoute': 'a {distance} de la ruta',
|
||||
'tours.poi.along': 'al {distance}',
|
||||
'tours.poi.source.osm': "D'OpenStreetMap",
|
||||
'tours.poi.source.trek': "De l'índex de llocs de TREK",
|
||||
'tours.poi.hoursHint': "Tal com les dona la font; comprova-les abans d'anar-hi.",
|
||||
'tours.poi.website': 'Lloc web',
|
||||
'tours.poi.addAfter': 'Afegeix després de',
|
||||
'tours.poi.add': 'Afegeix com a parada',
|
||||
'tours.poi.notAPlace': 'Es converteix en una parada de la ruta, no en un lloc del viatge.',
|
||||
'tours.poi.blocked.fixed':
|
||||
"El tram després d'aquest punt és una línia fixa, una via ferrata o un transport de l'embarcació. Tria un altre punt.",
|
||||
'tours.poi.blocked.free':
|
||||
"El tram després d'aquest punt està dibuixat a mà. Tria un altre punt o torna'l a encaminar primer.",
|
||||
'tours.poi.blocked.none': "No hi ha cap tram després d'aquest punt on afegir una parada.",
|
||||
'tours.poi.outcome.measuring': "«{name}» ara és una parada; s'està tornant a planificar la ruta.",
|
||||
'tours.poi.outcome.measured': '«{name}» ara és una parada. La ruta canvia en:',
|
||||
'tours.poi.outcome.unmeasured': "«{name}» ara és una parada. No s'ha pogut calcular quant hi afegeix.",
|
||||
'tours.poi.undoHint': "Desfer a l'editor ho anul·la.",
|
||||
'tours.poi.cat.viewpoint': 'Miradors',
|
||||
'tours.poi.cat.peak': 'Cims',
|
||||
'tours.poi.cat.shelter': 'Refugis i aixoplucs',
|
||||
'tours.poi.cat.drinking_water': 'Aigua potable',
|
||||
'tours.poi.cat.food': 'Menjar',
|
||||
'tours.poi.cat.toilets': 'Lavabos',
|
||||
'tours.poi.cat.picnic': 'Zones de pícnic',
|
||||
'tours.poi.cat.campsite': 'Càmpings',
|
||||
'tours.poi.cat.sights': "Llocs d'interès",
|
||||
'tours.poi.cat.slipway': "Punts d'embarcament",
|
||||
'tours.poi.cat.boat_rental': 'Lloguer de barques',
|
||||
'tours.copy.action': 'Desa com a excursió nova',
|
||||
'tours.copy.hint':
|
||||
'Copia aquesta excursió com una excursió nova i independent, sense els seus dies. L’original es queda com està.',
|
||||
|
||||
@@ -297,6 +297,48 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': '„{name}“ byla převzata do této cesty.',
|
||||
'tours.library.failed': 'Túru se nepodařilo převzít.',
|
||||
'tours.provenance.takenOverFrom': 'Převzato z',
|
||||
'tours.poi.title': 'Podél túry',
|
||||
'tours.poi.intro': 'Místa na zastávku blízko trasy. Nic se nezmění, dokud nějaké nepřidáš.',
|
||||
'tours.poi.categories': 'Co hledat',
|
||||
'tours.poi.within': 'Do této vzdálenosti od trasy',
|
||||
'tours.poi.search': 'Hledat podél túry',
|
||||
'tours.poi.searching': 'Hledá se…',
|
||||
'tours.poi.again': 'Hledat znovu',
|
||||
'tours.poi.offline': 'Hledání potřebuje připojení.',
|
||||
'tours.poi.failed': 'Hledání se nepovedlo. Zkus to za chvíli znovu.',
|
||||
'tours.poi.outdated': 'Nalezeno pro trasu v dřívější podobě. Hledej znovu, aby to odpovídalo té současné.',
|
||||
'tours.poi.partial': 'Některé úseky se nepodařilo prohledat; místa tam mohou chybět.',
|
||||
'tours.poi.capped': 'Túra je dlouhá: prohledána byla jen její první část.',
|
||||
'tours.poi.truncated': 'Míst je víc, než se zobrazuje. Zmenši vzdálenost nebo druhy.',
|
||||
'tours.poi.empty': 'Do {distance} od trasy nic nenalezeno.',
|
||||
'tours.poi.fromRoute': '{distance} od trasy',
|
||||
'tours.poi.along': 'na {distance}',
|
||||
'tours.poi.source.osm': 'Z OpenStreetMap',
|
||||
'tours.poi.source.trek': 'Z rejstříku míst TREK',
|
||||
'tours.poi.hoursHint': 'Podle zdroje; před cestou si je ověř.',
|
||||
'tours.poi.website': 'Webové stránky',
|
||||
'tours.poi.addAfter': 'Přidat za',
|
||||
'tours.poi.add': 'Přidat jako zastávku',
|
||||
'tours.poi.notAPlace': 'Stane se zastávkou túry, ne místem cesty.',
|
||||
'tours.poi.blocked.fixed': 'Úsek za tímto bodem je pevná čára, ferrata nebo přenášení lodi. Vyber jiný bod.',
|
||||
'tours.poi.blocked.free':
|
||||
'Úsek za tímto bodem je kreslený ručně. Vyber jiný bod, nebo ho nejdřív nech znovu trasovat.',
|
||||
'tours.poi.blocked.none': 'Za tímto bodem není úsek, kam přidat zastávku.',
|
||||
'tours.poi.outcome.measuring': '„{name}“ je teď zastávka; trasa se plánuje znovu.',
|
||||
'tours.poi.outcome.measured': '„{name}“ je teď zastávka. Túra se mění o:',
|
||||
'tours.poi.outcome.unmeasured': '„{name}“ je teď zastávka. Kolik přidává, se nepodařilo spočítat.',
|
||||
'tours.poi.undoHint': 'Zpět v editoru to vrátí.',
|
||||
'tours.poi.cat.viewpoint': 'Vyhlídky',
|
||||
'tours.poi.cat.peak': 'Vrcholy',
|
||||
'tours.poi.cat.shelter': 'Chaty a přístřešky',
|
||||
'tours.poi.cat.drinking_water': 'Pitná voda',
|
||||
'tours.poi.cat.food': 'Jídlo',
|
||||
'tours.poi.cat.toilets': 'Toalety',
|
||||
'tours.poi.cat.picnic': 'Místa na piknik',
|
||||
'tours.poi.cat.campsite': 'Kempy',
|
||||
'tours.poi.cat.sights': 'Pamětihodnosti',
|
||||
'tours.poi.cat.slipway': 'Nástupní místa',
|
||||
'tours.poi.cat.boat_rental': 'Půjčovna lodí',
|
||||
'tours.copy.action': 'Uložit jako novou túru',
|
||||
'tours.copy.hint': 'Zkopíruje tuto túru jako novou, samostatnou túru bez jejích dnů. Originál zůstane, jak je.',
|
||||
'tours.copy.name': '{name} (kopie)',
|
||||
|
||||
@@ -305,6 +305,49 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': '„{name}“ wurde in diese Reise übernommen.',
|
||||
'tours.library.failed': 'Die Tour konnte nicht übernommen werden.',
|
||||
'tours.provenance.takenOverFrom': 'Übernommen aus',
|
||||
'tours.poi.title': 'Entlang der Tour',
|
||||
'tours.poi.intro': 'Orte für einen Stopp, nah an der Route. Es ändert sich nichts, bis du einen hinzufügst.',
|
||||
'tours.poi.categories': 'Wonach suchen',
|
||||
'tours.poi.within': 'In diesem Abstand zur Route',
|
||||
'tours.poi.search': 'Entlang der Tour suchen',
|
||||
'tours.poi.searching': 'Wird gesucht…',
|
||||
'tours.poi.again': 'Erneut suchen',
|
||||
'tours.poi.offline': 'Die Suche braucht eine Verbindung.',
|
||||
'tours.poi.failed': 'Die Suche hat nicht geklappt. Versuch es gleich noch einmal.',
|
||||
'tours.poi.outdated': 'Gefunden für die Route, wie sie vorher war. Suche erneut, damit es zur jetzigen passt.',
|
||||
'tours.poi.partial': 'Einige Abschnitte ließen sich nicht durchsuchen; dort können Orte fehlen.',
|
||||
'tours.poi.capped': 'Die Tour ist lang: Nur ihr erster Teil wurde durchsucht.',
|
||||
'tours.poi.truncated': 'Es gibt mehr Orte als angezeigt. Verkleinere den Abstand oder wähle weniger Arten.',
|
||||
'tours.poi.empty': 'Nichts gefunden im Abstand von {distance} zur Route.',
|
||||
'tours.poi.fromRoute': '{distance} von der Route',
|
||||
'tours.poi.along': 'bei {distance}',
|
||||
'tours.poi.source.osm': 'Aus OpenStreetMap',
|
||||
'tours.poi.source.trek': 'Aus dem Ortsverzeichnis von TREK',
|
||||
'tours.poi.hoursHint': 'So, wie die Quelle sie angibt; prüf sie vor dem Losgehen.',
|
||||
'tours.poi.website': 'Webseite',
|
||||
'tours.poi.addAfter': 'Einfügen nach',
|
||||
'tours.poi.add': 'Als Stopp hinzufügen',
|
||||
'tours.poi.notAPlace': 'Es wird ein Stopp der Tour, kein Ort der Reise.',
|
||||
'tours.poi.blocked.fixed':
|
||||
'Der Abschnitt nach diesem Punkt ist eine feste Linie, ein Klettersteig oder eine Umtragung. Wähle einen anderen Punkt.',
|
||||
'tours.poi.blocked.free':
|
||||
'Der Abschnitt nach diesem Punkt ist von Hand gezeichnet. Wähle einen anderen Punkt oder lass ihn zuerst wieder routen.',
|
||||
'tours.poi.blocked.none': 'Nach diesem Punkt gibt es keinen Abschnitt, in den ein Stopp passt.',
|
||||
'tours.poi.outcome.measuring': '„{name}“ ist jetzt ein Stopp; die Route wird neu geplant.',
|
||||
'tours.poi.outcome.measured': '„{name}“ ist jetzt ein Stopp. Die Tour ändert sich um:',
|
||||
'tours.poi.outcome.unmeasured': '„{name}“ ist jetzt ein Stopp. Wie viel er hinzufügt, ließ sich nicht berechnen.',
|
||||
'tours.poi.undoHint': 'Rückgängig im Editor nimmt es zurück.',
|
||||
'tours.poi.cat.viewpoint': 'Aussichtspunkte',
|
||||
'tours.poi.cat.peak': 'Gipfel',
|
||||
'tours.poi.cat.shelter': 'Hütten und Unterstände',
|
||||
'tours.poi.cat.drinking_water': 'Trinkwasser',
|
||||
'tours.poi.cat.food': 'Essen',
|
||||
'tours.poi.cat.toilets': 'Toiletten',
|
||||
'tours.poi.cat.picnic': 'Picknickplätze',
|
||||
'tours.poi.cat.campsite': 'Campingplätze',
|
||||
'tours.poi.cat.sights': 'Sehenswertes',
|
||||
'tours.poi.cat.slipway': 'Einsetzstellen',
|
||||
'tours.poi.cat.boat_rental': 'Bootsverleih',
|
||||
'tours.copy.action': 'Als neue Tour speichern',
|
||||
'tours.copy.hint': 'Kopiert diese Tour als neue, eigenständige Tour ohne ihre Tage. Das Original bleibt, wie es ist.',
|
||||
'tours.copy.name': '{name} (Kopie)',
|
||||
|
||||
@@ -296,6 +296,49 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': '“{name}” was taken over into this trip.',
|
||||
'tours.library.failed': 'The tour could not be taken over.',
|
||||
'tours.provenance.takenOverFrom': 'Taken over from',
|
||||
'tours.poi.title': 'Along the tour',
|
||||
'tours.poi.intro': 'Places for a stop, close to the route. Nothing changes until you add one.',
|
||||
'tours.poi.categories': 'What to look for',
|
||||
'tours.poi.within': 'Within this distance of the route',
|
||||
'tours.poi.search': 'Search along the tour',
|
||||
'tours.poi.searching': 'Searching…',
|
||||
'tours.poi.again': 'Search again',
|
||||
'tours.poi.offline': 'Searching needs a connection.',
|
||||
'tours.poi.failed': 'The search did not work. Try again in a moment.',
|
||||
'tours.poi.outdated': 'Found for the route as it was before. Search again to match it now.',
|
||||
'tours.poi.partial': 'Some stretches could not be searched; places there may be missing.',
|
||||
'tours.poi.capped': 'The tour is long: only its first part was searched.',
|
||||
'tours.poi.truncated': 'There are more places than shown. Narrow the distance or the kinds.',
|
||||
'tours.poi.empty': 'Nothing found within {distance} of the route.',
|
||||
'tours.poi.fromRoute': '{distance} from the route',
|
||||
'tours.poi.along': 'at {distance}',
|
||||
'tours.poi.source.osm': 'From OpenStreetMap',
|
||||
'tours.poi.source.trek': "From TREK's places index",
|
||||
'tours.poi.hoursHint': 'As the source has them; check before you go.',
|
||||
'tours.poi.website': 'Website',
|
||||
'tours.poi.addAfter': 'Add after',
|
||||
'tours.poi.add': 'Add as a stop',
|
||||
'tours.poi.notAPlace': 'It becomes a stop of the tour, not a place of the trip.',
|
||||
'tours.poi.blocked.fixed':
|
||||
'The stretch after this point is a fixed line, a via ferrata or a portage. Choose another point.',
|
||||
'tours.poi.blocked.free':
|
||||
'The stretch after this point is drawn by hand. Choose another point, or turn the stretch back into a routed one first.',
|
||||
'tours.poi.blocked.none': 'There is no stretch after this point to add a stop to.',
|
||||
'tours.poi.outcome.measuring': '“{name}” is a stop now; the route is being planned again.',
|
||||
'tours.poi.outcome.measured': '“{name}” is a stop now. The tour changes by:',
|
||||
'tours.poi.outcome.unmeasured': '“{name}” is a stop now. How much it adds could not be worked out.',
|
||||
'tours.poi.undoHint': 'Undo in the editor takes it back.',
|
||||
'tours.poi.cat.viewpoint': 'Viewpoints',
|
||||
'tours.poi.cat.peak': 'Summits',
|
||||
'tours.poi.cat.shelter': 'Huts and shelters',
|
||||
'tours.poi.cat.drinking_water': 'Drinking water',
|
||||
'tours.poi.cat.food': 'Food',
|
||||
'tours.poi.cat.toilets': 'Toilets',
|
||||
'tours.poi.cat.picnic': 'Picnic spots',
|
||||
'tours.poi.cat.campsite': 'Campsites',
|
||||
'tours.poi.cat.sights': 'Sights',
|
||||
'tours.poi.cat.slipway': 'Put-ins',
|
||||
'tours.poi.cat.boat_rental': 'Boat rental',
|
||||
'tours.copy.action': 'Save as new tour',
|
||||
'tours.copy.hint': 'Copies this tour as a new, independent tour without its days. The original stays as it is.',
|
||||
'tours.copy.name': '{name} (copy)',
|
||||
|
||||
@@ -302,6 +302,49 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': '«{name}» se trajo a este viaje.',
|
||||
'tours.library.failed': 'No se pudo traer la ruta.',
|
||||
'tours.provenance.takenOverFrom': 'Traída de',
|
||||
'tours.poi.title': 'A lo largo de la ruta',
|
||||
'tours.poi.intro': 'Lugares para una parada, cerca de la ruta. Nada cambia hasta que añadas uno.',
|
||||
'tours.poi.categories': 'Qué buscar',
|
||||
'tours.poi.within': 'A esta distancia de la ruta',
|
||||
'tours.poi.search': 'Buscar a lo largo de la ruta',
|
||||
'tours.poi.searching': 'Buscando…',
|
||||
'tours.poi.again': 'Buscar de nuevo',
|
||||
'tours.poi.offline': 'La búsqueda necesita conexión.',
|
||||
'tours.poi.failed': 'La búsqueda no funcionó. Inténtalo de nuevo en un momento.',
|
||||
'tours.poi.outdated': 'Encontrado para la ruta tal como era antes. Busca de nuevo para que coincida con la actual.',
|
||||
'tours.poi.partial': 'Algunos tramos no se pudieron buscar; pueden faltar lugares allí.',
|
||||
'tours.poi.capped': 'La ruta es larga: solo se buscó su primera parte.',
|
||||
'tours.poi.truncated': 'Hay más lugares de los que se muestran. Reduce la distancia o los tipos.',
|
||||
'tours.poi.empty': 'No se encontró nada a menos de {distance} de la ruta.',
|
||||
'tours.poi.fromRoute': 'a {distance} de la ruta',
|
||||
'tours.poi.along': 'en el {distance}',
|
||||
'tours.poi.source.osm': 'De OpenStreetMap',
|
||||
'tours.poi.source.trek': 'Del índice de lugares de TREK',
|
||||
'tours.poi.hoursHint': 'Según la fuente; compruébalo antes de ir.',
|
||||
'tours.poi.website': 'Sitio web',
|
||||
'tours.poi.addAfter': 'Añadir después de',
|
||||
'tours.poi.add': 'Añadir como parada',
|
||||
'tours.poi.notAPlace': 'Se convierte en una parada de la ruta, no en un lugar del viaje.',
|
||||
'tours.poi.blocked.fixed':
|
||||
'El tramo tras este punto es una línea fija, una vía ferrata o un porteo. Elige otro punto.',
|
||||
'tours.poi.blocked.free':
|
||||
'El tramo tras este punto está dibujado a mano. Elige otro punto o vuelve a enrutarlo antes.',
|
||||
'tours.poi.blocked.none': 'No hay ningún tramo tras este punto donde añadir una parada.',
|
||||
'tours.poi.outcome.measuring': '«{name}» ya es una parada; la ruta se está planificando de nuevo.',
|
||||
'tours.poi.outcome.measured': '«{name}» ya es una parada. La ruta cambia en:',
|
||||
'tours.poi.outcome.unmeasured': '«{name}» ya es una parada. No se pudo calcular cuánto añade.',
|
||||
'tours.poi.undoHint': 'Deshacer en el editor lo revierte.',
|
||||
'tours.poi.cat.viewpoint': 'Miradores',
|
||||
'tours.poi.cat.peak': 'Cumbres',
|
||||
'tours.poi.cat.shelter': 'Refugios y cobertizos',
|
||||
'tours.poi.cat.drinking_water': 'Agua potable',
|
||||
'tours.poi.cat.food': 'Comida',
|
||||
'tours.poi.cat.toilets': 'Aseos',
|
||||
'tours.poi.cat.picnic': 'Zonas de pícnic',
|
||||
'tours.poi.cat.campsite': 'Campings',
|
||||
'tours.poi.cat.sights': 'Lugares de interés',
|
||||
'tours.poi.cat.slipway': 'Embarcaderos',
|
||||
'tours.poi.cat.boat_rental': 'Alquiler de barcas',
|
||||
'tours.copy.action': 'Guardar como nueva excursión',
|
||||
'tours.copy.hint':
|
||||
'Copia esta excursión como una nueva excursión independiente, sin sus días. El original queda como está.',
|
||||
|
||||
@@ -299,6 +299,49 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': '„{name}“ võeti sellele reisile üle.',
|
||||
'tours.library.failed': 'Matka ei õnnestunud üle võtta.',
|
||||
'tours.provenance.takenOverFrom': 'Üle võetud',
|
||||
'tours.poi.title': 'Matka ääres',
|
||||
'tours.poi.intro': 'Peatuskohad marsruudi lähedal. Midagi ei muutu enne, kui mõne lisad.',
|
||||
'tours.poi.categories': 'Mida otsida',
|
||||
'tours.poi.within': 'Selle kaugusega marsruudist',
|
||||
'tours.poi.search': 'Otsi matka äärest',
|
||||
'tours.poi.searching': 'Otsitakse…',
|
||||
'tours.poi.again': 'Otsi uuesti',
|
||||
'tours.poi.offline': 'Otsimiseks on vaja ühendust.',
|
||||
'tours.poi.failed': 'Otsing ei õnnestunud. Proovi kohe uuesti.',
|
||||
'tours.poi.outdated': 'Leitud marsruudi varasema kuju jaoks. Otsi uuesti, et see sobiks praegusega.',
|
||||
'tours.poi.partial': 'Mõnda lõiku ei saanud läbi otsida; sealt võivad kohad puududa.',
|
||||
'tours.poi.capped': 'Matk on pikk: läbi otsiti ainult selle esimene osa.',
|
||||
'tours.poi.truncated': 'Kohti on rohkem, kui näidatakse. Vähenda kaugust või liike.',
|
||||
'tours.poi.empty': 'Marsruudist {distance} kaugusel ei leitud midagi.',
|
||||
'tours.poi.fromRoute': 'marsruudist {distance}',
|
||||
'tours.poi.along': '{distance} juures',
|
||||
'tours.poi.source.osm': 'OpenStreetMapist',
|
||||
'tours.poi.source.trek': 'TREKi kohtade registrist',
|
||||
'tours.poi.hoursHint': 'Allika järgi; kontrolli enne minekut.',
|
||||
'tours.poi.website': 'Veebileht',
|
||||
'tours.poi.addAfter': 'Lisa pärast',
|
||||
'tours.poi.add': 'Lisa peatusena',
|
||||
'tours.poi.notAPlace': 'Sellest saab matka peatus, mitte reisi koht.',
|
||||
'tours.poi.blocked.fixed':
|
||||
'Selle punkti järgne lõik on fikseeritud joon, ferrata või paadi kandmine. Vali teine punkt.',
|
||||
'tours.poi.blocked.free':
|
||||
'Selle punkti järgne lõik on käsitsi joonistatud. Vali teine punkt või lase lõik enne uuesti marsruutida.',
|
||||
'tours.poi.blocked.none': 'Pärast seda punkti pole lõiku, kuhu peatust lisada.',
|
||||
'tours.poi.outcome.measuring': '„{name}“ on nüüd peatus; marsruuti planeeritakse uuesti.',
|
||||
'tours.poi.outcome.measured': '„{name}“ on nüüd peatus. Matk muutub nii palju:',
|
||||
'tours.poi.outcome.unmeasured': '„{name}“ on nüüd peatus. Kui palju see lisab, ei õnnestunud arvutada.',
|
||||
'tours.poi.undoHint': 'Võta toimeta redaktoris tühistab selle.',
|
||||
'tours.poi.cat.viewpoint': 'Vaatekohad',
|
||||
'tours.poi.cat.peak': 'Tipud',
|
||||
'tours.poi.cat.shelter': 'Onnid ja varjualused',
|
||||
'tours.poi.cat.drinking_water': 'Joogivesi',
|
||||
'tours.poi.cat.food': 'Söök',
|
||||
'tours.poi.cat.toilets': 'Tualetid',
|
||||
'tours.poi.cat.picnic': 'Piknikukohad',
|
||||
'tours.poi.cat.campsite': 'Telkimisalad',
|
||||
'tours.poi.cat.sights': 'Vaatamisväärsused',
|
||||
'tours.poi.cat.slipway': 'Vettelaskmiskohad',
|
||||
'tours.poi.cat.boat_rental': 'Paadilaenutus',
|
||||
'tours.copy.action': 'Salvesta uue matkana',
|
||||
'tours.copy.hint': 'Kopeerib selle matka uue, iseseisva matkana ilma päevadeta. Originaal jääb samaks.',
|
||||
'tours.copy.name': '{name} (koopia)',
|
||||
|
||||
@@ -308,6 +308,49 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': '« {name} » a été repris dans ce voyage.',
|
||||
'tours.library.failed': "L'itinéraire n'a pas pu être repris.",
|
||||
'tours.provenance.takenOverFrom': 'Repris de',
|
||||
'tours.poi.title': "Le long de l'itinéraire",
|
||||
'tours.poi.intro': "Des lieux où s'arrêter, près de l'itinéraire. Rien ne change tant que tu n'en ajoutes pas un.",
|
||||
'tours.poi.categories': 'Quoi chercher',
|
||||
'tours.poi.within': "À cette distance de l'itinéraire",
|
||||
'tours.poi.search': "Chercher le long de l'itinéraire",
|
||||
'tours.poi.searching': 'Recherche…',
|
||||
'tours.poi.again': 'Chercher à nouveau',
|
||||
'tours.poi.offline': 'La recherche nécessite une connexion.',
|
||||
'tours.poi.failed': "La recherche n'a pas abouti. Réessaie dans un instant.",
|
||||
'tours.poi.outdated': "Trouvé pour l'itinéraire tel qu'il était avant. Cherche à nouveau pour l'actuel.",
|
||||
'tours.poi.partial': "Certains tronçons n'ont pas pu être cherchés ; des lieux peuvent y manquer.",
|
||||
'tours.poi.capped': "L'itinéraire est long : seule sa première partie a été cherchée.",
|
||||
'tours.poi.truncated': "Il y a plus de lieux qu'affichés. Réduis la distance ou les types.",
|
||||
'tours.poi.empty': "Rien trouvé à moins de {distance} de l'itinéraire.",
|
||||
'tours.poi.fromRoute': "à {distance} de l'itinéraire",
|
||||
'tours.poi.along': 'au {distance}',
|
||||
'tours.poi.source.osm': "D'OpenStreetMap",
|
||||
'tours.poi.source.trek': "De l'index des lieux de TREK",
|
||||
'tours.poi.hoursHint': 'Selon la source ; vérifie avant de partir.',
|
||||
'tours.poi.website': 'Site web',
|
||||
'tours.poi.addAfter': 'Ajouter après',
|
||||
'tours.poi.add': 'Ajouter comme arrêt',
|
||||
'tours.poi.notAPlace': "Il devient un arrêt de l'itinéraire, pas un lieu du voyage.",
|
||||
'tours.poi.blocked.fixed':
|
||||
'Le tronçon après ce point est une ligne fixe, une via ferrata ou un portage. Choisis un autre point.',
|
||||
'tours.poi.blocked.free':
|
||||
"Le tronçon après ce point est dessiné à la main. Choisis un autre point ou fais-le recalculer d'abord.",
|
||||
'tours.poi.blocked.none': "Il n'y a pas de tronçon après ce point où ajouter un arrêt.",
|
||||
'tours.poi.outcome.measuring': "« {name} » est maintenant un arrêt ; l'itinéraire est recalculé.",
|
||||
'tours.poi.outcome.measured': "« {name} » est maintenant un arrêt. L'itinéraire change de :",
|
||||
'tours.poi.outcome.unmeasured': "« {name} » est maintenant un arrêt. Ce qu'il ajoute n'a pas pu être calculé.",
|
||||
'tours.poi.undoHint': "Annuler dans l'éditeur le retire.",
|
||||
'tours.poi.cat.viewpoint': 'Points de vue',
|
||||
'tours.poi.cat.peak': 'Sommets',
|
||||
'tours.poi.cat.shelter': 'Refuges et abris',
|
||||
'tours.poi.cat.drinking_water': 'Eau potable',
|
||||
'tours.poi.cat.food': 'Restauration',
|
||||
'tours.poi.cat.toilets': 'Toilettes',
|
||||
'tours.poi.cat.picnic': 'Aires de pique-nique',
|
||||
'tours.poi.cat.campsite': 'Campings',
|
||||
'tours.poi.cat.sights': 'À voir',
|
||||
'tours.poi.cat.slipway': "Mises à l'eau",
|
||||
'tours.poi.cat.boat_rental': 'Location de bateaux',
|
||||
'tours.copy.action': 'Enregistrer comme nouvelle sortie',
|
||||
'tours.copy.hint':
|
||||
'Copie cette sortie en une nouvelle sortie indépendante, sans ses jours. L’original reste tel quel.',
|
||||
|
||||
@@ -309,6 +309,49 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': 'Το «{name}» μεταφέρθηκε σε αυτό το ταξίδι.',
|
||||
'tours.library.failed': 'Δεν ήταν δυνατή η μεταφορά της διαδρομής.',
|
||||
'tours.provenance.takenOverFrom': 'Μεταφέρθηκε από',
|
||||
'tours.poi.title': 'Κατά μήκος της διαδρομής',
|
||||
'tours.poi.intro': 'Μέρη για στάση κοντά στη διαδρομή. Τίποτα δεν αλλάζει μέχρι να προσθέσεις κάποιο.',
|
||||
'tours.poi.categories': 'Τι να αναζητηθεί',
|
||||
'tours.poi.within': 'Σε αυτή την απόσταση από τη διαδρομή',
|
||||
'tours.poi.search': 'Αναζήτηση κατά μήκος της διαδρομής',
|
||||
'tours.poi.searching': 'Αναζήτηση…',
|
||||
'tours.poi.again': 'Νέα αναζήτηση',
|
||||
'tours.poi.offline': 'Η αναζήτηση χρειάζεται σύνδεση.',
|
||||
'tours.poi.failed': 'Η αναζήτηση δεν πέτυχε. Δοκίμασε ξανά σε λίγο.',
|
||||
'tours.poi.outdated': 'Βρέθηκαν για τη διαδρομή όπως ήταν πριν. Αναζήτησε ξανά για την τωρινή.',
|
||||
'tours.poi.partial': 'Ορισμένα τμήματα δεν αναζητήθηκαν· μπορεί να λείπουν μέρη εκεί.',
|
||||
'tours.poi.capped': 'Η διαδρομή είναι μεγάλη: αναζητήθηκε μόνο το πρώτο της μέρος.',
|
||||
'tours.poi.truncated': 'Υπάρχουν περισσότερα μέρη από όσα εμφανίζονται. Μείωσε την απόσταση ή τα είδη.',
|
||||
'tours.poi.empty': 'Δεν βρέθηκε τίποτα σε απόσταση {distance} από τη διαδρομή.',
|
||||
'tours.poi.fromRoute': '{distance} από τη διαδρομή',
|
||||
'tours.poi.along': 'στο {distance}',
|
||||
'tours.poi.source.osm': 'Από το OpenStreetMap',
|
||||
'tours.poi.source.trek': 'Από το ευρετήριο τόπων του TREK',
|
||||
'tours.poi.hoursHint': 'Όπως τα δίνει η πηγή· έλεγξέ τα πριν πας.',
|
||||
'tours.poi.website': 'Ιστότοπος',
|
||||
'tours.poi.addAfter': 'Προσθήκη μετά από',
|
||||
'tours.poi.add': 'Προσθήκη ως στάση',
|
||||
'tours.poi.notAPlace': 'Γίνεται στάση της διαδρομής, όχι μέρος του ταξιδιού.',
|
||||
'tours.poi.blocked.fixed':
|
||||
'Το τμήμα μετά από αυτό το σημείο είναι σταθερή γραμμή, via ferrata ή μεταφορά σκάφους. Διάλεξε άλλο σημείο.',
|
||||
'tours.poi.blocked.free':
|
||||
'Το τμήμα μετά από αυτό το σημείο είναι σχεδιασμένο με το χέρι. Διάλεξε άλλο σημείο ή δρομολόγησέ το ξανά πρώτα.',
|
||||
'tours.poi.blocked.none': 'Δεν υπάρχει τμήμα μετά από αυτό το σημείο για να προστεθεί στάση.',
|
||||
'tours.poi.outcome.measuring': 'Το «{name}» είναι τώρα στάση· η διαδρομή σχεδιάζεται ξανά.',
|
||||
'tours.poi.outcome.measured': 'Το «{name}» είναι τώρα στάση. Η διαδρομή αλλάζει κατά:',
|
||||
'tours.poi.outcome.unmeasured': 'Το «{name}» είναι τώρα στάση. Δεν ήταν δυνατό να υπολογιστεί πόσο προσθέτει.',
|
||||
'tours.poi.undoHint': 'Η αναίρεση στον επεξεργαστή το επαναφέρει.',
|
||||
'tours.poi.cat.viewpoint': 'Σημεία θέας',
|
||||
'tours.poi.cat.peak': 'Κορυφές',
|
||||
'tours.poi.cat.shelter': 'Καταφύγια και στέγαστρα',
|
||||
'tours.poi.cat.drinking_water': 'Πόσιμο νερό',
|
||||
'tours.poi.cat.food': 'Φαγητό',
|
||||
'tours.poi.cat.toilets': 'Τουαλέτες',
|
||||
'tours.poi.cat.picnic': 'Χώροι πικνίκ',
|
||||
'tours.poi.cat.campsite': 'Κάμπινγκ',
|
||||
'tours.poi.cat.sights': 'Αξιοθέατα',
|
||||
'tours.poi.cat.slipway': 'Σημεία καθέλκυσης',
|
||||
'tours.poi.cat.boat_rental': 'Ενοικίαση σκαφών',
|
||||
'tours.copy.action': 'Αποθήκευση ως νέα εκδρομή',
|
||||
'tours.copy.hint':
|
||||
'Αντιγράφει αυτή την εκδρομή ως νέα, ανεξάρτητη εκδρομή χωρίς τις μέρες της. Το πρωτότυπο μένει ως έχει.',
|
||||
|
||||
@@ -304,6 +304,48 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': '„{name}” átkerült ebbe az útba.',
|
||||
'tours.library.failed': 'A túrát nem sikerült átvenni.',
|
||||
'tours.provenance.takenOverFrom': 'Átvéve innen',
|
||||
'tours.poi.title': 'A túra mentén',
|
||||
'tours.poi.intro': 'Megállóhelyek az útvonal közelében. Semmi sem változik, amíg hozzá nem adsz egyet.',
|
||||
'tours.poi.categories': 'Mit keress',
|
||||
'tours.poi.within': 'Ezen a távolságon belül az útvonaltól',
|
||||
'tours.poi.search': 'Keresés a túra mentén',
|
||||
'tours.poi.searching': 'Keresés…',
|
||||
'tours.poi.again': 'Keresés újra',
|
||||
'tours.poi.offline': 'A kereséshez kapcsolat kell.',
|
||||
'tours.poi.failed': 'A keresés nem sikerült. Próbáld újra egy kicsit később.',
|
||||
'tours.poi.outdated': 'Az útvonal korábbi állapotához találva. Keress újra, hogy a mostanihoz illjen.',
|
||||
'tours.poi.partial': 'Néhány szakaszt nem sikerült átkeresni; ott helyek hiányozhatnak.',
|
||||
'tours.poi.capped': 'A túra hosszú: csak az első részét kerestük át.',
|
||||
'tours.poi.truncated': 'Több hely van, mint amennyi látszik. Szűkítsd a távolságot vagy a fajtákat.',
|
||||
'tours.poi.empty': 'Az útvonaltól {distance} távolságon belül nincs találat.',
|
||||
'tours.poi.fromRoute': '{distance} az útvonaltól',
|
||||
'tours.poi.along': '{distance}-nél',
|
||||
'tours.poi.source.osm': 'Az OpenStreetMapből',
|
||||
'tours.poi.source.trek': 'A TREK helyjegyzékéből',
|
||||
'tours.poi.hoursHint': 'A forrás szerint; indulás előtt ellenőrizd.',
|
||||
'tours.poi.website': 'Weboldal',
|
||||
'tours.poi.addAfter': 'Beszúrás ez után',
|
||||
'tours.poi.add': 'Hozzáadás megállóként',
|
||||
'tours.poi.notAPlace': 'A túra megállója lesz, nem az út helye.',
|
||||
'tours.poi.blocked.fixed':
|
||||
'A pont utáni szakasz rögzített vonal, via ferrata vagy hajóátemelés. Válassz másik pontot.',
|
||||
'tours.poi.blocked.free': 'A pont utáni szakasz kézzel rajzolt. Válassz másik pontot, vagy előbb terveztesd újra.',
|
||||
'tours.poi.blocked.none': 'E pont után nincs szakasz, ahová megállót tehetnél.',
|
||||
'tours.poi.outcome.measuring': '„{name}” most már megálló; az útvonal újratervezése folyik.',
|
||||
'tours.poi.outcome.measured': '„{name}” most már megálló. A túra ennyivel változik:',
|
||||
'tours.poi.outcome.unmeasured': '„{name}” most már megálló. Nem sikerült kiszámolni, mennyit tesz hozzá.',
|
||||
'tours.poi.undoHint': 'A szerkesztőben a visszavonás visszaállítja.',
|
||||
'tours.poi.cat.viewpoint': 'Kilátópontok',
|
||||
'tours.poi.cat.peak': 'Csúcsok',
|
||||
'tours.poi.cat.shelter': 'Kunyhók és menedékek',
|
||||
'tours.poi.cat.drinking_water': 'Ivóvíz',
|
||||
'tours.poi.cat.food': 'Étel',
|
||||
'tours.poi.cat.toilets': 'Mosdók',
|
||||
'tours.poi.cat.picnic': 'Pihenőhelyek',
|
||||
'tours.poi.cat.campsite': 'Kempingek',
|
||||
'tours.poi.cat.sights': 'Látnivalók',
|
||||
'tours.poi.cat.slipway': 'Vízre szállási helyek',
|
||||
'tours.poi.cat.boat_rental': 'Csónakkölcsönző',
|
||||
'tours.copy.action': 'Mentés új túraként',
|
||||
'tours.copy.hint': 'Ezt a túrát új, önálló túraként másolja a napjai nélkül. Az eredeti változatlan marad.',
|
||||
'tours.copy.name': '{name} (másolat)',
|
||||
|
||||
@@ -296,6 +296,49 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': '“{name}” diambil ke perjalanan ini.',
|
||||
'tours.library.failed': 'Tur tidak dapat diambil.',
|
||||
'tours.provenance.takenOverFrom': 'Diambil dari',
|
||||
'tours.poi.title': 'Di sepanjang tur',
|
||||
'tours.poi.intro': 'Tempat untuk berhenti, dekat rute. Tidak ada yang berubah sampai kamu menambahkannya.',
|
||||
'tours.poi.categories': 'Apa yang dicari',
|
||||
'tours.poi.within': 'Dalam jarak ini dari rute',
|
||||
'tours.poi.search': 'Cari di sepanjang tur',
|
||||
'tours.poi.searching': 'Mencari…',
|
||||
'tours.poi.again': 'Cari lagi',
|
||||
'tours.poi.offline': 'Pencarian memerlukan koneksi.',
|
||||
'tours.poi.failed': 'Pencarian gagal. Coba lagi sebentar lagi.',
|
||||
'tours.poi.outdated': 'Ditemukan untuk rute seperti sebelumnya. Cari lagi agar cocok dengan yang sekarang.',
|
||||
'tours.poi.partial': 'Beberapa ruas tidak dapat dicari; tempat di sana mungkin terlewat.',
|
||||
'tours.poi.capped': 'Turnya panjang: hanya bagian pertamanya yang dicari.',
|
||||
'tours.poi.truncated': 'Ada lebih banyak tempat daripada yang ditampilkan. Persempit jarak atau jenisnya.',
|
||||
'tours.poi.empty': 'Tidak ada yang ditemukan dalam {distance} dari rute.',
|
||||
'tours.poi.fromRoute': '{distance} dari rute',
|
||||
'tours.poi.along': 'di {distance}',
|
||||
'tours.poi.source.osm': 'Dari OpenStreetMap',
|
||||
'tours.poi.source.trek': 'Dari indeks tempat TREK',
|
||||
'tours.poi.hoursHint': 'Sesuai sumbernya; periksa sebelum berangkat.',
|
||||
'tours.poi.website': 'Situs web',
|
||||
'tours.poi.addAfter': 'Tambahkan setelah',
|
||||
'tours.poi.add': 'Tambahkan sebagai pemberhentian',
|
||||
'tours.poi.notAPlace': 'Ini menjadi pemberhentian tur, bukan tempat perjalanan.',
|
||||
'tours.poi.blocked.fixed':
|
||||
'Ruas setelah titik ini adalah garis tetap, via ferrata atau pemindahan perahu. Pilih titik lain.',
|
||||
'tours.poi.blocked.free':
|
||||
'Ruas setelah titik ini digambar tangan. Pilih titik lain, atau rutekan ulang ruas itu dulu.',
|
||||
'tours.poi.blocked.none': 'Tidak ada ruas setelah titik ini untuk ditambahkan pemberhentian.',
|
||||
'tours.poi.outcome.measuring': '“{name}” kini jadi pemberhentian; rute sedang direncanakan ulang.',
|
||||
'tours.poi.outcome.measured': '“{name}” kini jadi pemberhentian. Tur berubah sebesar:',
|
||||
'tours.poi.outcome.unmeasured': '“{name}” kini jadi pemberhentian. Seberapa banyak tambahannya tidak dapat dihitung.',
|
||||
'tours.poi.undoHint': 'Urungkan di editor akan membatalkannya.',
|
||||
'tours.poi.cat.viewpoint': 'Titik pandang',
|
||||
'tours.poi.cat.peak': 'Puncak',
|
||||
'tours.poi.cat.shelter': 'Pondok dan tempat berteduh',
|
||||
'tours.poi.cat.drinking_water': 'Air minum',
|
||||
'tours.poi.cat.food': 'Makanan',
|
||||
'tours.poi.cat.toilets': 'Toilet umum',
|
||||
'tours.poi.cat.picnic': 'Tempat piknik',
|
||||
'tours.poi.cat.campsite': 'Perkemahan',
|
||||
'tours.poi.cat.sights': 'Tempat menarik',
|
||||
'tours.poi.cat.slipway': 'Titik masuk air',
|
||||
'tours.poi.cat.boat_rental': 'Penyewaan perahu',
|
||||
'tours.copy.action': 'Simpan sebagai tur baru',
|
||||
'tours.copy.hint': 'Menyalin tur ini sebagai tur baru yang mandiri tanpa hari-harinya. Aslinya tetap seperti semula.',
|
||||
'tours.copy.name': '{name} (salinan)',
|
||||
|
||||
@@ -304,6 +304,49 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': '“{name}” è stato ripreso in questo viaggio.',
|
||||
'tours.library.failed': 'Non è stato possibile riprendere il percorso.',
|
||||
'tours.provenance.takenOverFrom': 'Ripreso da',
|
||||
'tours.poi.title': 'Lungo il percorso',
|
||||
'tours.poi.intro': 'Luoghi per una sosta, vicino al percorso. Nulla cambia finché non ne aggiungi uno.',
|
||||
'tours.poi.categories': 'Cosa cercare',
|
||||
'tours.poi.within': 'Entro questa distanza dal percorso',
|
||||
'tours.poi.search': 'Cerca lungo il percorso',
|
||||
'tours.poi.searching': 'Ricerca in corso…',
|
||||
'tours.poi.again': 'Cerca di nuovo',
|
||||
'tours.poi.offline': 'La ricerca richiede una connessione.',
|
||||
'tours.poi.failed': 'La ricerca non è riuscita. Riprova tra un momento.',
|
||||
'tours.poi.outdated': "Trovato per il percorso com'era prima. Cerca di nuovo per quello attuale.",
|
||||
'tours.poi.partial': 'Alcuni tratti non sono stati cercati; lì potrebbero mancare dei luoghi.',
|
||||
'tours.poi.capped': 'Il percorso è lungo: è stata cercata solo la prima parte.',
|
||||
'tours.poi.truncated': 'Ci sono più luoghi di quelli mostrati. Riduci la distanza o i tipi.',
|
||||
'tours.poi.empty': 'Nulla trovato entro {distance} dal percorso.',
|
||||
'tours.poi.fromRoute': 'a {distance} dal percorso',
|
||||
'tours.poi.along': 'al {distance}',
|
||||
'tours.poi.source.osm': 'Da OpenStreetMap',
|
||||
'tours.poi.source.trek': "Dall'indice dei luoghi di TREK",
|
||||
'tours.poi.hoursHint': 'Come li riporta la fonte; verifica prima di andare.',
|
||||
'tours.poi.website': 'Sito web',
|
||||
'tours.poi.addAfter': 'Aggiungi dopo',
|
||||
'tours.poi.add': 'Aggiungi come sosta',
|
||||
'tours.poi.notAPlace': 'Diventa una sosta del percorso, non un luogo del viaggio.',
|
||||
'tours.poi.blocked.fixed':
|
||||
'Il tratto dopo questo punto è una linea fissa, una via ferrata o un trasbordo. Scegli un altro punto.',
|
||||
'tours.poi.blocked.free':
|
||||
'Il tratto dopo questo punto è disegnato a mano. Scegli un altro punto o fallo ricalcolare prima.',
|
||||
'tours.poi.blocked.none': "Dopo questo punto non c'è un tratto in cui aggiungere una sosta.",
|
||||
'tours.poi.outcome.measuring': '“{name}” ora è una sosta; il percorso viene ripianificato.',
|
||||
'tours.poi.outcome.measured': '“{name}” ora è una sosta. Il percorso cambia di:',
|
||||
'tours.poi.outcome.unmeasured': '“{name}” ora è una sosta. Non è stato possibile calcolare quanto aggiunge.',
|
||||
'tours.poi.undoHint': "Annulla nell'editor lo ripristina.",
|
||||
'tours.poi.cat.viewpoint': 'Punti panoramici',
|
||||
'tours.poi.cat.peak': 'Vette',
|
||||
'tours.poi.cat.shelter': 'Rifugi e ripari',
|
||||
'tours.poi.cat.drinking_water': 'Acqua potabile',
|
||||
'tours.poi.cat.food': 'Cibo',
|
||||
'tours.poi.cat.toilets': 'Servizi igienici',
|
||||
'tours.poi.cat.picnic': 'Aree picnic',
|
||||
'tours.poi.cat.campsite': 'Campeggi',
|
||||
'tours.poi.cat.sights': 'Da vedere',
|
||||
'tours.poi.cat.slipway': 'Punti di imbarco',
|
||||
'tours.poi.cat.boat_rental': 'Noleggio barche',
|
||||
'tours.copy.action': 'Salva come nuovo tour',
|
||||
'tours.copy.hint': 'Copia questo tour come nuovo tour indipendente, senza i suoi giorni. L’originale resta com’è.',
|
||||
'tours.copy.name': '{name} (copia)',
|
||||
|
||||
@@ -290,6 +290,49 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': '「{name}」をこの旅に取り込みました。',
|
||||
'tours.library.failed': 'ツアーを取り込めませんでした。',
|
||||
'tours.provenance.takenOverFrom': '取り込み元',
|
||||
'tours.poi.title': 'ツアー沿い',
|
||||
'tours.poi.intro': 'ルートの近くにある立ち寄り先です。追加するまで何も変わりません。',
|
||||
'tours.poi.categories': '探すもの',
|
||||
'tours.poi.within': 'ルートからこの距離以内',
|
||||
'tours.poi.search': 'ツアー沿いを検索',
|
||||
'tours.poi.searching': '検索中…',
|
||||
'tours.poi.again': 'もう一度検索',
|
||||
'tours.poi.offline': '検索には接続が必要です。',
|
||||
'tours.poi.failed': '検索できませんでした。少ししてからもう一度お試しください。',
|
||||
'tours.poi.outdated': '以前のルートで見つかった結果です。現在のルートに合わせるにはもう一度検索してください。',
|
||||
'tours.poi.partial': '一部の区間は検索できませんでした。その区間の場所が欠けている可能性があります。',
|
||||
'tours.poi.capped': 'ツアーが長いため、最初の部分だけを検索しました。',
|
||||
'tours.poi.truncated': '表示されている以上の場所があります。距離か種類を絞り込んでください。',
|
||||
'tours.poi.empty': 'ルートから {distance} 以内には見つかりませんでした。',
|
||||
'tours.poi.fromRoute': 'ルートから {distance}',
|
||||
'tours.poi.along': '{distance} 地点',
|
||||
'tours.poi.source.osm': 'OpenStreetMap より',
|
||||
'tours.poi.source.trek': 'TREK の場所インデックスより',
|
||||
'tours.poi.hoursHint': '情報源の記載どおりです。出発前に確認してください。',
|
||||
'tours.poi.website': 'ウェブサイト',
|
||||
'tours.poi.addAfter': '次の地点の後に追加',
|
||||
'tours.poi.add': '立ち寄り地点として追加',
|
||||
'tours.poi.notAPlace': '旅の場所ではなく、ツアーの立ち寄り地点になります。',
|
||||
'tours.poi.blocked.fixed':
|
||||
'この地点の後の区間は、クライミングルートや陸上搬送などの固定ラインです。別の地点を選んでください。',
|
||||
'tours.poi.blocked.free':
|
||||
'この地点の後の区間は手描きです。別の地点を選ぶか、先にその区間をルート計算に戻してください。',
|
||||
'tours.poi.blocked.none': 'この地点の後には立ち寄り地点を追加できる区間がありません。',
|
||||
'tours.poi.outcome.measuring': '「{name}」を立ち寄り地点にしました。ルートを再計算しています。',
|
||||
'tours.poi.outcome.measured': '「{name}」を立ち寄り地点にしました。ツアーの変化:',
|
||||
'tours.poi.outcome.unmeasured': '「{name}」を立ち寄り地点にしました。どれだけ増えるかは計算できませんでした。',
|
||||
'tours.poi.undoHint': 'エディターの「元に戻す」で取り消せます。',
|
||||
'tours.poi.cat.viewpoint': '展望地',
|
||||
'tours.poi.cat.peak': '山頂',
|
||||
'tours.poi.cat.shelter': '山小屋・避難小屋',
|
||||
'tours.poi.cat.drinking_water': '飲料水',
|
||||
'tours.poi.cat.food': '食事',
|
||||
'tours.poi.cat.toilets': 'トイレ',
|
||||
'tours.poi.cat.picnic': 'ピクニック場',
|
||||
'tours.poi.cat.campsite': 'キャンプ場',
|
||||
'tours.poi.cat.sights': '見どころ',
|
||||
'tours.poi.cat.slipway': '入水地点',
|
||||
'tours.poi.cat.boat_rental': 'ボートレンタル',
|
||||
'tours.copy.action': '新しいツアーとして保存',
|
||||
'tours.copy.hint': 'このツアーを日程なしの独立した新しいツアーとしてコピーします。元のツアーはそのままです。',
|
||||
'tours.copy.name': '{name}(コピー)',
|
||||
|
||||
@@ -288,6 +288,48 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': '“{name}”을(를) 이 여행으로 가져왔습니다.',
|
||||
'tours.library.failed': '투어를 가져오지 못했습니다.',
|
||||
'tours.provenance.takenOverFrom': '가져온 곳',
|
||||
'tours.poi.title': '투어 경로 주변',
|
||||
'tours.poi.intro': '경로 근처에 머물 만한 곳입니다. 추가하기 전에는 아무것도 바뀌지 않습니다.',
|
||||
'tours.poi.categories': '찾을 항목',
|
||||
'tours.poi.within': '경로에서 이 거리 이내',
|
||||
'tours.poi.search': '투어 경로 주변 검색',
|
||||
'tours.poi.searching': '검색 중…',
|
||||
'tours.poi.again': '다시 검색',
|
||||
'tours.poi.offline': '검색하려면 연결이 필요합니다.',
|
||||
'tours.poi.failed': '검색하지 못했습니다. 잠시 후 다시 시도하세요.',
|
||||
'tours.poi.outdated': '이전 경로 기준의 결과입니다. 지금 경로에 맞추려면 다시 검색하세요.',
|
||||
'tours.poi.partial': '일부 구간은 검색하지 못했습니다. 그 구간의 장소가 빠졌을 수 있습니다.',
|
||||
'tours.poi.capped': '투어가 길어서 앞부분만 검색했습니다.',
|
||||
'tours.poi.truncated': '표시된 것보다 장소가 더 많습니다. 거리나 종류를 줄이세요.',
|
||||
'tours.poi.empty': '경로에서 {distance} 이내에 찾은 것이 없습니다.',
|
||||
'tours.poi.fromRoute': '경로에서 {distance}',
|
||||
'tours.poi.along': '{distance} 지점',
|
||||
'tours.poi.source.osm': 'OpenStreetMap 제공',
|
||||
'tours.poi.source.trek': 'TREK 장소 색인 제공',
|
||||
'tours.poi.hoursHint': '출처에 나온 그대로입니다. 출발 전에 확인하세요.',
|
||||
'tours.poi.website': '웹사이트',
|
||||
'tours.poi.addAfter': '다음 지점 뒤에 추가',
|
||||
'tours.poi.add': '정차 지점으로 추가',
|
||||
'tours.poi.notAPlace': '여행의 장소가 아니라 투어의 정차 지점이 됩니다.',
|
||||
'tours.poi.blocked.fixed': '이 지점 뒤 구간은 비아 페라타나 보트 운반 같은 고정 경로입니다. 다른 지점을 선택하세요.',
|
||||
'tours.poi.blocked.free':
|
||||
'이 지점 뒤 구간은 직접 그린 경로입니다. 다른 지점을 선택하거나 먼저 경로 계산으로 되돌리세요.',
|
||||
'tours.poi.blocked.none': '이 지점 뒤에는 정차 지점을 추가할 구간이 없습니다.',
|
||||
'tours.poi.outcome.measuring': '“{name}”이(가) 정차 지점이 되었습니다. 경로를 다시 계산하는 중입니다.',
|
||||
'tours.poi.outcome.measured': '“{name}”이(가) 정차 지점이 되었습니다. 투어 변화:',
|
||||
'tours.poi.outcome.unmeasured': '“{name}”이(가) 정차 지점이 되었습니다. 얼마나 늘어나는지 계산하지 못했습니다.',
|
||||
'tours.poi.undoHint': '편집기에서 실행 취소하면 되돌릴 수 있습니다.',
|
||||
'tours.poi.cat.viewpoint': '전망대',
|
||||
'tours.poi.cat.peak': '정상',
|
||||
'tours.poi.cat.shelter': '산장과 대피소',
|
||||
'tours.poi.cat.drinking_water': '식수',
|
||||
'tours.poi.cat.food': '음식',
|
||||
'tours.poi.cat.toilets': '화장실',
|
||||
'tours.poi.cat.picnic': '피크닉 장소',
|
||||
'tours.poi.cat.campsite': '캠핑장',
|
||||
'tours.poi.cat.sights': '볼거리',
|
||||
'tours.poi.cat.slipway': '입수 지점',
|
||||
'tours.poi.cat.boat_rental': '보트 대여',
|
||||
'tours.copy.action': '새 투어로 저장',
|
||||
'tours.copy.hint': '이 투어를 날짜 없이 독립된 새 투어로 복사합니다. 원본은 그대로입니다.',
|
||||
'tours.copy.name': '{name} (사본)',
|
||||
|
||||
@@ -304,6 +304,49 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': '‘{name}’ is overgenomen in deze reis.',
|
||||
'tours.library.failed': 'De tocht kon niet worden overgenomen.',
|
||||
'tours.provenance.takenOverFrom': 'Overgenomen uit',
|
||||
'tours.poi.title': 'Langs de tocht',
|
||||
'tours.poi.intro': 'Plekken voor een stop, dicht bij de route. Er verandert niets tot je er een toevoegt.',
|
||||
'tours.poi.categories': 'Waarnaar zoeken',
|
||||
'tours.poi.within': 'Binnen deze afstand van de route',
|
||||
'tours.poi.search': 'Zoeken langs de tocht',
|
||||
'tours.poi.searching': 'Bezig met zoeken…',
|
||||
'tours.poi.again': 'Opnieuw zoeken',
|
||||
'tours.poi.offline': 'Zoeken vraagt een verbinding.',
|
||||
'tours.poi.failed': 'Het zoeken lukte niet. Probeer het zo opnieuw.',
|
||||
'tours.poi.outdated': 'Gevonden voor de route zoals die eerst was. Zoek opnieuw voor de huidige.',
|
||||
'tours.poi.partial': 'Sommige stukken konden niet worden doorzocht; daar kunnen plekken ontbreken.',
|
||||
'tours.poi.capped': 'De tocht is lang: alleen het eerste deel is doorzocht.',
|
||||
'tours.poi.truncated': 'Er zijn meer plekken dan getoond. Verklein de afstand of de soorten.',
|
||||
'tours.poi.empty': 'Niets gevonden binnen {distance} van de route.',
|
||||
'tours.poi.fromRoute': '{distance} van de route',
|
||||
'tours.poi.along': 'bij {distance}',
|
||||
'tours.poi.source.osm': 'Uit OpenStreetMap',
|
||||
'tours.poi.source.trek': 'Uit de plekkenindex van TREK',
|
||||
'tours.poi.hoursHint': 'Zoals de bron ze geeft; controleer ze voor je gaat.',
|
||||
'tours.poi.website': 'Webpagina',
|
||||
'tours.poi.addAfter': 'Toevoegen na',
|
||||
'tours.poi.add': 'Toevoegen als stop',
|
||||
'tours.poi.notAPlace': 'Het wordt een stop van de tocht, geen plek van de reis.',
|
||||
'tours.poi.blocked.fixed':
|
||||
'Het stuk na dit punt is een vaste lijn, een via ferrata of een overdraagplaats. Kies een ander punt.',
|
||||
'tours.poi.blocked.free':
|
||||
'Het stuk na dit punt is met de hand getekend. Kies een ander punt of laat het eerst weer plannen.',
|
||||
'tours.poi.blocked.none': 'Na dit punt is er geen stuk om een stop aan toe te voegen.',
|
||||
'tours.poi.outcome.measuring': '‘{name}’ is nu een stop; de route wordt opnieuw gepland.',
|
||||
'tours.poi.outcome.measured': '‘{name}’ is nu een stop. De tocht verandert met:',
|
||||
'tours.poi.outcome.unmeasured': '‘{name}’ is nu een stop. Hoeveel het toevoegt, kon niet worden berekend.',
|
||||
'tours.poi.undoHint': 'Ongedaan maken in de editor draait het terug.',
|
||||
'tours.poi.cat.viewpoint': 'Uitzichtpunten',
|
||||
'tours.poi.cat.peak': 'Toppen',
|
||||
'tours.poi.cat.shelter': 'Hutten en schuilplaatsen',
|
||||
'tours.poi.cat.drinking_water': 'Drinkwater',
|
||||
'tours.poi.cat.food': 'Eten',
|
||||
'tours.poi.cat.toilets': 'Toiletten',
|
||||
'tours.poi.cat.picnic': 'Picknickplekken',
|
||||
'tours.poi.cat.campsite': 'Campings',
|
||||
'tours.poi.cat.sights': 'Bezienswaardigheden',
|
||||
'tours.poi.cat.slipway': 'Instapplaatsen',
|
||||
'tours.poi.cat.boat_rental': 'Bootverhuur',
|
||||
'tours.copy.action': 'Opslaan als nieuwe tocht',
|
||||
'tours.copy.hint':
|
||||
'Kopieert deze tocht als nieuwe, zelfstandige tocht zonder zijn dagen. Het origineel blijft zoals het is.',
|
||||
|
||||
@@ -311,6 +311,48 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': '„{name}” przejęto do tej podróży.',
|
||||
'tours.library.failed': 'Nie udało się przejąć trasy.',
|
||||
'tours.provenance.takenOverFrom': 'Przejęto z',
|
||||
'tours.poi.title': 'Wzdłuż trasy',
|
||||
'tours.poi.intro': 'Miejsca na postój blisko trasy. Nic się nie zmienia, dopóki nie dodasz któregoś.',
|
||||
'tours.poi.categories': 'Czego szukać',
|
||||
'tours.poi.within': 'W tej odległości od trasy',
|
||||
'tours.poi.search': 'Szukaj wzdłuż trasy',
|
||||
'tours.poi.searching': 'Wyszukiwanie…',
|
||||
'tours.poi.again': 'Szukaj ponownie',
|
||||
'tours.poi.offline': 'Wyszukiwanie wymaga połączenia.',
|
||||
'tours.poi.failed': 'Wyszukiwanie się nie powiodło. Spróbuj ponownie za chwilę.',
|
||||
'tours.poi.outdated': 'Znalezione dla trasy w poprzedniej postaci. Wyszukaj ponownie dla obecnej.',
|
||||
'tours.poi.partial': 'Niektórych odcinków nie udało się przeszukać; może tam brakować miejsc.',
|
||||
'tours.poi.capped': 'Trasa jest długa: przeszukano tylko jej pierwszą część.',
|
||||
'tours.poi.truncated': 'Miejsc jest więcej, niż pokazano. Zmniejsz odległość lub liczbę rodzajów.',
|
||||
'tours.poi.empty': 'Nic nie znaleziono w odległości {distance} od trasy.',
|
||||
'tours.poi.fromRoute': '{distance} od trasy',
|
||||
'tours.poi.along': 'na {distance}',
|
||||
'tours.poi.source.osm': 'Z OpenStreetMap',
|
||||
'tours.poi.source.trek': 'Z indeksu miejsc TREK',
|
||||
'tours.poi.hoursHint': 'Według źródła; sprawdź przed wyjściem.',
|
||||
'tours.poi.website': 'Strona WWW',
|
||||
'tours.poi.addAfter': 'Dodaj po',
|
||||
'tours.poi.add': 'Dodaj jako postój',
|
||||
'tours.poi.notAPlace': 'Stanie się postojem trasy, nie miejscem podróży.',
|
||||
'tours.poi.blocked.fixed': 'Odcinek za tym punktem to stała linia, via ferrata lub przenoska. Wybierz inny punkt.',
|
||||
'tours.poi.blocked.free':
|
||||
'Odcinek za tym punktem jest rysowany ręcznie. Wybierz inny punkt albo najpierw wyznacz go ponownie.',
|
||||
'tours.poi.blocked.none': 'Za tym punktem nie ma odcinka, do którego można dodać postój.',
|
||||
'tours.poi.outcome.measuring': '„{name}” jest teraz postojem; trasa jest wyznaczana od nowa.',
|
||||
'tours.poi.outcome.measured': '„{name}” jest teraz postojem. Trasa zmienia się o:',
|
||||
'tours.poi.outcome.unmeasured': '„{name}” jest teraz postojem. Nie udało się obliczyć, ile dodaje.',
|
||||
'tours.poi.undoHint': 'Cofnij w edytorze to wycofa.',
|
||||
'tours.poi.cat.viewpoint': 'Punkty widokowe',
|
||||
'tours.poi.cat.peak': 'Szczyty',
|
||||
'tours.poi.cat.shelter': 'Schroniska i wiaty',
|
||||
'tours.poi.cat.drinking_water': 'Woda pitna',
|
||||
'tours.poi.cat.food': 'Jedzenie',
|
||||
'tours.poi.cat.toilets': 'Toalety',
|
||||
'tours.poi.cat.picnic': 'Miejsca na piknik',
|
||||
'tours.poi.cat.campsite': 'Kempingi',
|
||||
'tours.poi.cat.sights': 'Atrakcje',
|
||||
'tours.poi.cat.slipway': 'Miejsca wodowania',
|
||||
'tours.poi.cat.boat_rental': 'Wypożyczalnia łodzi',
|
||||
'tours.copy.action': 'Zapisz jako nową trasę',
|
||||
'tours.copy.hint': 'Kopiuje tę trasę jako nową, niezależną trasę bez jej dni. Oryginał zostaje bez zmian.',
|
||||
'tours.copy.name': '{name} (kopia)',
|
||||
|
||||
@@ -314,6 +314,49 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': '«{name}» добавлен в эту поездку.',
|
||||
'tours.library.failed': 'Не удалось взять маршрут.',
|
||||
'tours.provenance.takenOverFrom': 'Взят из',
|
||||
'tours.poi.title': 'Вдоль маршрута',
|
||||
'tours.poi.intro': 'Места для остановки рядом с маршрутом. Ничего не меняется, пока вы не добавите одно из них.',
|
||||
'tours.poi.categories': 'Что искать',
|
||||
'tours.poi.within': 'В пределах этого расстояния от маршрута',
|
||||
'tours.poi.search': 'Искать вдоль маршрута',
|
||||
'tours.poi.searching': 'Поиск…',
|
||||
'tours.poi.again': 'Искать снова',
|
||||
'tours.poi.offline': 'Для поиска нужно подключение.',
|
||||
'tours.poi.failed': 'Поиск не удался. Попробуйте ещё раз чуть позже.',
|
||||
'tours.poi.outdated': 'Найдено для прежнего варианта маршрута. Чтобы учесть текущий, найдите снова.',
|
||||
'tours.poi.partial': 'Некоторые участки не удалось проверить; там могут отсутствовать места.',
|
||||
'tours.poi.capped': 'Маршрут длинный: проверена только его первая часть.',
|
||||
'tours.poi.truncated': 'Мест больше, чем показано. Уменьшите расстояние или число видов.',
|
||||
'tours.poi.empty': 'В пределах {distance} от маршрута ничего не найдено.',
|
||||
'tours.poi.fromRoute': '{distance} от маршрута',
|
||||
'tours.poi.along': 'на {distance}',
|
||||
'tours.poi.source.osm': 'Из OpenStreetMap',
|
||||
'tours.poi.source.trek': 'Из каталога мест TREK',
|
||||
'tours.poi.hoursHint': 'По данным источника; проверьте перед выходом.',
|
||||
'tours.poi.website': 'Сайт',
|
||||
'tours.poi.addAfter': 'Добавить после',
|
||||
'tours.poi.add': 'Добавить как остановку',
|
||||
'tours.poi.notAPlace': 'Это станет остановкой маршрута, а не местом поездки.',
|
||||
'tours.poi.blocked.fixed':
|
||||
'Участок после этой точки задан жёстко: это виа феррата или перенос лодки. Выберите другую точку.',
|
||||
'tours.poi.blocked.free':
|
||||
'Участок после этой точки нарисован вручную. Выберите другую точку или сначала верните для него построение маршрута.',
|
||||
'tours.poi.blocked.none': 'После этой точки нет участка, куда можно добавить остановку.',
|
||||
'tours.poi.outcome.measuring': '«{name}» теперь остановка; маршрут строится заново.',
|
||||
'tours.poi.outcome.measured': '«{name}» теперь остановка. Маршрут меняется на:',
|
||||
'tours.poi.outcome.unmeasured': '«{name}» теперь остановка. Не удалось рассчитать, сколько она добавляет.',
|
||||
'tours.poi.undoHint': 'Отмена в редакторе вернёт всё назад.',
|
||||
'tours.poi.cat.viewpoint': 'Смотровые площадки',
|
||||
'tours.poi.cat.peak': 'Вершины',
|
||||
'tours.poi.cat.shelter': 'Хижины и укрытия',
|
||||
'tours.poi.cat.drinking_water': 'Питьевая вода',
|
||||
'tours.poi.cat.food': 'Еда',
|
||||
'tours.poi.cat.toilets': 'Туалеты',
|
||||
'tours.poi.cat.picnic': 'Места для пикника',
|
||||
'tours.poi.cat.campsite': 'Кемпинги',
|
||||
'tours.poi.cat.sights': 'Достопримечательности',
|
||||
'tours.poi.cat.slipway': 'Места спуска на воду',
|
||||
'tours.poi.cat.boat_rental': 'Прокат лодок',
|
||||
'tours.copy.action': 'Сохранить как новый поход',
|
||||
'tours.copy.hint': 'Копирует этот поход как новый, самостоятельный поход без его дней. Оригинал остаётся как есть.',
|
||||
'tours.copy.name': '{name} (копия)',
|
||||
|
||||
@@ -298,6 +298,48 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': '„{name}“ bola prevzatá do tejto cesty.',
|
||||
'tours.library.failed': 'Túru sa nepodarilo prevziať.',
|
||||
'tours.provenance.takenOverFrom': 'Prevzaté z',
|
||||
'tours.poi.title': 'Pozdĺž túry',
|
||||
'tours.poi.intro': 'Miesta na zastávku blízko trasy. Nič sa nezmení, kým nejaké nepridáš.',
|
||||
'tours.poi.categories': 'Čo hľadať',
|
||||
'tours.poi.within': 'Do tejto vzdialenosti od trasy',
|
||||
'tours.poi.search': 'Hľadať pozdĺž túry',
|
||||
'tours.poi.searching': 'Hľadá sa…',
|
||||
'tours.poi.again': 'Hľadať znova',
|
||||
'tours.poi.offline': 'Hľadanie potrebuje pripojenie.',
|
||||
'tours.poi.failed': 'Hľadanie sa nepodarilo. Skús to o chvíľu znova.',
|
||||
'tours.poi.outdated': 'Nájdené pre trasu v predchádzajúcej podobe. Hľadaj znova pre súčasnú.',
|
||||
'tours.poi.partial': 'Niektoré úseky sa nepodarilo prehľadať; miesta tam môžu chýbať.',
|
||||
'tours.poi.capped': 'Túra je dlhá: prehľadaná bola len jej prvá časť.',
|
||||
'tours.poi.truncated': 'Miest je viac, než sa zobrazuje. Zmenši vzdialenosť alebo druhy.',
|
||||
'tours.poi.empty': 'Do {distance} od trasy sa nič nenašlo.',
|
||||
'tours.poi.fromRoute': '{distance} od trasy',
|
||||
'tours.poi.along': 'na {distance}',
|
||||
'tours.poi.source.osm': 'Z OpenStreetMap',
|
||||
'tours.poi.source.trek': 'Z registra miest TREK',
|
||||
'tours.poi.hoursHint': 'Podľa zdroja; pred cestou si ich over.',
|
||||
'tours.poi.website': 'Webová stránka',
|
||||
'tours.poi.addAfter': 'Pridať za',
|
||||
'tours.poi.add': 'Pridať ako zastávku',
|
||||
'tours.poi.notAPlace': 'Stane sa zastávkou túry, nie miestom cesty.',
|
||||
'tours.poi.blocked.fixed': 'Úsek za týmto bodom je pevná čiara, ferrata alebo prenášanie lode. Vyber iný bod.',
|
||||
'tours.poi.blocked.free':
|
||||
'Úsek za týmto bodom je kreslený ručne. Vyber iný bod alebo ho najprv nechaj znova trasovať.',
|
||||
'tours.poi.blocked.none': 'Za týmto bodom nie je úsek, kam pridať zastávku.',
|
||||
'tours.poi.outcome.measuring': '„{name}“ je teraz zastávka; trasa sa plánuje znova.',
|
||||
'tours.poi.outcome.measured': '„{name}“ je teraz zastávka. Túra sa mení o:',
|
||||
'tours.poi.outcome.unmeasured': '„{name}“ je teraz zastávka. Koľko pridáva, sa nepodarilo vypočítať.',
|
||||
'tours.poi.undoHint': 'Späť v editore to vráti.',
|
||||
'tours.poi.cat.viewpoint': 'Vyhliadky',
|
||||
'tours.poi.cat.peak': 'Vrcholy',
|
||||
'tours.poi.cat.shelter': 'Chaty a prístrešky',
|
||||
'tours.poi.cat.drinking_water': 'Pitná voda',
|
||||
'tours.poi.cat.food': 'Jedlo',
|
||||
'tours.poi.cat.toilets': 'Toalety',
|
||||
'tours.poi.cat.picnic': 'Miesta na piknik',
|
||||
'tours.poi.cat.campsite': 'Kempy',
|
||||
'tours.poi.cat.sights': 'Pamätihodnosti',
|
||||
'tours.poi.cat.slipway': 'Nástupné miesta',
|
||||
'tours.poi.cat.boat_rental': 'Požičovňa lodí',
|
||||
'tours.copy.action': 'Uložiť ako novú túru',
|
||||
'tours.copy.hint': 'Skopíruje túto túru ako novú, samostatnú túru bez jej dní. Originál zostane, ako je.',
|
||||
'tours.copy.name': '{name} (kópia)',
|
||||
|
||||
@@ -295,6 +295,49 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': '”{name}” hämtades till den här resan.',
|
||||
'tours.library.failed': 'Turen kunde inte hämtas.',
|
||||
'tours.provenance.takenOverFrom': 'Hämtad från',
|
||||
'tours.poi.title': 'Längs turen',
|
||||
'tours.poi.intro': 'Platser för ett stopp nära rutten. Inget ändras förrän du lägger till en.',
|
||||
'tours.poi.categories': 'Vad att leta efter',
|
||||
'tours.poi.within': 'Inom det här avståndet från rutten',
|
||||
'tours.poi.search': 'Sök längs turen',
|
||||
'tours.poi.searching': 'Söker…',
|
||||
'tours.poi.again': 'Sök igen',
|
||||
'tours.poi.offline': 'Sökningen kräver en anslutning.',
|
||||
'tours.poi.failed': 'Sökningen fungerade inte. Försök igen om en stund.',
|
||||
'tours.poi.outdated': 'Hittat för rutten som den var tidigare. Sök igen för den nuvarande.',
|
||||
'tours.poi.partial': 'Vissa sträckor kunde inte genomsökas; platser där kan saknas.',
|
||||
'tours.poi.capped': 'Turen är lång: bara den första delen genomsöktes.',
|
||||
'tours.poi.truncated': 'Det finns fler platser än som visas. Minska avståndet eller slagen.',
|
||||
'tours.poi.empty': 'Inget hittades inom {distance} från rutten.',
|
||||
'tours.poi.fromRoute': '{distance} från rutten',
|
||||
'tours.poi.along': 'vid {distance}',
|
||||
'tours.poi.source.osm': 'Från OpenStreetMap',
|
||||
'tours.poi.source.trek': 'Från TREKs platsindex',
|
||||
'tours.poi.hoursHint': 'Som källan anger dem; kontrollera innan du går.',
|
||||
'tours.poi.website': 'Webbplats',
|
||||
'tours.poi.addAfter': 'Lägg till efter',
|
||||
'tours.poi.add': 'Lägg till som stopp',
|
||||
'tours.poi.notAPlace': 'Det blir ett stopp på turen, inte en plats i resan.',
|
||||
'tours.poi.blocked.fixed':
|
||||
'Sträckan efter den här punkten är en fast linje, en via ferrata eller en bärning. Välj en annan punkt.',
|
||||
'tours.poi.blocked.free':
|
||||
'Sträckan efter den här punkten är handritad. Välj en annan punkt eller låt den planeras igen först.',
|
||||
'tours.poi.blocked.none': 'Det finns ingen sträcka efter den här punkten att lägga ett stopp i.',
|
||||
'tours.poi.outcome.measuring': '”{name}” är nu ett stopp; rutten planeras om.',
|
||||
'tours.poi.outcome.measured': '”{name}” är nu ett stopp. Turen ändras med:',
|
||||
'tours.poi.outcome.unmeasured': '”{name}” är nu ett stopp. Hur mycket det lägger till gick inte att räkna ut.',
|
||||
'tours.poi.undoHint': 'Ångra i redigeraren tar tillbaka det.',
|
||||
'tours.poi.cat.viewpoint': 'Utsiktspunkter',
|
||||
'tours.poi.cat.peak': 'Toppar',
|
||||
'tours.poi.cat.shelter': 'Stugor och vindskydd',
|
||||
'tours.poi.cat.drinking_water': 'Dricksvatten',
|
||||
'tours.poi.cat.food': 'Mat',
|
||||
'tours.poi.cat.toilets': 'Toaletter',
|
||||
'tours.poi.cat.picnic': 'Picknickplatser',
|
||||
'tours.poi.cat.campsite': 'Campingplatser',
|
||||
'tours.poi.cat.sights': 'Sevärdheter',
|
||||
'tours.poi.cat.slipway': 'Isättningsplatser',
|
||||
'tours.poi.cat.boat_rental': 'Båtuthyrning',
|
||||
'tours.copy.action': 'Spara som ny tur',
|
||||
'tours.copy.hint': 'Kopierar turen som en ny, fristående tur utan dess dagar. Originalet förblir som det är.',
|
||||
'tours.copy.name': '{name} (kopia)',
|
||||
|
||||
@@ -283,6 +283,47 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': 'นำ “{name}” มาใช้ในทริปนี้แล้ว',
|
||||
'tours.library.failed': 'นำทัวร์มาใช้ไม่ได้',
|
||||
'tours.provenance.takenOverFrom': 'นำมาจาก',
|
||||
'tours.poi.title': 'ตามเส้นทางทัวร์',
|
||||
'tours.poi.intro': 'สถานที่แวะพักใกล้เส้นทาง จะไม่มีอะไรเปลี่ยนจนกว่าคุณจะเพิ่ม',
|
||||
'tours.poi.categories': 'สิ่งที่ต้องการค้นหา',
|
||||
'tours.poi.within': 'ภายในระยะนี้จากเส้นทาง',
|
||||
'tours.poi.search': 'ค้นหาตามเส้นทางทัวร์',
|
||||
'tours.poi.searching': 'กำลังค้นหา…',
|
||||
'tours.poi.again': 'ค้นหาอีกครั้ง',
|
||||
'tours.poi.offline': 'การค้นหาต้องเชื่อมต่ออินเทอร์เน็ต',
|
||||
'tours.poi.failed': 'ค้นหาไม่สำเร็จ ลองอีกครั้งในอีกสักครู่',
|
||||
'tours.poi.outdated': 'ผลนี้ได้จากเส้นทางแบบเดิม ค้นหาอีกครั้งให้ตรงกับเส้นทางปัจจุบัน',
|
||||
'tours.poi.partial': 'ค้นหาบางช่วงไม่ได้ อาจมีสถานที่ในช่วงนั้นหายไป',
|
||||
'tours.poi.capped': 'ทัวร์ยาว ค้นหาได้เฉพาะช่วงแรก',
|
||||
'tours.poi.truncated': 'มีสถานที่มากกว่าที่แสดง ลดระยะหรือประเภทลง',
|
||||
'tours.poi.empty': 'ไม่พบสิ่งใดภายใน {distance} จากเส้นทาง',
|
||||
'tours.poi.fromRoute': 'ห่างจากเส้นทาง {distance}',
|
||||
'tours.poi.along': 'ที่ {distance}',
|
||||
'tours.poi.source.osm': 'จาก OpenStreetMap',
|
||||
'tours.poi.source.trek': 'จากดัชนีสถานที่ของ TREK',
|
||||
'tours.poi.hoursHint': 'ตามที่แหล่งข้อมูลระบุ ตรวจสอบก่อนออกเดินทาง',
|
||||
'tours.poi.website': 'เว็บไซต์',
|
||||
'tours.poi.addAfter': 'เพิ่มต่อจาก',
|
||||
'tours.poi.add': 'เพิ่มเป็นจุดแวะ',
|
||||
'tours.poi.notAPlace': 'จะกลายเป็นจุดแวะของทัวร์ ไม่ใช่สถานที่ของทริป',
|
||||
'tours.poi.blocked.fixed': 'ช่วงหลังจุดนี้เป็นเส้นคงที่ เช่น เส้นทางปีนเขาหรือการแบกเรือ เลือกจุดอื่น',
|
||||
'tours.poi.blocked.free': 'ช่วงหลังจุดนี้วาดด้วยมือ เลือกจุดอื่น หรือให้คำนวณเส้นทางช่วงนั้นใหม่ก่อน',
|
||||
'tours.poi.blocked.none': 'ไม่มีช่วงหลังจุดนี้ให้เพิ่มจุดแวะ',
|
||||
'tours.poi.outcome.measuring': '“{name}” เป็นจุดแวะแล้ว กำลังวางแผนเส้นทางใหม่',
|
||||
'tours.poi.outcome.measured': '“{name}” เป็นจุดแวะแล้ว ทัวร์เปลี่ยนไป:',
|
||||
'tours.poi.outcome.unmeasured': '“{name}” เป็นจุดแวะแล้ว คำนวณไม่ได้ว่าเพิ่มขึ้นเท่าไร',
|
||||
'tours.poi.undoHint': 'เลิกทำในตัวแก้ไขเพื่อย้อนกลับได้',
|
||||
'tours.poi.cat.viewpoint': 'จุดชมวิว',
|
||||
'tours.poi.cat.peak': 'ยอดเขา',
|
||||
'tours.poi.cat.shelter': 'กระท่อมและที่พักหลบ',
|
||||
'tours.poi.cat.drinking_water': 'น้ำดื่ม',
|
||||
'tours.poi.cat.food': 'อาหาร',
|
||||
'tours.poi.cat.toilets': 'ห้องน้ำ',
|
||||
'tours.poi.cat.picnic': 'จุดปิกนิก',
|
||||
'tours.poi.cat.campsite': 'ที่ตั้งแคมป์',
|
||||
'tours.poi.cat.sights': 'สถานที่น่าสนใจ',
|
||||
'tours.poi.cat.slipway': 'จุดลงเรือ',
|
||||
'tours.poi.cat.boat_rental': 'เช่าเรือ',
|
||||
'tours.copy.action': 'บันทึกเป็นทัวร์ใหม่',
|
||||
'tours.copy.hint': 'คัดลอกทัวร์นี้เป็นทัวร์ใหม่ที่แยกเป็นอิสระโดยไม่รวมวัน ต้นฉบับจะคงเดิม',
|
||||
'tours.copy.name': '{name} (สำเนา)',
|
||||
|
||||
@@ -20,7 +20,7 @@ const tokens = (value: string) => [...value.matchAll(/\{[^{}]+\}/g)].map((match)
|
||||
// placeholder spec; here only the general keys are.
|
||||
const groups = pluralGroups(Object.keys(english));
|
||||
const generalKeys = (keys: string[]) => keys.filter((key) => !pluralFormOf(key, groups));
|
||||
const GENERAL_KEY_COUNT = 597;
|
||||
const GENERAL_KEY_COUNT = 638;
|
||||
|
||||
function literalKeys(source: string): string[] {
|
||||
const tree = ts.createSourceFile('locale.ts', source, ts.ScriptTarget.Latest, true);
|
||||
@@ -34,7 +34,7 @@ function literalKeys(source: string): string[] {
|
||||
}
|
||||
|
||||
describe('Tours locale contracts', () => {
|
||||
it('covers all 27 supported locales with 597 general source keys', () => {
|
||||
it('covers all 27 supported locales with 638 general source keys', () => {
|
||||
expect(Object.keys(domains)).toHaveLength(27);
|
||||
expect(Object.keys(domains).sort()).toEqual(SUPPORTED_LANGUAGE_CODES.map((code) => `./${code}/tours.ts`).sort());
|
||||
expect(generalKeys(Object.keys(english))).toHaveLength(GENERAL_KEY_COUNT);
|
||||
|
||||
@@ -297,6 +297,49 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': '“{name}” bu geziye alındı.',
|
||||
'tours.library.failed': 'Tur alınamadı.',
|
||||
'tours.provenance.takenOverFrom': 'Alındığı yer',
|
||||
'tours.poi.title': 'Tur boyunca',
|
||||
'tours.poi.intro': 'Rotaya yakın mola yerleri. Birini ekleyene kadar hiçbir şey değişmez.',
|
||||
'tours.poi.categories': 'Ne aranacak',
|
||||
'tours.poi.within': 'Rotaya bu mesafe içinde',
|
||||
'tours.poi.search': 'Tur boyunca ara',
|
||||
'tours.poi.searching': 'Aranıyor…',
|
||||
'tours.poi.again': 'Yeniden ara',
|
||||
'tours.poi.offline': 'Arama için bağlantı gerekir.',
|
||||
'tours.poi.failed': 'Arama olmadı. Birazdan tekrar dene.',
|
||||
'tours.poi.outdated': 'Rotanın önceki hâli için bulundu. Şimdikine uyması için yeniden ara.',
|
||||
'tours.poi.partial': 'Bazı kısımlarda arama yapılamadı; orada yerler eksik olabilir.',
|
||||
'tours.poi.capped': 'Tur uzun: yalnızca ilk kısmında arama yapıldı.',
|
||||
'tours.poi.truncated': 'Gösterilenden fazla yer var. Mesafeyi veya türleri daralt.',
|
||||
'tours.poi.empty': 'Rotaya {distance} mesafe içinde bir şey bulunamadı.',
|
||||
'tours.poi.fromRoute': 'rotaya {distance}',
|
||||
'tours.poi.along': '{distance} noktasında',
|
||||
'tours.poi.source.osm': "OpenStreetMap'ten",
|
||||
'tours.poi.source.trek': "TREK'in yer dizininden",
|
||||
'tours.poi.hoursHint': 'Kaynakta yazdığı gibi; gitmeden önce kontrol et.',
|
||||
'tours.poi.website': 'Web sitesi',
|
||||
'tours.poi.addAfter': 'Şundan sonra ekle',
|
||||
'tours.poi.add': 'Mola olarak ekle',
|
||||
'tours.poi.notAPlace': 'Gezinin yeri değil, turun molası olur.',
|
||||
'tours.poi.blocked.fixed':
|
||||
'Bu noktadan sonraki kısım sabit bir hat, via ferrata ya da tekne taşıma. Başka bir nokta seç.',
|
||||
'tours.poi.blocked.free':
|
||||
'Bu noktadan sonraki kısım elle çizilmiş. Başka bir nokta seç ya da önce o kısmı yeniden rotalat.',
|
||||
'tours.poi.blocked.none': 'Bu noktadan sonra mola eklenecek bir kısım yok.',
|
||||
'tours.poi.outcome.measuring': '“{name}” artık bir mola; rota yeniden planlanıyor.',
|
||||
'tours.poi.outcome.measured': '“{name}” artık bir mola. Tur şu kadar değişiyor:',
|
||||
'tours.poi.outcome.unmeasured': '“{name}” artık bir mola. Ne kadar eklediği hesaplanamadı.',
|
||||
'tours.poi.undoHint': 'Düzenleyicide geri al bunu geri alır.',
|
||||
'tours.poi.cat.viewpoint': 'Seyir noktaları',
|
||||
'tours.poi.cat.peak': 'Zirveler',
|
||||
'tours.poi.cat.shelter': 'Kulübeler ve sığınaklar',
|
||||
'tours.poi.cat.drinking_water': 'İçme suyu',
|
||||
'tours.poi.cat.food': 'Yemek',
|
||||
'tours.poi.cat.toilets': 'Tuvaletler',
|
||||
'tours.poi.cat.picnic': 'Piknik alanları',
|
||||
'tours.poi.cat.campsite': 'Kamp alanları',
|
||||
'tours.poi.cat.sights': 'Görülecek yerler',
|
||||
'tours.poi.cat.slipway': 'Suya iniş noktaları',
|
||||
'tours.poi.cat.boat_rental': 'Tekne kiralama',
|
||||
'tours.copy.action': 'Yeni tur olarak kaydet',
|
||||
'tours.copy.hint': 'Bu turu günleri olmadan yeni ve bağımsız bir tur olarak kopyalar. Asıl tur olduğu gibi kalır.',
|
||||
'tours.copy.name': '{name} (kopya)',
|
||||
|
||||
@@ -310,6 +310,49 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': '«{name}» додано в цю подорож.',
|
||||
'tours.library.failed': 'Не вдалося взяти маршрут.',
|
||||
'tours.provenance.takenOverFrom': 'Взято з',
|
||||
'tours.poi.title': 'Уздовж маршруту',
|
||||
'tours.poi.intro': 'Місця для зупинки поруч із маршрутом. Нічого не змінюється, доки ви не додасте одне з них.',
|
||||
'tours.poi.categories': 'Що шукати',
|
||||
'tours.poi.within': 'У межах цієї відстані від маршруту',
|
||||
'tours.poi.search': 'Шукати вздовж маршруту',
|
||||
'tours.poi.searching': 'Пошук…',
|
||||
'tours.poi.again': 'Шукати знову',
|
||||
'tours.poi.offline': "Для пошуку потрібне з'єднання.",
|
||||
'tours.poi.failed': 'Пошук не вдався. Спробуйте ще раз трохи згодом.',
|
||||
'tours.poi.outdated': 'Знайдено для попереднього варіанта маршруту. Щоб урахувати поточний, шукайте знову.',
|
||||
'tours.poi.partial': 'Деякі ділянки не вдалося перевірити; там можуть бракувати місць.',
|
||||
'tours.poi.capped': 'Маршрут довгий: перевірено лише його першу частину.',
|
||||
'tours.poi.truncated': 'Місць більше, ніж показано. Зменште відстань або кількість видів.',
|
||||
'tours.poi.empty': 'У межах {distance} від маршруту нічого не знайдено.',
|
||||
'tours.poi.fromRoute': '{distance} від маршруту',
|
||||
'tours.poi.along': 'на {distance}',
|
||||
'tours.poi.source.osm': 'З OpenStreetMap',
|
||||
'tours.poi.source.trek': 'З каталогу місць TREK',
|
||||
'tours.poi.hoursHint': 'За даними джерела; перевірте перед виходом.',
|
||||
'tours.poi.website': 'Вебсайт',
|
||||
'tours.poi.addAfter': 'Додати після',
|
||||
'tours.poi.add': 'Додати як зупинку',
|
||||
'tours.poi.notAPlace': 'Це стане зупинкою маршруту, а не місцем подорожі.',
|
||||
'tours.poi.blocked.fixed':
|
||||
'Ділянка після цієї точки задана жорстко: це віа ферата або перенесення човна. Виберіть іншу точку.',
|
||||
'tours.poi.blocked.free':
|
||||
'Ділянку після цієї точки намальовано вручну. Виберіть іншу точку або спершу поверніть для неї побудову маршруту.',
|
||||
'tours.poi.blocked.none': 'Після цієї точки немає ділянки, куди можна додати зупинку.',
|
||||
'tours.poi.outcome.measuring': '«{name}» тепер зупинка; маршрут будується заново.',
|
||||
'tours.poi.outcome.measured': '«{name}» тепер зупинка. Маршрут змінюється на:',
|
||||
'tours.poi.outcome.unmeasured': '«{name}» тепер зупинка. Не вдалося розрахувати, скільки вона додає.',
|
||||
'tours.poi.undoHint': 'Скасування в редакторі поверне все назад.',
|
||||
'tours.poi.cat.viewpoint': 'Оглядові майданчики',
|
||||
'tours.poi.cat.peak': 'Вершини',
|
||||
'tours.poi.cat.shelter': 'Хатини й укриття',
|
||||
'tours.poi.cat.drinking_water': 'Питна вода',
|
||||
'tours.poi.cat.food': 'Їжа',
|
||||
'tours.poi.cat.toilets': 'Туалети',
|
||||
'tours.poi.cat.picnic': 'Місця для пікніка',
|
||||
'tours.poi.cat.campsite': 'Кемпінги',
|
||||
'tours.poi.cat.sights': "Пам'ятки",
|
||||
'tours.poi.cat.slipway': 'Місця спуску на воду',
|
||||
'tours.poi.cat.boat_rental': 'Прокат човнів',
|
||||
'tours.copy.action': 'Зберегти як новий похід',
|
||||
'tours.copy.hint': 'Копіює цей похід як новий, самостійний похід без його днів. Оригінал лишається як є.',
|
||||
'tours.copy.name': '{name} (копія)',
|
||||
|
||||
@@ -297,6 +297,48 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': 'Đã lấy “{name}” vào chuyến đi này.',
|
||||
'tours.library.failed': 'Không lấy được chuyến.',
|
||||
'tours.provenance.takenOverFrom': 'Lấy từ',
|
||||
'tours.poi.title': 'Dọc chuyến đi',
|
||||
'tours.poi.intro': 'Những nơi để dừng chân gần lộ trình. Không có gì thay đổi cho đến khi bạn thêm một nơi.',
|
||||
'tours.poi.categories': 'Tìm gì',
|
||||
'tours.poi.within': 'Trong khoảng cách này tới lộ trình',
|
||||
'tours.poi.search': 'Tìm dọc chuyến đi',
|
||||
'tours.poi.searching': 'Đang tìm…',
|
||||
'tours.poi.again': 'Tìm lại',
|
||||
'tours.poi.offline': 'Tìm kiếm cần kết nối mạng.',
|
||||
'tours.poi.failed': 'Tìm kiếm không thành công. Hãy thử lại sau giây lát.',
|
||||
'tours.poi.outdated': 'Kết quả cho lộ trình trước đó. Hãy tìm lại để khớp với lộ trình hiện tại.',
|
||||
'tours.poi.partial': 'Một số đoạn không tìm được; có thể thiếu địa điểm ở đó.',
|
||||
'tours.poi.capped': 'Chuyến đi dài: chỉ phần đầu được tìm.',
|
||||
'tours.poi.truncated': 'Có nhiều địa điểm hơn số hiển thị. Hãy thu hẹp khoảng cách hoặc loại.',
|
||||
'tours.poi.empty': 'Không tìm thấy gì trong khoảng {distance} tới lộ trình.',
|
||||
'tours.poi.fromRoute': 'cách lộ trình {distance}',
|
||||
'tours.poi.along': 'tại {distance}',
|
||||
'tours.poi.source.osm': 'Từ OpenStreetMap',
|
||||
'tours.poi.source.trek': 'Từ chỉ mục địa điểm của TREK',
|
||||
'tours.poi.hoursHint': 'Theo nguồn dữ liệu; hãy kiểm tra trước khi đi.',
|
||||
'tours.poi.website': 'Trang web',
|
||||
'tours.poi.addAfter': 'Thêm sau',
|
||||
'tours.poi.add': 'Thêm làm điểm dừng',
|
||||
'tours.poi.notAPlace': 'Đây trở thành điểm dừng của chuyến, không phải địa điểm của chuyến đi.',
|
||||
'tours.poi.blocked.fixed':
|
||||
'Đoạn sau điểm này là đường cố định, đường leo núi hoặc đoạn khiêng thuyền. Hãy chọn điểm khác.',
|
||||
'tours.poi.blocked.free': 'Đoạn sau điểm này được vẽ tay. Hãy chọn điểm khác, hoặc cho định tuyến lại đoạn đó trước.',
|
||||
'tours.poi.blocked.none': 'Không có đoạn nào sau điểm này để thêm điểm dừng.',
|
||||
'tours.poi.outcome.measuring': '“{name}” giờ là điểm dừng; lộ trình đang được lập lại.',
|
||||
'tours.poi.outcome.measured': '“{name}” giờ là điểm dừng. Chuyến đi thay đổi:',
|
||||
'tours.poi.outcome.unmeasured': '“{name}” giờ là điểm dừng. Không tính được nó thêm bao nhiêu.',
|
||||
'tours.poi.undoHint': 'Hoàn tác trong trình chỉnh sửa sẽ bỏ thao tác này.',
|
||||
'tours.poi.cat.viewpoint': 'Điểm ngắm cảnh',
|
||||
'tours.poi.cat.peak': 'Đỉnh núi',
|
||||
'tours.poi.cat.shelter': 'Lán và chỗ trú',
|
||||
'tours.poi.cat.drinking_water': 'Nước uống',
|
||||
'tours.poi.cat.food': 'Ăn uống',
|
||||
'tours.poi.cat.toilets': 'Nhà vệ sinh',
|
||||
'tours.poi.cat.picnic': 'Điểm dã ngoại',
|
||||
'tours.poi.cat.campsite': 'Khu cắm trại',
|
||||
'tours.poi.cat.sights': 'Điểm tham quan',
|
||||
'tours.poi.cat.slipway': 'Điểm hạ thủy',
|
||||
'tours.poi.cat.boat_rental': 'Cho thuê thuyền',
|
||||
'tours.copy.action': 'Lưu thành chuyến đi bộ mới',
|
||||
'tours.copy.hint': 'Sao chép chuyến này thành một chuyến đi bộ mới, độc lập, không kèm các ngày. Bản gốc giữ nguyên.',
|
||||
'tours.copy.name': '{name} (bản sao)',
|
||||
|
||||
@@ -273,6 +273,47 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': '已將「{name}」引入本行程。',
|
||||
'tours.library.failed': '無法引入路線。',
|
||||
'tours.provenance.takenOverFrom': '引入自',
|
||||
'tours.poi.title': '沿途',
|
||||
'tours.poi.intro': '靠近路線的停留地點。在你新增之前,不會有任何變動。',
|
||||
'tours.poi.categories': '要找什麼',
|
||||
'tours.poi.within': '距路線的範圍',
|
||||
'tours.poi.search': '沿途搜尋',
|
||||
'tours.poi.searching': '正在搜尋…',
|
||||
'tours.poi.again': '重新搜尋',
|
||||
'tours.poi.offline': '搜尋需要網路連線。',
|
||||
'tours.poi.failed': '搜尋未成功。請稍後再試。',
|
||||
'tours.poi.outdated': '這是依先前的路線找到的。請重新搜尋以符合目前路線。',
|
||||
'tours.poi.partial': '有些路段無法搜尋,那裡可能缺少地點。',
|
||||
'tours.poi.capped': '路線較長:只搜尋了前一段。',
|
||||
'tours.poi.truncated': '地點比顯示的更多。請縮小範圍或類型。',
|
||||
'tours.poi.empty': '距路線 {distance} 內沒有找到任何地點。',
|
||||
'tours.poi.fromRoute': '距路線 {distance}',
|
||||
'tours.poi.along': '在 {distance} 處',
|
||||
'tours.poi.source.osm': '來自 OpenStreetMap',
|
||||
'tours.poi.source.trek': '來自 TREK 地點索引',
|
||||
'tours.poi.hoursHint': '以來源所列為準;出發前請確認。',
|
||||
'tours.poi.website': '網站',
|
||||
'tours.poi.addAfter': '新增在其後',
|
||||
'tours.poi.add': '新增為停留點',
|
||||
'tours.poi.notAPlace': '它會成為路線的停留點,而不是行程的地點。',
|
||||
'tours.poi.blocked.fixed': '此點之後的路段是固定路線,例如攀岩路線或搬運船隻。請選擇其他點。',
|
||||
'tours.poi.blocked.free': '此點之後的路段是手繪的。請選擇其他點,或先讓該路段重新規劃。',
|
||||
'tours.poi.blocked.none': '此點之後沒有可新增停留點的路段。',
|
||||
'tours.poi.outcome.measuring': '「{name}」已成為停留點,正在重新規劃路線。',
|
||||
'tours.poi.outcome.measured': '「{name}」已成為停留點。路線變化:',
|
||||
'tours.poi.outcome.unmeasured': '「{name}」已成為停留點。無法計算它增加了多少。',
|
||||
'tours.poi.undoHint': '在編輯器中復原即可恢復。',
|
||||
'tours.poi.cat.viewpoint': '觀景點',
|
||||
'tours.poi.cat.peak': '山頂',
|
||||
'tours.poi.cat.shelter': '山屋與避難處',
|
||||
'tours.poi.cat.drinking_water': '飲用水',
|
||||
'tours.poi.cat.food': '餐飲',
|
||||
'tours.poi.cat.toilets': '廁所',
|
||||
'tours.poi.cat.picnic': '野餐點',
|
||||
'tours.poi.cat.campsite': '露營地',
|
||||
'tours.poi.cat.sights': '景點',
|
||||
'tours.poi.cat.slipway': '下水點',
|
||||
'tours.poi.cat.boat_rental': '租船',
|
||||
'tours.copy.action': '另存為新遊程',
|
||||
'tours.copy.hint': '將此遊程複製為不含日程的獨立新遊程。原遊程保持不變。',
|
||||
'tours.copy.name': '{name}(副本)',
|
||||
|
||||
@@ -274,6 +274,47 @@ const tours: TranslationStrings = {
|
||||
'tours.library.taken': '已将“{name}”引入本行程。',
|
||||
'tours.library.failed': '无法引入路线。',
|
||||
'tours.provenance.takenOverFrom': '引入自',
|
||||
'tours.poi.title': '沿途',
|
||||
'tours.poi.intro': '靠近路线的停留地点。在你添加之前,不会有任何改动。',
|
||||
'tours.poi.categories': '要找什么',
|
||||
'tours.poi.within': '距路线的范围',
|
||||
'tours.poi.search': '沿途搜索',
|
||||
'tours.poi.searching': '正在搜索…',
|
||||
'tours.poi.again': '重新搜索',
|
||||
'tours.poi.offline': '搜索需要网络连接。',
|
||||
'tours.poi.failed': '搜索未成功。请稍后再试。',
|
||||
'tours.poi.outdated': '这是按之前的路线找到的。请重新搜索以匹配当前路线。',
|
||||
'tours.poi.partial': '有些路段无法搜索,那里可能缺少地点。',
|
||||
'tours.poi.capped': '路线较长:只搜索了前一段。',
|
||||
'tours.poi.truncated': '地点比显示的更多。请缩小范围或类型。',
|
||||
'tours.poi.empty': '距路线 {distance} 内没有找到任何地点。',
|
||||
'tours.poi.fromRoute': '距路线 {distance}',
|
||||
'tours.poi.along': '在 {distance} 处',
|
||||
'tours.poi.source.osm': '来自 OpenStreetMap',
|
||||
'tours.poi.source.trek': '来自 TREK 地点索引',
|
||||
'tours.poi.hoursHint': '以来源所列为准;出发前请核实。',
|
||||
'tours.poi.website': '网站',
|
||||
'tours.poi.addAfter': '添加在其后',
|
||||
'tours.poi.add': '添加为停留点',
|
||||
'tours.poi.notAPlace': '它会成为路线的停留点,而不是行程的地点。',
|
||||
'tours.poi.blocked.fixed': '此点之后的路段是固定线路,例如攀岩路线或搬运船只。请选择其他点。',
|
||||
'tours.poi.blocked.free': '此点之后的路段是手绘的。请选择其他点,或先让该路段重新规划。',
|
||||
'tours.poi.blocked.none': '此点之后没有可添加停留点的路段。',
|
||||
'tours.poi.outcome.measuring': '“{name}”已成为停留点,正在重新规划路线。',
|
||||
'tours.poi.outcome.measured': '“{name}”已成为停留点。路线变化:',
|
||||
'tours.poi.outcome.unmeasured': '“{name}”已成为停留点。无法计算它增加了多少。',
|
||||
'tours.poi.undoHint': '在编辑器中撤销即可恢复。',
|
||||
'tours.poi.cat.viewpoint': '观景点',
|
||||
'tours.poi.cat.peak': '山顶',
|
||||
'tours.poi.cat.shelter': '小屋与避难所',
|
||||
'tours.poi.cat.drinking_water': '饮用水',
|
||||
'tours.poi.cat.food': '餐饮',
|
||||
'tours.poi.cat.toilets': '厕所',
|
||||
'tours.poi.cat.picnic': '野餐点',
|
||||
'tours.poi.cat.campsite': '露营地',
|
||||
'tours.poi.cat.sights': '景点',
|
||||
'tours.poi.cat.slipway': '下水点',
|
||||
'tours.poi.cat.boat_rental': '租船',
|
||||
'tours.copy.action': '另存为新路线',
|
||||
'tours.copy.hint': '将此路线复制为不含日程的独立新路线。原路线保持不变。',
|
||||
'tours.copy.name': '{name}(副本)',
|
||||
|
||||
Reference in New Issue
Block a user