mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 16:33:16 +00:00
feat(journey): complete sharing, photo drafts and Studio maps
Connect the Journey backend to the web and mobile UI, including public access and subscriptions, day recordings, photo drafts and per-map framing. Preserve legacy recording responses and cover the new behavior in every locale.
This commit is contained in:
@@ -658,9 +658,15 @@
|
||||
],
|
||||
"mobile": ["src/mobile/screens/journey/MJourneySettingsSheet.tsx"]
|
||||
},
|
||||
{
|
||||
"feature": "Journey entries from photos: useJourneyEntriesFromPhotos",
|
||||
"hooks": ["src/components/Journey/useJourneyEntriesFromPhotos.ts"],
|
||||
"desktop": ["src/components/Journey/JourneyFromPhotosDialog.tsx"],
|
||||
"mobile": ["src/mobile/screens/journey/MJourneyFromPhotosSheet.tsx"]
|
||||
},
|
||||
{
|
||||
"feature": "Journey settings: useJourneyShareLink",
|
||||
"hooks": ["src/components/Journey/useJourneyShareLink.ts"],
|
||||
"hooks": ["src/components/Journey/useJourneyShareLink.ts", "src/components/Journey/useJourneyShareAccess.ts"],
|
||||
"desktop": ["src/components/Journey/JourneyShareSection.tsx"],
|
||||
"mobile": ["src/mobile/screens/journey/MJourneySettingsSheet.tsx"]
|
||||
},
|
||||
|
||||
@@ -72,6 +72,7 @@ const JourneyDetailPage = lazyWithRetry(() => import('./pages/JourneyDetailPage'
|
||||
const JourneyStudioPage = lazyWithRetry(() => import('./pages/JourneyStudioPage'))
|
||||
const CollectionsPage = lazyWithRetry(() => import('./pages/CollectionsPage'))
|
||||
const JourneyPublicPage = lazyWithRetry(() => import('./pages/JourneyPublicPage'))
|
||||
const JourneyFollowPage = lazyWithRetry(() => import('./pages/JourneyFollowPage'))
|
||||
const SharedTripPage = lazyWithRetry(() => import('./pages/SharedTripPage'))
|
||||
const JoinTripPage = lazyWithRetry(() => import('./pages/JoinTripPage'))
|
||||
const InAppNotificationsPage = lazyWithRetry(() => import('./pages/InAppNotificationsPage.tsx'))
|
||||
@@ -518,6 +519,7 @@ export default function App() {
|
||||
<Route path="/login" element={<PublicRoute redirectAuthed><LoginPage /></PublicRoute>} />
|
||||
<Route path="/shared/:token" element={<PublicRoute><SharedTripPage /></PublicRoute>} />
|
||||
<Route path="/public/journey/:token" element={<PublicRoute><JourneyPublicPage /></PublicRoute>} />
|
||||
<Route path="/public/journey-follow/:action" element={<PublicRoute><JourneyFollowPage /></PublicRoute>} />
|
||||
<Route path="/register" element={<PublicRoute redirectAuthed><LoginPage /></PublicRoute>} />
|
||||
<Route path="/forgot-password" element={<PublicRoute><ForgotPasswordPage /></PublicRoute>} />
|
||||
<Route path="/native-handoff" element={<PublicRoute><NativeHandoffPage /></PublicRoute>} />
|
||||
|
||||
@@ -1047,12 +1047,6 @@ export const journeyApi = {
|
||||
createShareLink: (id: number, perms: JourneyShareLinkRequest) => apiClient.post(`/journeys/${id}/share-link`, perms).then(r => r.data),
|
||||
deleteShareLink: (id: number) => apiClient.delete(`/journeys/${id}/share-link`).then(r => r.data),
|
||||
getPublicJourney: (token: string) => apiClient.get(`/public/journey/${token}`).then(r => r.data),
|
||||
/**
|
||||
* A reader's password for a protected link (#2553). The answer sets the link's
|
||||
* unlock cookie, which every later read and photo of that link sends along.
|
||||
*/
|
||||
unlockPublicJourney: (token: string, password: string): Promise<{ success: true }> =>
|
||||
apiClient.post(`/public/journey/${token}/unlock`, { password }).then(r => r.data),
|
||||
}
|
||||
|
||||
// Photo providers (Immich, Synology Photos, …) behind /api/integrations/memories.
|
||||
|
||||
@@ -28,7 +28,7 @@ const upstream = { timeout: DAWARICH_UPSTREAM_TIMEOUT_MS };
|
||||
*/
|
||||
export const journeyRecordingsApi = {
|
||||
list: (journeyId: number, signal?: AbortSignal): Promise<JourneyRecordedDaysResponse> =>
|
||||
apiClient.get(base(journeyId), { signal }).then((r) => r.data),
|
||||
apiClient.get(base(journeyId), { signal, params: { includeGpx: true } }).then((r) => r.data),
|
||||
prep: (journeyId: number, signal?: AbortSignal): Promise<JourneyRecordingPrep> =>
|
||||
apiClient.get(`${base(journeyId)}/prep`, { signal }).then((r) => r.data),
|
||||
preview: (
|
||||
|
||||
@@ -34,6 +34,10 @@ export const journeySocialApi = {
|
||||
|
||||
publicComments: (token: string, signal?: AbortSignal): Promise<JourneyPublicCommentsResponse> =>
|
||||
apiClient.get(`${pub(token)}/comments`, { signal }).then((r) => r.data),
|
||||
recordPublicView: (token: string): Promise<{ success: true }> =>
|
||||
apiClient.post(`${pub(token)}/view`).then((r) => r.data),
|
||||
unlockPublicJourney: (token: string, password: string): Promise<{ success: true }> =>
|
||||
apiClient.post(`${pub(token)}/unlock`, { password }).then((r) => r.data),
|
||||
addPublicComment: (
|
||||
token: string,
|
||||
entryId: number,
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
import type { JourneyRecordedDay } from '@trek/shared';
|
||||
import { Route } from 'lucide-react';
|
||||
import { FileUp, RefreshCw, Route, Trash2 } from 'lucide-react';
|
||||
import type React from 'react';
|
||||
import { useRef } from 'react';
|
||||
import { useTranslation } from '../../i18n';
|
||||
import { useSettingsStore } from '../../store/settingsStore';
|
||||
import { formatDistance } from '../../utils/units';
|
||||
import { ContextMenu, useContextMenu } from '../shared/ContextMenu';
|
||||
import DawarichIcon from '../shared/DawarichIcon';
|
||||
import { fs } from '../shared/DialogShell';
|
||||
import { Tooltip } from '../shared/Tooltip';
|
||||
@@ -15,14 +17,28 @@ const ROUND =
|
||||
const PILL =
|
||||
'inline-flex items-center gap-1.5 rounded-full px-2.5 py-1 font-bold tabular-nums transition-colors aria-disabled:cursor-default [&:not([aria-disabled=true])]:hover:bg-surface-hover';
|
||||
|
||||
const GPX_TYPES = '.gpx,application/gpx+xml';
|
||||
|
||||
/** Reading a day's route from a GPX file (#3085): open to every editor, with or without Dawarich. */
|
||||
export interface DayGpx {
|
||||
/** The day's route read from a file, if it keeps one. */
|
||||
day: JourneyRecordedDay | undefined;
|
||||
canImport: boolean;
|
||||
busy: boolean;
|
||||
onImport: (file: File) => void;
|
||||
onRemove: () => void;
|
||||
}
|
||||
|
||||
/**
|
||||
* The recorded route of one journey day in its header (JRN-01).
|
||||
* The recorded route of one journey day in its header (JRN-01, #3085).
|
||||
*
|
||||
* A day that keeps its route shows how far it went, for everyone who can open
|
||||
* the journey, with whose recording it is and since when in the tooltip; an
|
||||
* editor opens it to check it against Dawarich again, replace it or drop it.
|
||||
* A day without one offers an editor whose Dawarich answers to take it over;
|
||||
* offline the offer stays, dimmed, and says why.
|
||||
* editor opens a Dawarich day to check it again, replace it or drop it, and a
|
||||
* day read from a GPX file to replace or drop that file's route. A day without
|
||||
* one offers an editor one button: take it over from Dawarich, read it from a
|
||||
* GPX file, or a small menu with both when both are possible. Offline the
|
||||
* Dawarich offer stays, dimmed, and says why.
|
||||
*/
|
||||
export default function JourneyDayRecordingButton({
|
||||
day,
|
||||
@@ -30,23 +46,48 @@ export default function JourneyDayRecordingButton({
|
||||
canTakeOver,
|
||||
needsConnection,
|
||||
onOpen,
|
||||
gpx,
|
||||
}: {
|
||||
/** The day's route taken over from Dawarich. */
|
||||
day: JourneyRecordedDay | undefined;
|
||||
canEdit: boolean;
|
||||
canTakeOver: boolean;
|
||||
needsConnection: boolean;
|
||||
onOpen: () => void;
|
||||
gpx?: DayGpx;
|
||||
}): React.ReactElement | null {
|
||||
const { t, locale } = useTranslation();
|
||||
const unit = useSettingsStore((s) => s.settings.distance_unit) ?? 'metric';
|
||||
const fileRef = useRef<HTMLInputElement>(null);
|
||||
const menu = useContextMenu();
|
||||
|
||||
const canImportGpx = !!gpx?.canImport && canEdit;
|
||||
const pickFile = () => fileRef.current?.click();
|
||||
const fileInput = canImportGpx ? (
|
||||
<input
|
||||
ref={fileRef}
|
||||
type="file"
|
||||
accept={GPX_TYPES}
|
||||
className="hidden"
|
||||
onChange={(e) => {
|
||||
const file = e.target.files?.[0];
|
||||
e.target.value = '';
|
||||
if (file) gpx?.onImport(file);
|
||||
}}
|
||||
/>
|
||||
) : null;
|
||||
|
||||
const keptLabel = (kept: JourneyRecordedDay) => {
|
||||
const distance = formatDistance(kept.stats.distanceMeters / 1000, unit);
|
||||
const date = new Date(kept.savedAt).toLocaleDateString(locale, { day: 'numeric', month: 'short' });
|
||||
const text = kept.importedBy
|
||||
? t('journey.recording.keptBy', { distance, name: kept.importedBy.username, date })
|
||||
: t('journey.recording.keptOn', { distance, date });
|
||||
return { distance, label: kept.provisional ? `${text} ${t('journey.recording.keptRunning')}` : text };
|
||||
};
|
||||
|
||||
if (day) {
|
||||
const distance = formatDistance(day.stats.distanceMeters / 1000, unit);
|
||||
const date = new Date(day.savedAt).toLocaleDateString(locale, { day: 'numeric', month: 'short' });
|
||||
const kept = day.importedBy
|
||||
? t('journey.recording.keptBy', { distance, name: day.importedBy.username, date })
|
||||
: t('journey.recording.keptOn', { distance, date });
|
||||
const label = day.provisional ? `${kept} ${t('journey.recording.keptRunning')}` : kept;
|
||||
const { distance, label } = keptLabel(day);
|
||||
return (
|
||||
<Tooltip label={label} placement="top">
|
||||
<button
|
||||
@@ -66,21 +107,104 @@ export default function JourneyDayRecordingButton({
|
||||
);
|
||||
}
|
||||
|
||||
if (!canTakeOver && !needsConnection) return null;
|
||||
if (gpx?.day) {
|
||||
const { distance, label } = keptLabel(gpx.day);
|
||||
const full = `${label} ${t('journey.recording.gpx.source')}`;
|
||||
return (
|
||||
<>
|
||||
{fileInput}
|
||||
<Tooltip label={full} placement="top" disabled={!!menu.menu}>
|
||||
<button
|
||||
type="button"
|
||||
onClick={
|
||||
canImportGpx
|
||||
? (e) =>
|
||||
menu.open(
|
||||
e,
|
||||
[
|
||||
{ label: t('journey.recording.replace'), icon: RefreshCw, onClick: pickFile },
|
||||
{ label: t('journey.recording.remove'), icon: Trash2, onClick: gpx.onRemove, danger: true },
|
||||
],
|
||||
true
|
||||
)
|
||||
: undefined
|
||||
}
|
||||
aria-disabled={!canImportGpx || gpx.busy}
|
||||
aria-label={full}
|
||||
aria-haspopup={canImportGpx ? 'menu' : undefined}
|
||||
data-testid="journey-day-recording"
|
||||
className={PILL}
|
||||
style={{ ...fs(10.5), background: 'var(--vg-surf2)', color: 'var(--vg-ink)' }}
|
||||
>
|
||||
<FileUp size={12} strokeWidth={2.4} aria-hidden="true" />
|
||||
{distance}
|
||||
</button>
|
||||
</Tooltip>
|
||||
<ContextMenu menu={menu.menu} onClose={menu.close} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
if (!canTakeOver && !needsConnection && !canImportGpx) return null;
|
||||
|
||||
// Only a file to read: the button opens the file picker straight away.
|
||||
if (canImportGpx && !canTakeOver) {
|
||||
const label = t('journey.recording.gpx.import');
|
||||
return (
|
||||
<>
|
||||
{fileInput}
|
||||
<Tooltip label={label} placement="top">
|
||||
<button
|
||||
type="button"
|
||||
onClick={gpx?.busy ? undefined : pickFile}
|
||||
aria-disabled={!!gpx?.busy}
|
||||
aria-label={label}
|
||||
data-testid="journey-day-recording"
|
||||
className={ROUND}
|
||||
style={{ background: 'var(--vg-surf2)', color: 'var(--vg-ink3)' }}
|
||||
>
|
||||
<Route size={14} strokeWidth={2.2} />
|
||||
</button>
|
||||
</Tooltip>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
const label = canTakeOver ? t('journey.recording.takeOver') : t('dawarich.error.offline');
|
||||
return (
|
||||
<Tooltip label={label} placement="top">
|
||||
<button
|
||||
type="button"
|
||||
onClick={canTakeOver ? onOpen : undefined}
|
||||
aria-disabled={!canTakeOver}
|
||||
aria-label={label}
|
||||
data-testid="journey-day-recording"
|
||||
className={ROUND}
|
||||
style={{ background: 'var(--vg-surf2)' }}
|
||||
>
|
||||
<DawarichIcon size={15} />
|
||||
</button>
|
||||
</Tooltip>
|
||||
<>
|
||||
{fileInput}
|
||||
<Tooltip label={label} placement="top" disabled={!!menu.menu}>
|
||||
<button
|
||||
type="button"
|
||||
onClick={
|
||||
canTakeOver
|
||||
? canImportGpx
|
||||
? (e) =>
|
||||
menu.open(
|
||||
e,
|
||||
[
|
||||
{ label: t('journey.recording.takeOver'), icon: Route, onClick: onOpen },
|
||||
{ label: t('journey.recording.gpx.import'), icon: FileUp, onClick: pickFile },
|
||||
],
|
||||
true
|
||||
)
|
||||
: onOpen
|
||||
: canImportGpx
|
||||
? pickFile
|
||||
: undefined
|
||||
}
|
||||
aria-disabled={!canTakeOver && !canImportGpx}
|
||||
aria-label={label}
|
||||
aria-haspopup={canTakeOver && canImportGpx ? 'menu' : undefined}
|
||||
data-testid="journey-day-recording"
|
||||
className={ROUND}
|
||||
style={{ background: 'var(--vg-surf2)' }}
|
||||
>
|
||||
<DawarichIcon size={15} />
|
||||
</button>
|
||||
</Tooltip>
|
||||
<ContextMenu menu={menu.menu} onClose={menu.close} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { useState, useEffect } from 'react'
|
||||
import { useState, useEffect, type ReactNode } from 'react'
|
||||
import { MapPin, Clock, Pencil, Trash2, Plus, PencilLine, RouteOff, X } from 'lucide-react'
|
||||
import { formatLocationName } from '../../utils/formatters'
|
||||
import { useTranslation } from '../../i18n'
|
||||
@@ -14,9 +14,11 @@ import { MoodChip, WeatherChip } from './JourneyDetailPageChips'
|
||||
import { ExpandableStory } from './JourneyDetailPageExpandableStory'
|
||||
import { VerdictSection } from './JourneyDetailPageVerdictSection'
|
||||
|
||||
export function EntryCard({ entry, readOnly, onEdit, onDelete, onPhotoClick }: {
|
||||
export function EntryCard({ entry, readOnly, onEdit, onDelete, onPhotoClick, comments }: {
|
||||
entry: JourneyEntry
|
||||
readOnly?: boolean
|
||||
/** The comment thread under the entry (#1702), drawn by the page. */
|
||||
comments?: ReactNode
|
||||
onEdit: () => void
|
||||
onDelete: () => void
|
||||
onPhotoClick: (photos: JourneyPhoto[], index: number) => void
|
||||
@@ -178,6 +180,8 @@ export function EntryCard({ entry, readOnly, onEdit, onDelete, onPhotoClick }: {
|
||||
)))}
|
||||
</div>
|
||||
)}
|
||||
|
||||
{comments && <div className="pt-3 mt-3 border-t border-zinc-100 dark:border-zinc-800">{comments}</div>}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { useEffect, useState, useRef } from 'react'
|
||||
import { RefreshCw, Camera, X, Play } from 'lucide-react'
|
||||
import { RefreshCw, Camera, X, Play, NotebookPen } from 'lucide-react'
|
||||
import JourneyFromPhotosDialog from './JourneyFromPhotosDialog'
|
||||
import { useJourneyStore } from '../../store/journeyStore'
|
||||
import { useTranslation } from '../../i18n'
|
||||
import { useToast } from '../shared/Toast'
|
||||
@@ -68,6 +69,11 @@ export function GalleryView({ entries, gallery, journeyId, userId, trips, canEdi
|
||||
// Deleting is final on the server and takes the photo out of every entry that
|
||||
// uses it too, so the tile only asks; the dialog does the deleting (#2593).
|
||||
const [deleteTarget, setDeleteTarget] = useState<GalleryPhoto | null>(null)
|
||||
const [showFromPhotos, setShowFromPhotos] = useState(false)
|
||||
const coverOf = (galleryPhotoId: number) => {
|
||||
const photo = allPhotos.find(p => p.id === galleryPhotoId)
|
||||
return photo && !posterlessVideo(photo) ? photoUrl(photo, 'thumbnail') : null
|
||||
}
|
||||
|
||||
const handleDeletePhoto = async (galleryPhotoId: number) => {
|
||||
const store = useJourneyStore.getState()
|
||||
@@ -89,7 +95,26 @@ export function GalleryView({ entries, gallery, journeyId, userId, trips, canEdi
|
||||
<span className="inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-[10px] font-bold uppercase tracking-[0.07em]" style={{ background: 'var(--vg-surf2)', color: 'var(--vg-ink3)' }}>
|
||||
<Camera size={11} /> {allPhotos.length} {t('journey.detail.photos', { count: allPhotos.length })}
|
||||
</span>
|
||||
{/* #1920: the gallery's loose photos as drafts, grouped by day and place. */}
|
||||
{canEdit && allPhotos.length > 0 && (
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setShowFromPhotos(true)}
|
||||
className="inline-flex items-center gap-1.5 rounded-full px-3 py-1.5 text-caption font-semibold transition-colors hover:bg-surface-hover"
|
||||
style={{ background: 'var(--vg-surf2)', color: 'var(--vg-ink)' }}
|
||||
>
|
||||
<NotebookPen size={13} /> {t('journey.fromPhotos.title')}
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
{showFromPhotos && (
|
||||
<JourneyFromPhotosDialog
|
||||
journeyId={journeyId}
|
||||
coverOf={coverOf}
|
||||
onCreated={onRefresh}
|
||||
onClose={() => setShowFromPhotos(false)}
|
||||
/>
|
||||
)}
|
||||
|
||||
{allPhotos.length === 0 ? (
|
||||
<EmptyState scene="journey" title={t('journey.detail.noPhotos')} />
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
import { fireEvent, render, screen, waitFor } from '@testing-library/react';
|
||||
import { afterEach, describe, expect, it, vi } from 'vitest';
|
||||
|
||||
import JourneyEntryComments, { GuestEntryComments, MemberEntryComments } from './JourneyEntryComments';
|
||||
|
||||
vi.mock('../../i18n', () => ({ useTranslation: () => ({ t: (key: string) => key, locale: 'en' }) }));
|
||||
|
||||
afterEach(() => localStorage.removeItem('trek.journey.guestName'));
|
||||
|
||||
const entry = {
|
||||
id: 17,
|
||||
author_name: 'Robin',
|
||||
is_guest: false,
|
||||
body: 'A quiet spot by the river',
|
||||
created_at: '2026-05-14T09:00:00Z',
|
||||
};
|
||||
|
||||
describe('Journey entry comments', () => {
|
||||
it('opens and closes a thread and omits the control for an empty read-only thread', () => {
|
||||
const onAdd = vi.fn();
|
||||
const { rerender } = render(<JourneyEntryComments comments={[entry]} canWrite={false} onAdd={onAdd} />);
|
||||
const control = () => screen.getByRole('button', { name: 'journey.comments.count' });
|
||||
expect(control()).toHaveAttribute('aria-expanded', 'false');
|
||||
fireEvent.click(control());
|
||||
expect(control()).toHaveAttribute('aria-expanded', 'true');
|
||||
expect(screen.getByText(entry.body)).toBeVisible();
|
||||
fireEvent.click(control());
|
||||
expect(screen.queryByText(entry.body)).toBeNull();
|
||||
rerender(<JourneyEntryComments comments={[]} canWrite={false} onAdd={onAdd} />);
|
||||
expect(screen.queryByRole('button')).toBeNull();
|
||||
});
|
||||
|
||||
it('takes a guest name, shows a refusal, and remembers the name after a successful retry', async () => {
|
||||
const addComment = vi.fn().mockResolvedValueOnce('rate_limited').mockResolvedValueOnce('ok');
|
||||
render(<GuestEntryComments entryId={13} thread={{ commentsOpen: true, byEntry: new Map(), addComment }} />);
|
||||
fireEvent.click(screen.getByRole('button', { name: 'journey.comments.write' }));
|
||||
const text = screen.getByRole('textbox', { name: 'journey.comments.write' });
|
||||
const name = screen.getByRole('textbox', { name: 'common.name' });
|
||||
const send = screen.getByRole('button', { name: 'journey.comments.send' });
|
||||
fireEvent.change(text, { target: { value: ' Walked here too ' } });
|
||||
expect(send).toBeDisabled();
|
||||
fireEvent.change(name, { target: { value: ' Lee ' } });
|
||||
fireEvent.click(send);
|
||||
expect(await screen.findByText('common.tooManyAttempts')).toBeVisible();
|
||||
expect(text).toHaveValue(' Walked here too ');
|
||||
expect(localStorage.getItem('trek.journey.guestName')).toBeNull();
|
||||
fireEvent.click(send);
|
||||
await waitFor(() => expect(text).toHaveValue(''));
|
||||
expect(addComment).toHaveBeenLastCalledWith(13, 'Lee', 'Walked here too');
|
||||
expect(localStorage.getItem('trek.journey.guestName')).toBe('Lee');
|
||||
});
|
||||
|
||||
it('lets the moderator show and delete a hidden comment and keeps the public-sharing hint visible', () => {
|
||||
const setHidden = vi.fn().mockResolvedValue(true);
|
||||
const remove = vi.fn().mockResolvedValue(true);
|
||||
const thread = {
|
||||
byEntry: new Map([[13, [{ ...entry, hidden: true }]]]),
|
||||
canModerate: true,
|
||||
add: vi.fn().mockResolvedValue(true),
|
||||
setHidden,
|
||||
remove,
|
||||
};
|
||||
render(<MemberEntryComments entryId={13} thread={thread} defaultOpen />);
|
||||
expect(screen.getByText('journey.comments.hidden')).toBeVisible();
|
||||
expect(screen.getByText('journey.comments.publicHint')).toBeVisible();
|
||||
fireEvent.click(screen.getByRole('button', { name: 'journey.comments.show' }));
|
||||
fireEvent.click(screen.getByRole('button', { name: 'common.delete' }));
|
||||
expect(setHidden).toHaveBeenCalledWith(entry.id, false);
|
||||
expect(remove).toHaveBeenCalledWith(entry.id);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,312 @@
|
||||
import { JOURNEY_COMMENT_MAX_LENGTH, JOURNEY_GUEST_NAME_MAX_LENGTH } from '@trek/shared';
|
||||
import { Eye, EyeOff, MessageCircle, SendHorizontal, Trash2 } from 'lucide-react';
|
||||
import { useState, type FormEvent } from 'react';
|
||||
import { useTranslation } from '../../i18n';
|
||||
import { useToast } from '../shared/Toast';
|
||||
import { Tooltip } from '../shared/Tooltip';
|
||||
|
||||
/** One comment as the thread draws it: in the app and on the shared page alike. */
|
||||
export interface EntryCommentItem {
|
||||
id: number;
|
||||
author_name: string | null;
|
||||
is_guest: boolean;
|
||||
body: string;
|
||||
created_at: string | null;
|
||||
hidden?: boolean;
|
||||
own?: boolean;
|
||||
}
|
||||
|
||||
interface Props {
|
||||
comments: EntryCommentItem[];
|
||||
/** Whether a new comment can be written here at all. */
|
||||
canWrite: boolean;
|
||||
/** A reader of the shared page signs with a name; a member writes as their account. */
|
||||
guest?: boolean;
|
||||
/** An editor may hide and delete every comment. */
|
||||
canModerate?: boolean;
|
||||
/** Saves a comment; resolves null when it was taken, else the text to show under the field. */
|
||||
onAdd: (body: string, name: string) => Promise<string | null>;
|
||||
onHide?: (id: number, hidden: boolean) => Promise<boolean>;
|
||||
onDelete?: (id: number) => Promise<boolean>;
|
||||
/** Members are told when the share link shows their comments to its readers too. */
|
||||
publicHint?: boolean;
|
||||
/** Start unfolded, where the thread already has a section of its own. */
|
||||
defaultOpen?: boolean;
|
||||
}
|
||||
|
||||
const GUEST_NAME_KEY = 'trek.journey.guestName';
|
||||
|
||||
function rememberedName(): string {
|
||||
try {
|
||||
return localStorage.getItem(GUEST_NAME_KEY) ?? '';
|
||||
} catch {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
function rememberName(name: string) {
|
||||
try {
|
||||
localStorage.setItem(GUEST_NAME_KEY, name);
|
||||
} catch {
|
||||
// A private window keeps no name; the field simply starts empty next time.
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The comments under a journal entry (#1702): folded into one quiet line until
|
||||
* somebody opens it, then the thread oldest first and a field to add one.
|
||||
* The same thread serves the journey's members in the app and the readers of a
|
||||
* shared link, who sign with a name instead of an account.
|
||||
*/
|
||||
export default function JourneyEntryComments({
|
||||
comments,
|
||||
canWrite,
|
||||
guest,
|
||||
canModerate,
|
||||
onAdd,
|
||||
onHide,
|
||||
onDelete,
|
||||
publicHint,
|
||||
defaultOpen,
|
||||
}: Props) {
|
||||
const { t, locale } = useTranslation();
|
||||
const [open, setOpen] = useState(!!defaultOpen);
|
||||
const [body, setBody] = useState('');
|
||||
const [name, setName] = useState(guest ? rememberedName : '');
|
||||
const [trap, setTrap] = useState('');
|
||||
const [busy, setBusy] = useState(false);
|
||||
const [message, setMessage] = useState<string | null>(null);
|
||||
|
||||
if (!canWrite && comments.length === 0) return null;
|
||||
|
||||
const submit = async (e: FormEvent) => {
|
||||
e.preventDefault();
|
||||
if (busy || !body.trim() || (guest && !name.trim())) return;
|
||||
// Only a bot fills the field people never see: it is told all went well.
|
||||
if (trap) {
|
||||
setBody('');
|
||||
return;
|
||||
}
|
||||
setBusy(true);
|
||||
setMessage(null);
|
||||
const failure = await onAdd(body.trim(), name.trim());
|
||||
setBusy(false);
|
||||
if (failure) {
|
||||
setMessage(failure);
|
||||
return;
|
||||
}
|
||||
if (guest) rememberName(name.trim());
|
||||
setBody('');
|
||||
};
|
||||
|
||||
const dateOf = (iso: string | null) =>
|
||||
iso ? new Date(iso).toLocaleDateString(locale || undefined, { day: 'numeric', month: 'short' }) : '';
|
||||
|
||||
const toggle = (
|
||||
<button
|
||||
type="button"
|
||||
aria-expanded={open}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
setOpen((shown) => !shown);
|
||||
}}
|
||||
className="inline-flex items-center gap-1.5 self-start text-caption font-medium text-content-faint transition-colors hover:text-content"
|
||||
>
|
||||
<MessageCircle size={13} />
|
||||
{comments.length > 0 ? t('journey.comments.count', { count: comments.length }) : t('journey.comments.write')}
|
||||
</button>
|
||||
);
|
||||
if (!open) return toggle;
|
||||
|
||||
return (
|
||||
// The thread sits inside clickable cards: a click in it must not open the entry.
|
||||
<div className="flex flex-col gap-3" onClick={(e) => e.stopPropagation()} role="presentation">
|
||||
{!defaultOpen && toggle}
|
||||
{comments.length > 0 && (
|
||||
<ul className="flex flex-col gap-2.5">
|
||||
{comments.map((c) => {
|
||||
const mayDelete = !!onDelete && (canModerate || c.own);
|
||||
const mayHide = !!onHide && canModerate;
|
||||
return (
|
||||
<li key={c.id} className={`group flex items-start gap-2 ${c.hidden ? 'opacity-50' : ''}`}>
|
||||
<div className="min-w-0 flex-1">
|
||||
<div className="flex flex-wrap items-center gap-1.5 text-caption">
|
||||
<span className="font-semibold text-content">
|
||||
{c.author_name ?? t('journey.comments.deletedUser')}
|
||||
</span>
|
||||
{c.is_guest && (
|
||||
<span className="rounded-full bg-surface-secondary px-1.5 py-px text-caption text-content-faint">
|
||||
{t('journey.comments.guest')}
|
||||
</span>
|
||||
)}
|
||||
{c.hidden && (
|
||||
<span className="rounded-full bg-surface-secondary px-1.5 py-px text-caption text-content-faint">
|
||||
{t('journey.comments.hidden')}
|
||||
</span>
|
||||
)}
|
||||
<span className="text-content-faint">{dateOf(c.created_at)}</span>
|
||||
</div>
|
||||
<p className="mt-0.5 whitespace-pre-wrap break-words text-body text-content-muted">{c.body}</p>
|
||||
</div>
|
||||
{(mayHide || mayDelete) && (
|
||||
<div className="flex flex-none items-center gap-0.5 opacity-40 transition-opacity group-hover:opacity-100">
|
||||
{mayHide && (
|
||||
<Tooltip
|
||||
label={c.hidden ? t('journey.comments.show') : t('journey.comments.hide')}
|
||||
placement="top"
|
||||
>
|
||||
<button
|
||||
type="button"
|
||||
aria-label={c.hidden ? t('journey.comments.show') : t('journey.comments.hide')}
|
||||
onClick={() => void onHide!(c.id, !c.hidden)}
|
||||
className="flex h-7 w-7 items-center justify-center rounded-full text-content-faint hover:bg-surface-secondary hover:text-content"
|
||||
>
|
||||
{c.hidden ? <Eye size={13} /> : <EyeOff size={13} />}
|
||||
</button>
|
||||
</Tooltip>
|
||||
)}
|
||||
{mayDelete && (
|
||||
<Tooltip label={t('common.delete')} placement="top">
|
||||
<button
|
||||
type="button"
|
||||
aria-label={t('common.delete')}
|
||||
onClick={() => void onDelete!(c.id)}
|
||||
className="flex h-7 w-7 items-center justify-center rounded-full text-content-faint hover:bg-danger-soft hover:text-danger"
|
||||
>
|
||||
<Trash2 size={13} />
|
||||
</button>
|
||||
</Tooltip>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
</li>
|
||||
);
|
||||
})}
|
||||
</ul>
|
||||
)}
|
||||
|
||||
{canWrite && (
|
||||
<form onSubmit={(e) => void submit(e)} className="flex flex-col gap-2">
|
||||
{guest && (
|
||||
<input
|
||||
value={name}
|
||||
onChange={(e) => setName(e.target.value)}
|
||||
maxLength={JOURNEY_GUEST_NAME_MAX_LENGTH}
|
||||
placeholder={t('common.name')}
|
||||
aria-label={t('common.name')}
|
||||
autoComplete="name"
|
||||
className="w-full rounded-xl border border-edge bg-surface px-3 py-2 text-body text-content outline-none placeholder:text-content-faint focus:border-content-faint"
|
||||
/>
|
||||
)}
|
||||
{/* Left empty by people: the field sits off screen and out of the tab order. */}
|
||||
<input
|
||||
value={trap}
|
||||
onChange={(e) => setTrap(e.target.value)}
|
||||
name="website"
|
||||
tabIndex={-1}
|
||||
autoComplete="off"
|
||||
aria-hidden="true"
|
||||
className="absolute -start-[9999px] h-px w-px opacity-0"
|
||||
/>
|
||||
<div className="flex items-end gap-2">
|
||||
<textarea
|
||||
value={body}
|
||||
onChange={(e) => setBody(e.target.value)}
|
||||
maxLength={JOURNEY_COMMENT_MAX_LENGTH}
|
||||
rows={1}
|
||||
placeholder={t('journey.comments.write')}
|
||||
aria-label={t('journey.comments.write')}
|
||||
className="max-h-40 min-h-[38px] flex-1 resize-none rounded-xl border border-edge bg-surface px-3 py-2 text-body text-content outline-none [field-sizing:content] placeholder:text-content-faint focus:border-content-faint"
|
||||
/>
|
||||
<Tooltip label={t('journey.comments.send')} placement="top">
|
||||
<button
|
||||
type="submit"
|
||||
aria-label={t('journey.comments.send')}
|
||||
disabled={busy || !body.trim() || (guest && !name.trim())}
|
||||
className="flex h-[38px] w-[38px] flex-none items-center justify-center rounded-full bg-accent text-accent-text transition-opacity hover:bg-accent-hover disabled:opacity-40"
|
||||
>
|
||||
<SendHorizontal size={15} />
|
||||
</button>
|
||||
</Tooltip>
|
||||
</div>
|
||||
{message && <p className="text-caption text-danger">{message}</p>}
|
||||
{publicHint && !guest && (
|
||||
<p className="text-caption text-content-faint">{t('journey.comments.publicHint')}</p>
|
||||
)}
|
||||
</form>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
interface MemberThreadState {
|
||||
byEntry: ReadonlyMap<number, EntryCommentItem[]>;
|
||||
canModerate: boolean;
|
||||
add: (entryId: number, body: string) => Promise<boolean>;
|
||||
setHidden: (commentId: number, hidden: boolean) => Promise<boolean>;
|
||||
remove: (commentId: number) => Promise<boolean>;
|
||||
}
|
||||
|
||||
/** The thread under an entry for the journey's members, on `useJourneyComments`. */
|
||||
export function MemberEntryComments({
|
||||
entryId,
|
||||
thread,
|
||||
defaultOpen,
|
||||
}: {
|
||||
entryId: number;
|
||||
thread: MemberThreadState;
|
||||
defaultOpen?: boolean;
|
||||
}) {
|
||||
const { t } = useTranslation();
|
||||
const toast = useToast();
|
||||
const failed = (ok: boolean) => {
|
||||
if (!ok) toast.error(t('journey.comments.failed'));
|
||||
return ok;
|
||||
};
|
||||
return (
|
||||
<JourneyEntryComments
|
||||
comments={thread.byEntry.get(entryId) ?? []}
|
||||
canWrite
|
||||
defaultOpen={defaultOpen}
|
||||
canModerate={thread.canModerate}
|
||||
publicHint
|
||||
onAdd={async (body) => ((await thread.add(entryId, body)) ? null : t('journey.comments.failed'))}
|
||||
onHide={async (id, hidden) => failed(await thread.setHidden(id, hidden))}
|
||||
onDelete={async (id) => failed(await thread.remove(id))}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
type GuestOutcome = 'ok' | 'closed' | 'gone' | 'locked' | 'rate_limited' | 'invalid' | 'failed';
|
||||
|
||||
interface GuestThreadState {
|
||||
commentsOpen: boolean;
|
||||
byEntry: ReadonlyMap<number, EntryCommentItem[]>;
|
||||
addComment: (entryId: number, name: string, body: string) => Promise<GuestOutcome>;
|
||||
}
|
||||
|
||||
const GUEST_OUTCOME_KEYS: Record<Exclude<GuestOutcome, 'ok'>, string> = {
|
||||
closed: 'journey.comments.closed',
|
||||
gone: 'journey.public.notFoundMessage',
|
||||
locked: 'journey.comments.locked',
|
||||
rate_limited: 'common.tooManyAttempts',
|
||||
invalid: 'journey.comments.invalid',
|
||||
failed: 'journey.comments.failed',
|
||||
};
|
||||
|
||||
/** The thread under an entry on the shared page, for readers who sign with a name. */
|
||||
export function GuestEntryComments({ entryId, thread }: { entryId: number; thread: GuestThreadState }) {
|
||||
const { t } = useTranslation();
|
||||
if (!thread.commentsOpen) return null;
|
||||
return (
|
||||
<JourneyEntryComments
|
||||
comments={thread.byEntry.get(entryId) ?? []}
|
||||
canWrite
|
||||
guest
|
||||
onAdd={async (body, name) => {
|
||||
const outcome = await thread.addComment(entryId, name, body);
|
||||
return outcome === 'ok' ? null : t(GUEST_OUTCOME_KEYS[outcome]);
|
||||
}}
|
||||
/>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
import { Images } from 'lucide-react';
|
||||
import { useId } from 'react';
|
||||
import { useTranslation } from '../../i18n';
|
||||
import {
|
||||
DialogButton,
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogShell,
|
||||
DialogTile,
|
||||
FooterSpacer,
|
||||
NEUTRAL_TINT,
|
||||
} from '../shared/DialogShell';
|
||||
import JourneyFromPhotosList from './JourneyFromPhotosList';
|
||||
import { useJourneyEntriesFromPhotos } from './useJourneyEntriesFromPhotos';
|
||||
|
||||
/**
|
||||
* "Entries from photos" on the desktop (#1920): the gallery's loose photos as
|
||||
* proposed drafts, chosen and named here, written in one go.
|
||||
*/
|
||||
export default function JourneyFromPhotosDialog({
|
||||
journeyId,
|
||||
coverOf,
|
||||
onCreated,
|
||||
onClose,
|
||||
}: {
|
||||
journeyId: number;
|
||||
coverOf: (galleryPhotoId: number) => string | null;
|
||||
onCreated: () => void;
|
||||
onClose: () => void;
|
||||
}) {
|
||||
const { t } = useTranslation();
|
||||
const labelId = useId();
|
||||
const state = useJourneyEntriesFromPhotos({ journeyId, onCreated, onClose });
|
||||
const allOn = state.clusters.length > 0 && state.selectedCount === state.clusters.length;
|
||||
|
||||
return (
|
||||
<DialogShell
|
||||
onClose={onClose}
|
||||
labelledBy={labelId}
|
||||
width="detail"
|
||||
header={
|
||||
<DialogHeader
|
||||
tile={
|
||||
<DialogTile>
|
||||
<Images size={18} />
|
||||
</DialogTile>
|
||||
}
|
||||
tint={NEUTRAL_TINT}
|
||||
labelId={labelId}
|
||||
onClose={onClose}
|
||||
title={t('journey.fromPhotos.title')}
|
||||
sub={t('journey.fromPhotos.text')}
|
||||
subWraps
|
||||
/>
|
||||
}
|
||||
footer={
|
||||
<DialogFooter>
|
||||
{state.clusters.length > 1 && (
|
||||
<DialogButton onClick={() => state.selectAll(!allOn)}>
|
||||
{allOn ? t('common.deselectAll') : t('common.selectAll')}
|
||||
</DialogButton>
|
||||
)}
|
||||
<FooterSpacer />
|
||||
<DialogButton onClick={onClose}>{t('common.cancel')}</DialogButton>
|
||||
<DialogButton variant="primary" disabled={!state.canSubmit} onClick={state.submit}>
|
||||
{t('journey.fromPhotos.create', { count: state.selectedCount })}
|
||||
</DialogButton>
|
||||
</DialogFooter>
|
||||
}
|
||||
>
|
||||
<div className="px-6 py-5">
|
||||
<JourneyFromPhotosList state={state} coverOf={coverOf} />
|
||||
</div>
|
||||
</DialogShell>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
import { fireEvent, render, screen } from '@testing-library/react';
|
||||
import type { JourneyEntriesFromPhotosCluster } from '@trek/shared';
|
||||
import type { ComponentProps } from 'react';
|
||||
import { describe, expect, it, vi } from 'vitest';
|
||||
|
||||
import JourneyFromPhotosList from './JourneyFromPhotosList';
|
||||
|
||||
vi.mock('../../i18n', () => ({ useTranslation: () => ({ t: (key: string) => key, locale: 'en' }) }));
|
||||
|
||||
type State = ComponentProps<typeof JourneyFromPhotosList>['state'];
|
||||
|
||||
const cluster: JourneyEntriesFromPhotosCluster = {
|
||||
date: '2026-05-14',
|
||||
startTime: '09:00',
|
||||
endTime: '10:00',
|
||||
timezone: 'Europe/Rome',
|
||||
lat: null,
|
||||
lng: null,
|
||||
countryCode: null,
|
||||
locationName: null,
|
||||
suggestedTitle: 'Canal walk',
|
||||
titleSource: 'date',
|
||||
photoIds: [4, 5],
|
||||
photoCount: 2,
|
||||
coverPhotoId: 4,
|
||||
};
|
||||
|
||||
function draftState(patch: Partial<State> = {}): State {
|
||||
return {
|
||||
clusters: [],
|
||||
withoutCaptureTime: 0,
|
||||
maxGapMinutes: 180,
|
||||
setMaxGapMinutes: vi.fn(),
|
||||
loading: false,
|
||||
error: null,
|
||||
retry: vi.fn(),
|
||||
isSelected: () => true,
|
||||
titleOf: (item) => item.suggestedTitle,
|
||||
selectedCount: 1,
|
||||
toggle: vi.fn(),
|
||||
selectAll: vi.fn(),
|
||||
rename: vi.fn(),
|
||||
busy: false,
|
||||
canSubmit: true,
|
||||
submit: vi.fn(),
|
||||
...patch,
|
||||
};
|
||||
}
|
||||
|
||||
describe('choosing gallery photo drafts', () => {
|
||||
it('shows waiting, retry and empty states in the same panel', () => {
|
||||
const coverOf = () => null;
|
||||
const retry = vi.fn();
|
||||
const { container, rerender } = render(
|
||||
<JourneyFromPhotosList coverOf={coverOf} state={draftState({ loading: true })} />
|
||||
);
|
||||
expect(container.querySelector('[aria-busy="true"]')).not.toBeNull();
|
||||
rerender(<JourneyFromPhotosList coverOf={coverOf} state={draftState({ error: 'Unavailable', retry })} />);
|
||||
expect(screen.getByText('Unavailable')).toBeVisible();
|
||||
fireEvent.click(screen.getByRole('button', { name: 'common.errorRetry' }));
|
||||
expect(retry).toHaveBeenCalledOnce();
|
||||
rerender(<JourneyFromPhotosList coverOf={coverOf} state={draftState()} />);
|
||||
expect(screen.getByText('journey.fromPhotos.empty')).toBeVisible();
|
||||
});
|
||||
|
||||
it('renders a group, can change its selection and title, and explains missing capture data', () => {
|
||||
const coverOf = vi.fn(() => '/gallery/4');
|
||||
const toggle = vi.fn();
|
||||
const rename = vi.fn();
|
||||
const state = draftState({ clusters: [cluster], withoutCaptureTime: 1, toggle, rename });
|
||||
const { rerender } = render(<JourneyFromPhotosList coverOf={coverOf} state={state} />);
|
||||
expect(coverOf).toHaveBeenCalledWith(4);
|
||||
expect(screen.getByText('journey.fromPhotos.noPlace')).toBeVisible();
|
||||
expect(screen.getByText('journey.fromPhotos.withoutTime')).toBeVisible();
|
||||
const selection = screen.getByRole('checkbox', { name: 'Canal walk' });
|
||||
expect(selection).toBeChecked();
|
||||
fireEvent.click(selection);
|
||||
expect(toggle).toHaveBeenCalledWith(cluster);
|
||||
const title = screen.getByRole('textbox', { name: 'common.title' });
|
||||
fireEvent.change(title, { target: { value: 'Venice' } });
|
||||
expect(rename).toHaveBeenCalledWith(cluster, 'Venice');
|
||||
|
||||
rerender(<JourneyFromPhotosList coverOf={() => null} state={{ ...state, isSelected: () => false }} />);
|
||||
expect(title).toBeDisabled();
|
||||
expect(selection).not.toBeChecked();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,130 @@
|
||||
import type { JourneyEntriesFromPhotosCluster } from '@trek/shared';
|
||||
import { Check, Image as ImageIcon, MapPin } from 'lucide-react';
|
||||
import { useTranslation } from '../../i18n';
|
||||
import type { useJourneyEntriesFromPhotos } from './useJourneyEntriesFromPhotos';
|
||||
|
||||
type FromPhotos = ReturnType<typeof useJourneyEntriesFromPhotos>;
|
||||
|
||||
function Cover({ src }: { src: string | null }) {
|
||||
if (!src) {
|
||||
return (
|
||||
<span className="flex h-12 w-12 flex-none items-center justify-center rounded-xl bg-surface-secondary text-content-faint">
|
||||
<ImageIcon size={16} />
|
||||
</span>
|
||||
);
|
||||
}
|
||||
return <img src={src} alt="" className="h-12 w-12 flex-none rounded-xl object-cover" loading="lazy" />;
|
||||
}
|
||||
|
||||
/**
|
||||
* The groups the gallery's loose photos fall into (#1920), one row each: a
|
||||
* tick, the first picture, a title to keep or change, and when and how many.
|
||||
* The desktop dialog and the phone sheet both draw this list.
|
||||
*/
|
||||
export default function JourneyFromPhotosList({
|
||||
state,
|
||||
coverOf,
|
||||
}: {
|
||||
state: FromPhotos;
|
||||
/** The thumbnail of a gallery photo, or null for a clip without a poster. */
|
||||
coverOf: (galleryPhotoId: number) => string | null;
|
||||
}) {
|
||||
const { t, locale } = useTranslation();
|
||||
|
||||
const dayOf = (cluster: JourneyEntriesFromPhotosCluster) =>
|
||||
new Date(`${cluster.date}T00:00:00`).toLocaleDateString(locale || undefined, {
|
||||
weekday: 'short',
|
||||
day: 'numeric',
|
||||
month: 'short',
|
||||
});
|
||||
|
||||
if (state.loading && state.clusters.length === 0) {
|
||||
return (
|
||||
<div className="flex flex-col gap-2" aria-busy="true">
|
||||
{[0, 1, 2].map((i) => (
|
||||
<div key={i} className="h-[68px] animate-pulse rounded-2xl bg-surface-secondary" />
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
if (state.error && state.clusters.length === 0) {
|
||||
return (
|
||||
<div className="flex flex-col items-center gap-3 py-6 text-center">
|
||||
<p className="text-body text-content-muted">{state.error}</p>
|
||||
<button
|
||||
type="button"
|
||||
onClick={state.retry}
|
||||
className="rounded-full bg-surface-secondary px-3.5 py-1.5 text-caption font-semibold text-content hover:bg-surface-tertiary"
|
||||
>
|
||||
{t('common.errorRetry')}
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
if (state.clusters.length === 0) {
|
||||
return <p className="py-6 text-center text-body text-content-muted">{t('journey.fromPhotos.empty')}</p>;
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="flex flex-col gap-2">
|
||||
{state.clusters.map((cluster) => {
|
||||
const on = state.isSelected(cluster);
|
||||
return (
|
||||
<div
|
||||
key={`${cluster.date}-${cluster.coverPhotoId}`}
|
||||
className={`flex items-center gap-3 rounded-2xl border p-2.5 transition-colors ${
|
||||
on ? 'border-edge bg-surface-card' : 'border-edge-faint opacity-60'
|
||||
}`}
|
||||
>
|
||||
<button
|
||||
type="button"
|
||||
role="checkbox"
|
||||
aria-checked={on}
|
||||
aria-label={state.titleOf(cluster)}
|
||||
onClick={() => state.toggle(cluster)}
|
||||
className={`flex h-6 w-6 flex-none items-center justify-center rounded-full border transition-colors ${
|
||||
on ? 'border-accent bg-accent text-accent-text' : 'border-edge text-transparent'
|
||||
}`}
|
||||
>
|
||||
<Check size={13} strokeWidth={2.6} />
|
||||
</button>
|
||||
<Cover src={coverOf(cluster.coverPhotoId)} />
|
||||
<div className="min-w-0 flex-1">
|
||||
<input
|
||||
value={state.titleOf(cluster)}
|
||||
onChange={(e) => state.rename(cluster, e.target.value)}
|
||||
disabled={!on}
|
||||
aria-label={t('common.title')}
|
||||
className="-mx-1.5 w-[calc(100%+12px)] truncate rounded-lg bg-transparent px-1.5 py-0.5 text-body font-semibold text-content outline-none hover:bg-surface-secondary focus:bg-surface-secondary disabled:hover:bg-transparent"
|
||||
/>
|
||||
<div className="mt-0.5 flex flex-wrap items-center gap-1.5 text-caption text-content-faint">
|
||||
<span>{dayOf(cluster)}</span>
|
||||
<span className="tabular-nums">
|
||||
{cluster.startTime === cluster.endTime
|
||||
? cluster.startTime
|
||||
: t('journey.fromPhotos.timeRange', { start: cluster.startTime, end: cluster.endTime })}
|
||||
</span>
|
||||
<span className="rounded-full bg-surface-secondary px-1.5 py-px tabular-nums">
|
||||
{t('journey.fromPhotos.photoCount', { count: cluster.photoCount })}
|
||||
</span>
|
||||
{cluster.lat === null && (
|
||||
<span className="inline-flex items-center gap-0.5">
|
||||
<MapPin size={10} />
|
||||
{t('journey.fromPhotos.noPlace')}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
{state.withoutCaptureTime > 0 && (
|
||||
<p className="px-1 pt-1 text-caption text-content-faint">
|
||||
{t('journey.fromPhotos.withoutTime', { count: state.withoutCaptureTime })}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
import {
|
||||
JOURNEY_SHARE_PASSWORD_MAX_LENGTH,
|
||||
JOURNEY_SHARE_PASSWORD_MIN_LENGTH,
|
||||
journeySharePasswordSchema,
|
||||
} from '@trek/shared';
|
||||
import { Lock } from 'lucide-react';
|
||||
import { useId, useState, type FormEvent } from 'react';
|
||||
import { useTranslation } from '../../i18n';
|
||||
import {
|
||||
DialogButton,
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogShell,
|
||||
DialogTile,
|
||||
FooterSpacer,
|
||||
NEUTRAL_TINT,
|
||||
} from '../shared/DialogShell';
|
||||
|
||||
/**
|
||||
* Asks the owner for a share link's new password (#2553). The old one is never
|
||||
* shown: a password is only ever set anew or taken off.
|
||||
*/
|
||||
export default function JourneySharePasswordDialog({
|
||||
onSave,
|
||||
onClose,
|
||||
}: {
|
||||
onSave: (password: string) => Promise<boolean>;
|
||||
onClose: () => void;
|
||||
}) {
|
||||
const { t } = useTranslation();
|
||||
const labelId = useId();
|
||||
const [password, setPassword] = useState('');
|
||||
const [busy, setBusy] = useState(false);
|
||||
const valid = journeySharePasswordSchema.safeParse(password).success;
|
||||
|
||||
const submit = async (e: FormEvent) => {
|
||||
e.preventDefault();
|
||||
if (!valid || busy) return;
|
||||
setBusy(true);
|
||||
await onSave(password);
|
||||
setBusy(false);
|
||||
};
|
||||
|
||||
return (
|
||||
<DialogShell
|
||||
onClose={onClose}
|
||||
labelledBy={labelId}
|
||||
width="narrow"
|
||||
onSubmit={(e) => void submit(e)}
|
||||
header={
|
||||
<DialogHeader
|
||||
tile={
|
||||
<DialogTile>
|
||||
<Lock size={18} />
|
||||
</DialogTile>
|
||||
}
|
||||
tint={NEUTRAL_TINT}
|
||||
labelId={labelId}
|
||||
onClose={onClose}
|
||||
title={t('journey.share.passwordTitle')}
|
||||
sub={t('journey.share.passwordText')}
|
||||
subWraps
|
||||
/>
|
||||
}
|
||||
footer={
|
||||
<DialogFooter>
|
||||
<FooterSpacer />
|
||||
<DialogButton onClick={onClose}>{t('common.cancel')}</DialogButton>
|
||||
<DialogButton variant="primary" type="submit" disabled={!valid || busy}>
|
||||
{t('common.save')}
|
||||
</DialogButton>
|
||||
</DialogFooter>
|
||||
}
|
||||
>
|
||||
<div className="flex flex-col gap-2 px-6 py-5">
|
||||
<input
|
||||
type="password"
|
||||
value={password}
|
||||
onChange={(e) => setPassword(e.target.value)}
|
||||
autoFocus
|
||||
autoComplete="new-password"
|
||||
maxLength={JOURNEY_SHARE_PASSWORD_MAX_LENGTH}
|
||||
placeholder={t('common.password')}
|
||||
aria-label={t('common.password')}
|
||||
className="w-full rounded-xl border border-edge bg-surface px-3.5 py-2.5 text-body text-content outline-none placeholder:text-content-faint focus:border-content-faint"
|
||||
/>
|
||||
<p className="text-caption text-content-faint">
|
||||
{t('journey.share.passwordRule', { minLength: JOURNEY_SHARE_PASSWORD_MIN_LENGTH })}
|
||||
</p>
|
||||
</div>
|
||||
</DialogShell>
|
||||
);
|
||||
}
|
||||
@@ -1,8 +1,137 @@
|
||||
import { Link, List, Grid, MapPin, Check, CalendarRange, Route } from 'lucide-react'
|
||||
import { Link, List, Grid, MapPin, Check, CalendarRange, Route, MessageCircle, BellPlus, Lock, CalendarClock, Eye, X } from 'lucide-react'
|
||||
import { useTranslation } from '../../i18n'
|
||||
import { fs } from '../shared/DialogShell'
|
||||
import { Tooltip } from '../shared/Tooltip'
|
||||
import { SHARE_MAP_EXTRAS, useJourneyShareLink, type JourneyShareLink, type JourneyShareMapExtra } from './useJourneyShareLink'
|
||||
import {
|
||||
SHARE_MAP_EXTRAS, useJourneyShareLink, type JourneyShareLink, type JourneyShareMapExtra, type JourneyShareInteraction,
|
||||
} from './useJourneyShareLink'
|
||||
import { useJourneyShareAccess } from './useJourneyShareAccess'
|
||||
import JourneySharePasswordDialog from './JourneySharePasswordDialog'
|
||||
|
||||
type ShareAccess = ReturnType<typeof useJourneyShareAccess>
|
||||
|
||||
const READER_SWITCHES: { key: JourneyShareInteraction; icon: typeof MessageCircle; labelKey: string; hintKey: string }[] = [
|
||||
{ key: 'allow_comments', icon: MessageCircle, labelKey: 'journey.share.allowComments', hintKey: 'journey.share.allowCommentsHint' },
|
||||
{ key: 'allow_subscriptions', icon: BellPlus, labelKey: 'journey.share.allowFollowers', hintKey: 'journey.share.allowFollowersHint' },
|
||||
]
|
||||
|
||||
/** The addresses following the link, folded into two counts until the owner opens them. */
|
||||
function ShareFollowers({ access }: { access: ShareAccess }) {
|
||||
const { t } = useTranslation()
|
||||
const { followers } = access
|
||||
if (followers.status !== 'ready' || (followers.count === 0 && followers.pending === 0)) return null
|
||||
return (
|
||||
<div className="ms-5 border-s border-edge ps-3">
|
||||
<button
|
||||
type="button"
|
||||
aria-expanded={access.followersOpen}
|
||||
onClick={() => access.setFollowersOpen(!access.followersOpen)}
|
||||
className="flex flex-wrap items-center gap-1.5 py-1 text-caption text-content-muted hover:text-content"
|
||||
>
|
||||
<span className="rounded-full bg-surface-secondary px-2 py-0.5 font-semibold">{t('journey.share.followers', { count: followers.count })}</span>
|
||||
{followers.pending > 0 && (
|
||||
<span className="rounded-full bg-surface-secondary px-2 py-0.5 text-content-faint">{t('journey.share.followersPending', { count: followers.pending })}</span>
|
||||
)}
|
||||
</button>
|
||||
{access.followersOpen && (
|
||||
<ul className="mt-1 flex flex-col">
|
||||
{followers.subscribers.map(sub => (
|
||||
<li key={sub.id} className="group flex items-center gap-2 py-1">
|
||||
<span className={`min-w-0 flex-1 truncate text-caption ${sub.confirmed ? 'text-content' : 'text-content-faint'}`}>{sub.email}</span>
|
||||
<Tooltip label={t('journey.share.removeFollower')} placement="top">
|
||||
<button
|
||||
type="button"
|
||||
aria-label={t('journey.share.removeFollower')}
|
||||
onClick={() => void access.removeFollower(sub.id)}
|
||||
className="flex h-6 w-6 flex-none items-center justify-center rounded-full text-content-faint opacity-40 transition-opacity hover:bg-danger-soft hover:text-danger group-hover:opacity-100"
|
||||
>
|
||||
<X size={12} />
|
||||
</button>
|
||||
</Tooltip>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
/** What readers of the link may do besides reading (#1702, #1669): each off until switched on. */
|
||||
function ShareReaders({ link, access, onToggle }: { link: JourneyShareLink; access: ShareAccess; onToggle: (key: JourneyShareInteraction) => void }) {
|
||||
const { t } = useTranslation()
|
||||
return (
|
||||
<div className="flex flex-col gap-1.5">
|
||||
{READER_SWITCHES.map(({ key, icon: Icon, labelKey, hintKey }) => {
|
||||
// Comments sit under the entries, so they need the timeline shared.
|
||||
const blocked = key === 'allow_comments' && !link.share_timeline
|
||||
const on = !blocked && !!link[key]
|
||||
return (
|
||||
<Tooltip key={key} label={blocked ? t('journey.share.needsTimeline') : ''} placement="top">
|
||||
<button
|
||||
type="button"
|
||||
aria-pressed={on}
|
||||
disabled={blocked}
|
||||
onClick={() => onToggle(key)}
|
||||
className={`flex w-full items-start gap-2.5 rounded-xl border px-3 py-2 text-start transition-colors disabled:cursor-not-allowed disabled:opacity-50 ${
|
||||
on ? 'border-accent bg-accent text-accent-text' : 'border-edge text-content-muted hover:border-content-faint'
|
||||
}`}
|
||||
>
|
||||
<Icon size={13} className="mt-0.5 flex-none" />
|
||||
<span className="flex min-w-0 flex-1 flex-col gap-0.5">
|
||||
<span className="font-medium" style={fs(12, 'body')}>{t(labelKey)}</span>
|
||||
<span className={on ? 'text-accent-text opacity-80' : 'text-content-faint'} style={fs(11)}>{t(hintKey)}</span>
|
||||
</span>
|
||||
{on && <Check size={12} className="mt-0.5 flex-none" />}
|
||||
</button>
|
||||
</Tooltip>
|
||||
)
|
||||
})}
|
||||
{link.allow_subscriptions && <ShareFollowers access={access} />}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
/** Who may open the link and until when (#2553): a password and an end date, both optional. */
|
||||
function ShareAccessCard({ access }: { access: ShareAccess }) {
|
||||
const { t } = useTranslation()
|
||||
return (
|
||||
<div className="flex flex-col rounded-xl border border-edge">
|
||||
<div className="flex items-center gap-2.5 px-3 py-2">
|
||||
<Lock size={13} className="flex-none text-content-muted" />
|
||||
<span className="flex-1 font-medium text-content" style={fs(12, 'body')}>{t('common.password')}</span>
|
||||
{access.hasPassword && (
|
||||
<button type="button" onClick={() => void access.removePassword()} className="rounded-full px-2.5 py-1 text-caption font-semibold text-danger hover:bg-danger-soft">
|
||||
{t('common.remove')}
|
||||
</button>
|
||||
)}
|
||||
<button type="button" onClick={() => access.setPasswordOpen(true)} className="rounded-full bg-surface-secondary px-2.5 py-1 text-caption font-semibold text-content hover:bg-surface-tertiary">
|
||||
{access.hasPassword ? t('common.change') : t('journey.share.passwordSet')}
|
||||
</button>
|
||||
</div>
|
||||
<div className="flex items-center gap-2.5 border-t border-edge px-3 py-2">
|
||||
<CalendarClock size={13} className="flex-none text-content-muted" />
|
||||
<span className="flex-1 font-medium text-content" style={fs(12, 'body')}>{t('journey.share.expires')}</span>
|
||||
{!access.expiry && <span className="text-caption text-content-faint">{t('journey.share.expiresNever')}</span>}
|
||||
<input
|
||||
type="date"
|
||||
value={access.expiry}
|
||||
min={access.minExpiry}
|
||||
onChange={e => access.setExpiry(e.target.value)}
|
||||
aria-label={t('journey.share.expires')}
|
||||
className="rounded-lg border border-edge bg-surface px-2 py-1 text-caption text-content outline-none focus:border-content-faint"
|
||||
/>
|
||||
{access.expiry && (
|
||||
<Tooltip label={t('journey.share.expiresNever')} placement="top">
|
||||
<button type="button" aria-label={t('journey.share.expiresNever')} onClick={() => access.setExpiry('')} className="flex h-6 w-6 items-center justify-center rounded-full text-content-faint hover:bg-surface-secondary hover:text-content">
|
||||
<X size={12} />
|
||||
</button>
|
||||
</Tooltip>
|
||||
)}
|
||||
</div>
|
||||
{access.passwordOpen && <JourneySharePasswordDialog onSave={access.savePassword} onClose={() => access.setPasswordOpen(false)} />}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
const EXTRA_ICONS = { share_plan: CalendarRange, share_recordings: Route } as const
|
||||
|
||||
@@ -46,7 +175,8 @@ function ShareMapExtras({ link, onToggle }: { link: JourneyShareLink; onToggle:
|
||||
|
||||
export default function JourneyShareSection({ journeyId }: { journeyId: number }) {
|
||||
const { t } = useTranslation()
|
||||
const { link, loading, manageable, copied, shareUrl, createLink, togglePerm, deleteLink, copyLink } = useJourneyShareLink(journeyId)
|
||||
const { link, loading, manageable, copied, shareUrl, createLink, togglePerm, deleteLink, copyLink, setProtection } = useJourneyShareLink(journeyId)
|
||||
const access = useJourneyShareAccess(journeyId, link, setProtection)
|
||||
|
||||
if (loading || !manageable) return null
|
||||
|
||||
@@ -81,6 +211,14 @@ export default function JourneyShareSection({ journeyId }: { journeyId: number }
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{access.views > 0 && (
|
||||
<div className="-mt-1.5 flex items-center gap-1.5 ps-2 text-caption text-content-faint">
|
||||
<Eye size={12} />
|
||||
<span>{t('journey.share.views', { count: access.views })}</span>
|
||||
{access.lastViewed && <span>{t('journey.share.lastViewed', { date: access.lastViewed })}</span>}
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Permission toggles */}
|
||||
<div className="flex flex-col gap-1.5">
|
||||
{[
|
||||
@@ -105,6 +243,9 @@ export default function JourneyShareSection({ journeyId }: { journeyId: number }
|
||||
))}
|
||||
<ShareMapExtras link={link} onToggle={key => void togglePerm(key)} />
|
||||
</div>
|
||||
|
||||
<ShareReaders link={link} access={access} onToggle={key => void togglePerm(key)} />
|
||||
<ShareAccessCard access={access} />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
Sun, CloudSun, Cloud, CloudRain, CloudLightning, Snowflake,
|
||||
ThumbsUp, ThumbsDown,
|
||||
} from 'lucide-react'
|
||||
import type { CSSProperties } from 'react'
|
||||
import type { CSSProperties, ReactNode } from 'react'
|
||||
import JournalBody from './JournalBody'
|
||||
import { useTranslation } from '../../i18n'
|
||||
import { formatLocationName } from '../../utils/formatters'
|
||||
@@ -67,9 +67,11 @@ interface Props {
|
||||
onEdit: () => void
|
||||
onDelete: () => void
|
||||
onPhotoClick: (photos: JourneyPhoto[], index: number) => void
|
||||
/** The comment thread under the entry (#1702), drawn by the screen that opened it. */
|
||||
comments?: ReactNode
|
||||
}
|
||||
|
||||
export default function MobileEntryView({ entry, readOnly, publicPhotoUrl, onClose, onEdit, onDelete, onPhotoClick }: Props) {
|
||||
export default function MobileEntryView({ entry, readOnly, publicPhotoUrl, onClose, onEdit, onDelete, onPhotoClick, comments }: Props) {
|
||||
const { t, locale } = useTranslation()
|
||||
const photos = entry.photos || []
|
||||
const mood = entry.mood ? MOOD_CONFIG[entry.mood] : null
|
||||
@@ -292,6 +294,8 @@ export default function MobileEntryView({ entry, readOnly, publicPhotoUrl, onClo
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
{comments && <div className="mt-6 border-t border-zinc-100 pt-4 dark:border-zinc-800">{comments}</div>}
|
||||
</div>
|
||||
</div>
|
||||
</div >
|
||||
|
||||
@@ -117,7 +117,7 @@ export function gpxImportErrorText(err: unknown, t: Translate): string {
|
||||
case 'gpx_too_many_days':
|
||||
return t('journey.recording.gpx.error.tooManyDays');
|
||||
default:
|
||||
return t('common.errorTitle');
|
||||
return t('journey.recording.gpx.failed');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,13 @@
|
||||
import type { JourneyGpxImportOptions, JourneyGpxImportResult, JourneyRecordedDay } from '@trek/shared';
|
||||
import type {
|
||||
JourneyGpxImportOptions,
|
||||
JourneyGpxImportResult,
|
||||
JourneyRecordedDay,
|
||||
JourneyRecordingSource,
|
||||
} from '@trek/shared';
|
||||
import { useCallback, useState } from 'react';
|
||||
import { useTranslation } from '../../i18n';
|
||||
import { journeyRecordingsRepo } from '../../repo/journeyRecordingsRepo';
|
||||
import { useToast } from '../shared/Toast';
|
||||
import { gpxImportErrorText } from './journeyRecordingModel';
|
||||
|
||||
interface GpxImportState {
|
||||
@@ -21,13 +27,22 @@ const IDLE: GpxImportState = { busy: false, error: null, result: null };
|
||||
* people on the journey hear of them through `journey:recording:updated`.
|
||||
* Online only: the server cuts the file into days.
|
||||
*/
|
||||
export function useJourneyGpxImport(journeyId: number | null, onKept: (days: readonly JourneyRecordedDay[]) => void) {
|
||||
export function useJourneyGpxImport(
|
||||
journeyId: number | null,
|
||||
onKept: (days: readonly JourneyRecordedDay[]) => void,
|
||||
onRemoved?: (date: string, source?: JourneyRecordingSource) => void
|
||||
) {
|
||||
const { t } = useTranslation();
|
||||
const toast = useToast();
|
||||
const [state, setState] = useState<GpxImportState>(IDLE);
|
||||
|
||||
/** Reads the file, `date` keeping only that local day; answers what was kept, or null when nothing was. */
|
||||
const importGpx = useCallback(
|
||||
async (file: Blob, options?: JourneyGpxImportOptions): Promise<JourneyGpxImportResult | null> => {
|
||||
async (
|
||||
file: Blob,
|
||||
options?: JourneyGpxImportOptions,
|
||||
onFailure?: (message: string) => void
|
||||
): Promise<JourneyGpxImportResult | null> => {
|
||||
if (journeyId === null) return null;
|
||||
setState({ busy: true, error: null, result: null });
|
||||
try {
|
||||
@@ -36,7 +51,9 @@ export function useJourneyGpxImport(journeyId: number | null, onKept: (days: rea
|
||||
setState({ busy: false, error: null, result });
|
||||
return result;
|
||||
} catch (err) {
|
||||
setState({ busy: false, error: gpxImportErrorText(err, t), result: null });
|
||||
const message = gpxImportErrorText(err, t);
|
||||
setState({ busy: false, error: message, result: null });
|
||||
onFailure?.(message);
|
||||
return null;
|
||||
}
|
||||
},
|
||||
@@ -45,5 +62,31 @@ export function useJourneyGpxImport(journeyId: number | null, onKept: (days: rea
|
||||
|
||||
const reset = useCallback(() => setState(IDLE), []);
|
||||
|
||||
return { ...state, importGpx, reset };
|
||||
/** One day's route from a file, picked in that day's header; says how it went in a toast. */
|
||||
const importDayFile = useCallback(
|
||||
async (file: Blob, date: string) => {
|
||||
const result = await importGpx(file, { date }, toast.error);
|
||||
if (!result) return;
|
||||
toast.success(t('journey.recording.gpx.imported', { count: result.days.length }));
|
||||
if (result.untimedPoints > 0) toast.info(t('journey.recording.gpx.untimed', { count: result.untimedPoints }));
|
||||
},
|
||||
[importGpx, toast, t]
|
||||
);
|
||||
|
||||
/** Drops the day's GPX route; a Dawarich route of the same day stays. */
|
||||
const removeDay = useCallback(
|
||||
async (date: string) => {
|
||||
if (journeyId === null) return;
|
||||
try {
|
||||
await journeyRecordingsRepo.remove(journeyId, date, 'gpx');
|
||||
onRemoved?.(date, 'gpx');
|
||||
toast.success(t('journey.recording.removedToast'));
|
||||
} catch {
|
||||
toast.error(t('journey.recording.gpx.removeFailed'));
|
||||
}
|
||||
},
|
||||
[journeyId, onRemoved, toast, t]
|
||||
);
|
||||
|
||||
return { ...state, importGpx, importDayFile, removeDay, reset };
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
import { act, renderHook, waitFor } from '@testing-library/react';
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest';
|
||||
|
||||
import { expiryDay, expiryIso, useJourneyShareAccess } from './useJourneyShareAccess';
|
||||
import type { JourneyShareLink } from './useJourneyShareLink';
|
||||
|
||||
const mocks = vi.hoisted(() => ({
|
||||
toast: { success: vi.fn(), error: vi.fn() },
|
||||
useSubscribers: vi.fn(),
|
||||
remove: vi.fn(),
|
||||
}));
|
||||
vi.mock('../../i18n', () => ({ useTranslation: () => ({ t: (key: string) => key, locale: 'en' }) }));
|
||||
vi.mock('../shared/Toast', () => ({ useToast: () => mocks.toast }));
|
||||
vi.mock('./useJourneySubscribers', () => ({ useJourneySubscribers: mocks.useSubscribers }));
|
||||
|
||||
const LINK: JourneyShareLink = {
|
||||
token: 'abc',
|
||||
share_timeline: true,
|
||||
share_gallery: true,
|
||||
share_map: true,
|
||||
has_password: true,
|
||||
view_count: 4,
|
||||
last_viewed_at: '2026-11-30T12:00:00Z',
|
||||
allow_subscriptions: true,
|
||||
};
|
||||
|
||||
beforeEach(() => {
|
||||
vi.clearAllMocks();
|
||||
mocks.useSubscribers.mockReturnValue({ remove: mocks.remove });
|
||||
});
|
||||
|
||||
describe('owner access settings', () => {
|
||||
it('uses the end of the owner’s local day for the share deadline', () => {
|
||||
const date = '2026-11-30';
|
||||
const expires = expiryIso(date);
|
||||
expect(expires).toBe(new Date('2026-11-30T23:59:59').toISOString());
|
||||
expect(expiryDay(expires)).toBe(date);
|
||||
expect(expiryIso('')).toBeNull();
|
||||
expect(expiryIso('invalid')).toBeNull();
|
||||
expect(expiryDay(undefined)).toBe('');
|
||||
expect(expiryDay('invalid')).toBe('');
|
||||
});
|
||||
|
||||
it('keeps the dialog open after a refused password write and closes it after a retry', async () => {
|
||||
const write = vi.fn().mockResolvedValueOnce(false).mockResolvedValue(true);
|
||||
const { result } = renderHook(() => useJourneyShareAccess(7, LINK, write));
|
||||
expect(result.current.hasPassword).toBe(true);
|
||||
expect(result.current.views).toBe(4);
|
||||
expect(result.current.lastViewed).toBeTruthy();
|
||||
expect(mocks.useSubscribers).toHaveBeenCalledWith(7, true);
|
||||
act(() => result.current.setPasswordOpen(true));
|
||||
await act(async () => expect(await result.current.savePassword('abcd')).toBe(false));
|
||||
expect(result.current.passwordOpen).toBe(true);
|
||||
await act(async () => expect(await result.current.savePassword('abcde')).toBe(true));
|
||||
expect(result.current.passwordOpen).toBe(false);
|
||||
expect(mocks.toast.success).toHaveBeenCalledWith('journey.share.passwordSaved');
|
||||
await act(async () => result.current.removePassword());
|
||||
expect(write).toHaveBeenLastCalledWith({ password: null });
|
||||
act(() => result.current.setExpiry(''));
|
||||
expect(write).toHaveBeenLastCalledWith({ expires_at: null });
|
||||
});
|
||||
|
||||
it('explains a failed removal of a subscriber', async () => {
|
||||
mocks.remove.mockResolvedValue(false);
|
||||
const { result } = renderHook(() => useJourneyShareAccess(7, null, vi.fn()));
|
||||
expect(result.current.lastViewed).toBeNull();
|
||||
expect(result.current.views).toBe(0);
|
||||
expect(mocks.useSubscribers).toHaveBeenCalledWith(7, false);
|
||||
await act(async () => result.current.removeFollower(2));
|
||||
await waitFor(() => expect(mocks.toast.error).toHaveBeenCalledWith('journey.share.followerRemoveFailed'));
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,83 @@
|
||||
import { useState } from 'react';
|
||||
import { useTranslation } from '../../i18n';
|
||||
import { useToast } from '../shared/Toast';
|
||||
import type { JourneyShareLink } from './useJourneyShareLink';
|
||||
import { useJourneySubscribers } from './useJourneySubscribers';
|
||||
|
||||
type SetProtection = (change: { password?: string | null; expires_at?: string | null }) => Promise<boolean>;
|
||||
|
||||
/** The local day an ISO expiry falls on, for a date field. */
|
||||
export function expiryDay(iso: string | null | undefined): string {
|
||||
if (!iso) return '';
|
||||
const d = new Date(iso);
|
||||
if (Number.isNaN(d.getTime())) return '';
|
||||
const pad = (n: number) => String(n).padStart(2, '0');
|
||||
return `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())}`;
|
||||
}
|
||||
|
||||
/** A link picked to run out on a day works until that day is over, in the owner's zone. */
|
||||
export function expiryIso(day: string): string | null {
|
||||
if (!day) return null;
|
||||
const end = new Date(`${day}T23:59:59`);
|
||||
return Number.isNaN(end.getTime()) ? null : end.toISOString();
|
||||
}
|
||||
|
||||
/** Today as a date field's lower bound. */
|
||||
export function todayDay(): string {
|
||||
return expiryDay(new Date().toISOString());
|
||||
}
|
||||
|
||||
/**
|
||||
* The owner's controls beside a journey's share switches (#2553, #1669), behind
|
||||
* the desktop share section and the phone settings sheet alike: the password
|
||||
* dialog, the expiry day, how often the link was opened, and the addresses that
|
||||
* follow it.
|
||||
*/
|
||||
export function useJourneyShareAccess(journeyId: number, link: JourneyShareLink | null, setProtection: SetProtection) {
|
||||
const { t, locale } = useTranslation();
|
||||
const toast = useToast();
|
||||
const [passwordOpen, setPasswordOpen] = useState(false);
|
||||
const [followersOpen, setFollowersOpen] = useState(false);
|
||||
const followers = useJourneySubscribers(journeyId, !!link?.allow_subscriptions);
|
||||
|
||||
const savePassword = async (password: string) => {
|
||||
const ok = await setProtection({ password });
|
||||
if (ok) {
|
||||
setPasswordOpen(false);
|
||||
toast.success(t('journey.share.passwordSaved'));
|
||||
}
|
||||
return ok;
|
||||
};
|
||||
|
||||
const removePassword = async () => {
|
||||
if (await setProtection({ password: null })) toast.success(t('journey.share.passwordRemoved'));
|
||||
};
|
||||
|
||||
const setExpiry = (day: string) => void setProtection({ expires_at: expiryIso(day) });
|
||||
|
||||
const removeFollower = async (id: number) => {
|
||||
if (!(await followers.remove(id))) toast.error(t('journey.share.followerRemoveFailed'));
|
||||
};
|
||||
|
||||
const views = link?.view_count ?? 0;
|
||||
const lastViewed = link?.last_viewed_at
|
||||
? new Date(link.last_viewed_at).toLocaleDateString(locale || undefined, { day: 'numeric', month: 'short' })
|
||||
: null;
|
||||
|
||||
return {
|
||||
hasPassword: !!link?.has_password,
|
||||
passwordOpen,
|
||||
setPasswordOpen,
|
||||
savePassword,
|
||||
removePassword,
|
||||
expiry: expiryDay(link?.expires_at),
|
||||
minExpiry: todayDay(),
|
||||
setExpiry,
|
||||
views,
|
||||
lastViewed,
|
||||
followers,
|
||||
followersOpen,
|
||||
setFollowersOpen,
|
||||
removeFollower,
|
||||
};
|
||||
}
|
||||
@@ -55,6 +55,19 @@ describe('useJourneyShareLink', () => {
|
||||
expect(result.current.shareUrl).toBe(`${window.location.origin}/public/journey/tok`);
|
||||
});
|
||||
|
||||
it('keeps the previous link out of the settings of another journey', async () => {
|
||||
server.use(
|
||||
http.get('/api/journeys/8/share-link', () => HttpResponse.json({ error: 'forbidden' }, { status: 403 }))
|
||||
);
|
||||
const { result, rerender } = renderHook(({ id }) => useJourneyShareLink(id), { initialProps: { id: 7 } });
|
||||
await waitFor(() => expect(result.current.shareUrl).toContain('/tok'));
|
||||
rerender({ id: 8 });
|
||||
expect(result.current.link).toBeNull();
|
||||
expect(result.current.manageable).toBe(false);
|
||||
await waitFor(() => expect(result.current.loading).toBe(false));
|
||||
expect(result.current.shareUrl).toBe('');
|
||||
});
|
||||
|
||||
it('FE-JRN-SHAREHOOK-003: a 403 marks the link as not this user to manage, other errors do not', async () => {
|
||||
server.use(http.get('/api/journeys/7/share-link', () => HttpResponse.json({ error: 'no' }, { status: 403 })));
|
||||
const refused = await loaded();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { useEffect, useState } from 'react';
|
||||
import { useEffect, useState, type SetStateAction } from 'react';
|
||||
|
||||
import { journeyApi } from '../../api/client';
|
||||
import { useCopied } from '../../hooks/useCopied';
|
||||
@@ -70,6 +70,12 @@ export function journeyShareUrl(link: JourneyShareLink | null, origin: string):
|
||||
return link ? `${origin}/public/journey/${link.token}` : '';
|
||||
}
|
||||
|
||||
interface LoadedShareLink {
|
||||
journeyId: number;
|
||||
link: JourneyShareLink | null;
|
||||
manageable: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* A journey's public share link, behind both the desktop share section and the phone
|
||||
* settings sheet, which render their own markup over it: load it, create it with every
|
||||
@@ -79,25 +85,31 @@ export function journeyShareUrl(link: JourneyShareLink | null, origin: string):
|
||||
export function useJourneyShareLink(journeyId: number) {
|
||||
const { t } = useTranslation();
|
||||
const toast = useToast();
|
||||
const [link, setLink] = useState<JourneyShareLink | null>(null);
|
||||
const [loading, setLoading] = useState(true);
|
||||
const [loaded, setLoaded] = useState<LoadedShareLink | null>(null);
|
||||
const current = loaded?.journeyId === journeyId ? loaded : null;
|
||||
const link = current?.link ?? null;
|
||||
const { copied, copy } = useCopied();
|
||||
/** The share token is the owner's to manage; a contributor is refused. */
|
||||
const [manageable, setManageable] = useState(true);
|
||||
|
||||
useEffect(() => {
|
||||
let cancelled = false;
|
||||
journeyApi
|
||||
.getShareLink(journeyId)
|
||||
.then((d) => setLink(d.link || null))
|
||||
.catch((err: { response?: { status?: number } }) => {
|
||||
// A 403 is the server saying this is not yours to manage. Showing the
|
||||
// section anyway would offer an editor a "create link" button that is
|
||||
// refused the moment they press it.
|
||||
if (err?.response?.status === 403) setManageable(false);
|
||||
.then((d) => {
|
||||
if (!cancelled) setLoaded({ journeyId, link: d.link ?? null, manageable: true });
|
||||
})
|
||||
.finally(() => setLoading(false));
|
||||
.catch((err: { response?: { status?: number } }) => {
|
||||
if (!cancelled) setLoaded({ journeyId, link: null, manageable: err?.response?.status !== 403 });
|
||||
});
|
||||
return () => {
|
||||
cancelled = true;
|
||||
};
|
||||
}, [journeyId]);
|
||||
|
||||
const setLink = (next: SetStateAction<JourneyShareLink | null>) =>
|
||||
setLoaded((old) => {
|
||||
if (old?.journeyId !== journeyId) return old;
|
||||
return { ...old, link: typeof next === 'function' ? next(old.link) : next };
|
||||
});
|
||||
|
||||
const createLink = async () => {
|
||||
try {
|
||||
const res = await journeyApi.createShareLink(journeyId, {
|
||||
@@ -163,5 +175,16 @@ export function useJourneyShareLink(journeyId: number) {
|
||||
|
||||
const copyLink = () => copy(shareUrl);
|
||||
|
||||
return { link, loading, manageable, copied, shareUrl, createLink, togglePerm, deleteLink, copyLink, setProtection };
|
||||
return {
|
||||
link,
|
||||
loading: current === null,
|
||||
manageable: current?.manageable ?? false,
|
||||
copied,
|
||||
shareUrl,
|
||||
createLink,
|
||||
togglePerm,
|
||||
deleteLink,
|
||||
copyLink,
|
||||
setProtection,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,239 @@
|
||||
import {
|
||||
MAX_PATH_POINTS,
|
||||
MAX_PATH_SEGMENTS,
|
||||
bookMapStopFor,
|
||||
refreshPatch,
|
||||
type BookElement,
|
||||
type BookMapElement,
|
||||
type BookMapView,
|
||||
type JourneyStats,
|
||||
} from '@trek/shared';
|
||||
import { ArrowDown, ArrowLeft, ArrowRight, ArrowUp, Minus, Plus } from 'lucide-react';
|
||||
import { useRef, useState, type PointerEvent } from 'react';
|
||||
import { useTranslation } from '../../i18n';
|
||||
import { Choice, Line, Section } from './StudioControls';
|
||||
import { TravelElementView } from './TravelElements';
|
||||
import { boxToView, currentMapBox, moveBox, zoomBox } from './travel/mapViewEdit';
|
||||
|
||||
type T = (key: string, params?: Record<string, string | number>) => string;
|
||||
type Kind = 'journey' | 'trip' | 'country' | 'day' | 'stop';
|
||||
interface Parts {
|
||||
tripId: number | null;
|
||||
country: string | null;
|
||||
dayDate: string | null;
|
||||
stop: BookMapElement['stop'];
|
||||
}
|
||||
|
||||
const NONE: Parts = { tripId: null, country: null, dayDate: null, stop: null };
|
||||
|
||||
function kindOf(el: BookMapElement): Kind {
|
||||
if (el.stop) return 'stop';
|
||||
if (el.dayDate) return 'day';
|
||||
if (el.country) return 'country';
|
||||
return el.tripId != null ? 'trip' : 'journey';
|
||||
}
|
||||
|
||||
/** The days the route passes through, in order. */
|
||||
function daysOf(stats: JourneyStats): string[] {
|
||||
return [...new Set(stats.points.map((p) => p.date?.slice(0, 10)).filter((d): d is string => !!d))].sort();
|
||||
}
|
||||
|
||||
/**
|
||||
* What a map is of (#3024, #3239): the whole journey, one trip, one country,
|
||||
* one day or one stop. Picking one re-cuts the route on the spot with the
|
||||
* engine's own refresh, so the map is what a newly placed map of that scope
|
||||
* would be, and a later refresh keeps it to that scope.
|
||||
*/
|
||||
export function MapScopeSection({
|
||||
el,
|
||||
set,
|
||||
t,
|
||||
stats,
|
||||
journeyPath,
|
||||
}: {
|
||||
el: BookMapElement;
|
||||
set: (patch: Partial<BookElement>) => void;
|
||||
t: T;
|
||||
stats: JourneyStats | null;
|
||||
journeyPath: [number, number][][];
|
||||
}) {
|
||||
const { locale } = useTranslation();
|
||||
if (!stats || stats.points.length === 0) return null;
|
||||
const trips = stats.trips.filter((trip) => trip.points > 0);
|
||||
const days = daysOf(stats);
|
||||
const stops = stats.points.filter((p) => p.entryId != null);
|
||||
const kind = kindOf(el);
|
||||
|
||||
const apply = (parts: Parts) => {
|
||||
const whole = parts.tripId == null && !parts.country && !parts.dayDate && !parts.stop;
|
||||
set({
|
||||
...refreshPatch({ ...el, ...parts } as BookElement, stats),
|
||||
...parts,
|
||||
// The recorded way belongs to the whole journey; the roads went with the old legs.
|
||||
path: whole ? journeyPath.slice(0, MAX_PATH_SEGMENTS).map((seg) => seg.slice(0, MAX_PATH_POINTS)) : [],
|
||||
roads: [],
|
||||
} as Partial<BookElement>);
|
||||
};
|
||||
|
||||
const pickKind = (next: Kind) => {
|
||||
if (next === kind) return;
|
||||
if (next === 'journey') apply(NONE);
|
||||
else if (next === 'trip' && trips[0]) apply({ ...NONE, tripId: trips[0].id });
|
||||
else if (next === 'country' && stats.countries[0]) apply({ ...NONE, country: stats.countries[0].code });
|
||||
else if (next === 'day' && days[0]) apply({ ...NONE, dayDate: days[0] });
|
||||
else if (next === 'stop' && stops[0]?.entryId != null) {
|
||||
const stop = bookMapStopFor(stats, [], stops[0].entryId);
|
||||
if (stop) apply({ ...NONE, stop });
|
||||
}
|
||||
};
|
||||
|
||||
const dayLabel = (day: string) =>
|
||||
new Date(`${day}T00:00:00`).toLocaleDateString(locale || undefined, { day: 'numeric', month: 'short' });
|
||||
|
||||
const kinds: { value: Kind; label: string }[] = [
|
||||
{ value: 'journey', label: t('journey.studio.mapWholeJourney') },
|
||||
...(trips.length > 1 ? [{ value: 'trip' as const, label: t('journey.studio.mapScopeTrip') }] : []),
|
||||
...(stats.countries.length > 0 ? [{ value: 'country' as const, label: t('journey.studio.mapScopeCountry') }] : []),
|
||||
...(days.length > 0 ? [{ value: 'day' as const, label: t('journey.studio.mapScopeDay') }] : []),
|
||||
...(stops.length > 0 ? [{ value: 'stop' as const, label: t('journey.studio.mapScopeStop') }] : []),
|
||||
];
|
||||
|
||||
return (
|
||||
<Section label={t('journey.studio.mapScope')}>
|
||||
<Choice value={kind} options={kinds} onPick={pickKind} ariaLabel={t('journey.studio.mapScope')} />
|
||||
{/* The one it is of, when there is more than one to choose from. */}
|
||||
<div className="mt-2 max-h-[132px] overflow-y-auto">
|
||||
{kind === 'trip' && trips.length > 1 && (
|
||||
<Choice
|
||||
value={el.tripId ?? 0}
|
||||
options={trips.map((trip) => ({ value: trip.id, label: trip.title || t('journey.studio.untitled') }))}
|
||||
onPick={(tripId) => apply({ ...NONE, tripId })}
|
||||
/>
|
||||
)}
|
||||
{kind === 'country' && stats.countries.length > 1 && (
|
||||
<Choice
|
||||
value={el.country ?? ''}
|
||||
options={stats.countries.map((c) => ({ value: c.code, label: c.name }))}
|
||||
onPick={(country) => apply({ ...NONE, country })}
|
||||
/>
|
||||
)}
|
||||
{kind === 'day' && days.length > 1 && (
|
||||
<Choice
|
||||
value={el.dayDate ?? ''}
|
||||
options={days.map((day) => ({ value: day, label: dayLabel(day) }))}
|
||||
onPick={(dayDate) => apply({ ...NONE, dayDate })}
|
||||
/>
|
||||
)}
|
||||
{kind === 'stop' && stops.length > 1 && (
|
||||
<Choice
|
||||
value={el.stop?.entryId ?? 0}
|
||||
options={stops.map((p) => ({ value: p.entryId ?? 0, label: p.label }))}
|
||||
onPick={(entryId) => {
|
||||
const stop = bookMapStopFor(stats, [], entryId);
|
||||
if (stop) apply({ ...NONE, stop });
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</Section>
|
||||
);
|
||||
}
|
||||
|
||||
const NUDGE = 0.15;
|
||||
const ZOOM = 1.4;
|
||||
|
||||
function MapDragPreview({ el, onCommit }: { el: BookMapElement; onCommit: (view: BookMapView) => void }) {
|
||||
const [preview, setPreview] = useState<BookMapView | null>(null);
|
||||
const drag = useRef<{ x: number; y: number; box: ReturnType<typeof currentMapBox> } | null>(null);
|
||||
const viewAt = (event: PointerEvent<HTMLDivElement>) => {
|
||||
const start = drag.current;
|
||||
const { clientWidth, clientHeight } = event.currentTarget;
|
||||
if (!start || clientWidth === 0 || clientHeight === 0) return null;
|
||||
return boxToView(
|
||||
moveBox(start.box, (start.x - event.clientX) / clientWidth, (start.y - event.clientY) / clientHeight)
|
||||
);
|
||||
};
|
||||
|
||||
return (
|
||||
<div
|
||||
aria-hidden="true"
|
||||
className="relative mt-2 max-w-56 cursor-grab touch-none overflow-hidden rounded-lg border border-edge active:cursor-grabbing"
|
||||
style={{ aspectRatio: el.frame.w / el.frame.h }}
|
||||
onPointerDown={(event) => {
|
||||
if (event.button !== 0 || !event.isPrimary) return;
|
||||
event.currentTarget.setPointerCapture(event.pointerId);
|
||||
drag.current = { x: event.clientX, y: event.clientY, box: currentMapBox(el) };
|
||||
}}
|
||||
onPointerMove={(event) => {
|
||||
if (event.currentTarget.hasPointerCapture(event.pointerId)) setPreview(viewAt(event));
|
||||
}}
|
||||
onPointerUp={(event) => {
|
||||
if (!event.currentTarget.hasPointerCapture(event.pointerId)) return;
|
||||
const view = viewAt(event);
|
||||
drag.current = null;
|
||||
setPreview(null);
|
||||
if (view) onCommit(view);
|
||||
}}
|
||||
onLostPointerCapture={() => {
|
||||
drag.current = null;
|
||||
setPreview(null);
|
||||
}}
|
||||
>
|
||||
<TravelElementView
|
||||
el={{ ...el, id: `${el.id}-framing-preview`, view: preview ?? el.view, source: 'vector' }}
|
||||
frameStyle={{ width: '100%', height: '100%', pointerEvents: 'none' }}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* The window a map shows (#3239): fitted to its route by itself, or framed by
|
||||
* hand, nudged and zoomed in steps from what it showed. Back to automatic
|
||||
* forgets the hand-framed view.
|
||||
*/
|
||||
export function MapViewLine({ el, set, t }: { el: BookMapElement; set: (patch: Partial<BookElement>) => void; t: T }) {
|
||||
const own = !!el.view;
|
||||
const setView = (view: BookMapView) => set({ view } as Partial<BookElement>);
|
||||
const change = (step: (box: ReturnType<typeof currentMapBox>) => ReturnType<typeof currentMapBox>) =>
|
||||
setView(boxToView(step(currentMapBox(el))));
|
||||
|
||||
const nudges = [
|
||||
{ label: t('journey.studio.mapViewLeft'), icon: ArrowLeft, run: () => change((b) => moveBox(b, -NUDGE, 0)) },
|
||||
{ label: t('journey.studio.mapViewUp'), icon: ArrowUp, run: () => change((b) => moveBox(b, 0, -NUDGE)) },
|
||||
{ label: t('journey.studio.mapViewDown'), icon: ArrowDown, run: () => change((b) => moveBox(b, 0, NUDGE)) },
|
||||
{ label: t('journey.studio.mapViewRight'), icon: ArrowRight, run: () => change((b) => moveBox(b, NUDGE, 0)) },
|
||||
{ label: t('journey.studio.zoomOut'), icon: Minus, run: () => change((b) => zoomBox(b, 1 / ZOOM)) },
|
||||
{ label: t('journey.studio.zoomIn'), icon: Plus, run: () => change((b) => zoomBox(b, ZOOM)) },
|
||||
];
|
||||
|
||||
return (
|
||||
<>
|
||||
<Line label={t('journey.studio.mapView')}>
|
||||
<Choice
|
||||
value={own ? 'own' : 'auto'}
|
||||
options={[
|
||||
{ value: 'auto' as const, label: t('journey.studio.folioAuto') },
|
||||
{ value: 'own' as const, label: t('journey.studio.mapViewOwn') },
|
||||
]}
|
||||
onPick={(v) => {
|
||||
if (v === 'auto') set({ view: null } as Partial<BookElement>);
|
||||
else if (!own) change((b) => b);
|
||||
}}
|
||||
/>
|
||||
</Line>
|
||||
{own && (
|
||||
<>
|
||||
<MapDragPreview el={el} onCommit={setView} />
|
||||
<div className="st-row mt-2">
|
||||
{nudges.map(({ label, icon: Icon, run }) => (
|
||||
<button key={label} type="button" className="st-chip" aria-label={label} title={label} onClick={run}>
|
||||
<Icon size={13} />
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -4,7 +4,7 @@ import type {
|
||||
BookMetric, BookStatsElement, JourneyStats,
|
||||
} from '@trek/shared'
|
||||
import {
|
||||
BOOK_BADGE_STYLES, BOOK_COUNTRY_LOOKS, BOOK_METRICS, BOOK_STATS_LOOKS, MAX_PATH_POINTS, MAX_PATH_SEGMENTS, isStale, refreshPatch,
|
||||
BOOK_BADGE_STYLES, BOOK_COUNTRY_LOOKS, BOOK_MAP_COAST_DETAILS, BOOK_METRICS, BOOK_STATS_LOOKS, isStale, refreshPatch,
|
||||
} from '@trek/shared'
|
||||
import { Swatches } from './StudioSwatches'
|
||||
import { StudioFontPicker } from './StudioFontPicker'
|
||||
@@ -17,6 +17,7 @@ import { fetchRoads } from './roadRoute'
|
||||
import { useStudioStore } from '../../store/studioStore'
|
||||
import { StudioThemeLink } from './theme/StudioThemeLink'
|
||||
import { mapZoomInUse, travelTypeInUse } from './inspector/inspectorModel'
|
||||
import { MapScopeSection, MapViewLine } from './StudioMapScope'
|
||||
|
||||
/**
|
||||
* Properties of the travel elements.
|
||||
@@ -226,8 +227,6 @@ type MapPropsInput = Props<BookMapElement> & {
|
||||
function MapContent({ el, set, t, stats, journeyPath }: MapPropsInput) {
|
||||
const cartoKey = useCartoApiKey()
|
||||
const sources = useMapSources(el.frame, el.points, { source: el.source, tileUrl: el.tileUrl })
|
||||
/** Only trips that put stops on the route: a map of the others is a blank. */
|
||||
const tripsWithRoute = (stats?.trips ?? []).filter(t => t.points > 0)
|
||||
/*
|
||||
* The grid this element will really fetch, asked for here so the panel can
|
||||
* say what it will print at. Same call the renderer makes, same answer.
|
||||
@@ -248,45 +247,7 @@ function MapContent({ el, set, t, stats, journeyPath }: MapPropsInput) {
|
||||
route on the spot rather than at the next refresh, because a control
|
||||
that changes nothing visible reads as broken.
|
||||
*/}
|
||||
{tripsWithRoute.length > 1 && (
|
||||
<Section label={t('journey.studio.mapScope')}>
|
||||
<Choice
|
||||
value={el.tripId ?? 0}
|
||||
options={[
|
||||
{ value: 0, label: t('journey.studio.mapWholeJourney') },
|
||||
...tripsWithRoute.map(trip => ({
|
||||
value: trip.id,
|
||||
label: trip.title || t('journey.studio.untitled'),
|
||||
})),
|
||||
]}
|
||||
onPick={id => {
|
||||
const tripId = id === 0 ? null : id
|
||||
// The scope it already has: a re-cut would only drop the roads loaded for these legs.
|
||||
if (!stats || tripId === (el.tripId ?? null)) return
|
||||
/*
|
||||
* Re-cut by the engine's own refresh at the new scope, so the
|
||||
* stops and countries are what refresh_travel and a newly placed
|
||||
* map of that scope hold. The recorded way is the whole
|
||||
* journey's: a trip map draws none, as the engine places none,
|
||||
* and a map of the whole journey gets it back from the journey
|
||||
* at the engine's caps, so a switch there and back loses
|
||||
* nothing. The roads go with the old legs, since entry i is the
|
||||
* way from stop i to stop i + 1 of the route that is gone.
|
||||
*/
|
||||
// Picking a trip or the whole journey is what the map is of from now on: no country, day or stop left over.
|
||||
const scope = { tripId, country: null, dayDate: null, stop: null }
|
||||
set({
|
||||
...refreshPatch({ ...el, ...scope }, stats),
|
||||
...scope,
|
||||
path: tripId == null
|
||||
? journeyPath.slice(0, MAX_PATH_SEGMENTS).map(seg => seg.slice(0, MAX_PATH_POINTS))
|
||||
: [],
|
||||
roads: [],
|
||||
} as Partial<BookElement>)
|
||||
}}
|
||||
/>
|
||||
</Section>
|
||||
)}
|
||||
<MapScopeSection el={el} set={set} t={t} stats={stats} journeyPath={journeyPath} />
|
||||
|
||||
{/* Where the picture comes from and what it looks like: one question
|
||||
with two halves, which is one group rather than two. */}
|
||||
@@ -350,6 +311,10 @@ function MapContent({ el, set, t, stats, journeyPath }: MapPropsInput) {
|
||||
two dots in the middle of it.
|
||||
*/}
|
||||
<Section label={t('journey.studio.mapFraming')}>
|
||||
<MapViewLine el={el} set={set} t={t} />
|
||||
{/* A view framed by hand is the window itself: fit and room only shape the automatic one. */}
|
||||
{!el.view && (
|
||||
<>
|
||||
<Line label={t('journey.studio.mapFit')}>
|
||||
<Choice
|
||||
value={el.fitToCountries ? 'country' : 'stops'}
|
||||
@@ -378,6 +343,8 @@ function MapContent({ el, set, t, stats, journeyPath }: MapPropsInput) {
|
||||
onPick={fitPadding => set({ fitPadding } as Partial<BookElement>)}
|
||||
/>
|
||||
</Line>
|
||||
</>
|
||||
)}
|
||||
|
||||
{/*
|
||||
And the shape. A rectangle is a map in a box, which is what a full
|
||||
@@ -401,8 +368,21 @@ function MapContent({ el, set, t, stats, journeyPath }: MapPropsInput) {
|
||||
</Line>
|
||||
</Section>
|
||||
|
||||
{el.countries.length > 0 && ((el.source === 'vector' && el.showLand) || el.clip === 'country') && (
|
||||
<Section label={t('journey.studio.mapCoastDetail')} defaultOpen={false}>
|
||||
<Choice
|
||||
value={el.coastDetail ?? 'auto'}
|
||||
options={BOOK_MAP_COAST_DETAILS.map(value => ({
|
||||
value,
|
||||
label: t(`journey.studio.mapCoastDetail.${value}`),
|
||||
}))}
|
||||
onPick={coastDetail => set({ coastDetail } as Partial<BookElement>)}
|
||||
/>
|
||||
</Section>
|
||||
)}
|
||||
|
||||
{el.source === 'tiles' && (
|
||||
<Section label={t('journey.studio.mapZoom')} defaultOpen={mapZoomInUse(el)}>
|
||||
<Section label={t('journey.studio.tileDetail')} defaultOpen={mapZoomInUse(el)}>
|
||||
<Choice
|
||||
value={el.zoom ?? -1}
|
||||
options={[
|
||||
|
||||
@@ -17,7 +17,7 @@ interface MapXY {
|
||||
y: number;
|
||||
}
|
||||
/** A box in projected world units: longitude as x, Mercator y growing southwards. */
|
||||
interface MapBox {
|
||||
export interface MapBox {
|
||||
minX: number;
|
||||
minY: number;
|
||||
maxX: number;
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
import { bookMapElementSchema, bookMapViewSchema } from '@trek/shared';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
import { boxToView, currentMapBox, moveBox, zoomBox } from './mapViewEdit';
|
||||
|
||||
const frame = { x: 0, y: 0, w: 100, h: 50 };
|
||||
|
||||
describe('editing the visible Studio map window', () => {
|
||||
it('starts from the automatic framing of the current route', () => {
|
||||
const el = bookMapElementSchema.parse({
|
||||
id: 'map',
|
||||
kind: 'map',
|
||||
frame,
|
||||
points: [
|
||||
{ lat: 52.51, lng: 13.38 },
|
||||
{ lat: 52.49, lng: 13.42 },
|
||||
],
|
||||
});
|
||||
const fitted = boxToView(currentMapBox(el));
|
||||
expect(fitted.west).toBeLessThan(13.38);
|
||||
expect(fitted.east).toBeGreaterThan(13.42);
|
||||
expect(fitted.south).toBeLessThan(52.49);
|
||||
expect(fitted.north).toBeGreaterThan(52.51);
|
||||
});
|
||||
|
||||
it('pans a manual view across the antimeridian and zooms it around the same centre', () => {
|
||||
const view = { west: 175, east: 181, south: -19, north: -16 };
|
||||
const el = bookMapElementSchema.parse({ id: 'map', kind: 'map', frame, view });
|
||||
const start = currentMapBox(el);
|
||||
const moved = moveBox(start, 0.5, 0);
|
||||
const closer = boxToView(zoomBox(moved, 2));
|
||||
|
||||
expect(closer.west).toBeCloseTo(179.5);
|
||||
expect(closer.east).toBeCloseTo(182.5);
|
||||
expect(closer.north).toBeLessThan(view.north);
|
||||
expect(closer.south).toBeGreaterThan(view.south);
|
||||
});
|
||||
|
||||
it('keeps an extreme drag or zoom within a valid stored world window', () => {
|
||||
const view = boxToView({ minX: 2000, maxX: 3000, minY: -900, maxY: 900 });
|
||||
expect(bookMapViewSchema.safeParse(view).success).toBe(true);
|
||||
expect(view.east - view.west).toBeLessThanOrEqual(360);
|
||||
expect(view.east).toBeLessThanOrEqual(540);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,71 @@
|
||||
import { MAX_BOOK_VIEW_LNG, type BookMapElement, type BookMapView } from '@trek/shared';
|
||||
import { countryDetailShapes } from '../countryDetail';
|
||||
import { COUNTRY_SHAPES, projectMercator, unprojectMercator } from '../countryShapes';
|
||||
import { fitMapWindow, mapBows, mapWantsDetail, projectMapRoute, viewBox, type MapBox } from './mapFit';
|
||||
|
||||
/*
|
||||
* A map framed by hand (#3239): the window it shows as a projected box, moved
|
||||
* and zoomed in the inspector and stored as a view in degrees. Pure, so the
|
||||
* inspector only draws what these answer.
|
||||
*/
|
||||
|
||||
const MIN_SPAN = 0.002;
|
||||
const MAX_LAT = 85;
|
||||
|
||||
/** What the map shows by itself, fitted to its route: the box a hand-framed view starts from. */
|
||||
function autoMapBox(el: BookMapElement): MapBox {
|
||||
const plain = { ...el, view: null };
|
||||
const route = projectMapRoute(plain);
|
||||
const drawLand = (el.source === 'vector' && el.showLand) || el.clip === 'country';
|
||||
const detail = countryDetailShapes(mapWantsDetail(plain, route) ? el.countries : []);
|
||||
const shapes = drawLand
|
||||
? el.countries.map((code) => detail.get(code.toUpperCase()) ?? COUNTRY_SHAPES[code.toUpperCase()]).filter(Boolean)
|
||||
: [];
|
||||
const win = fitMapWindow({
|
||||
el: plain,
|
||||
route,
|
||||
bows: mapBows(plain, route),
|
||||
shapes,
|
||||
cutToLand: el.clip === 'country' && shapes.length > 0,
|
||||
w: el.frame.w,
|
||||
h: el.frame.h,
|
||||
});
|
||||
return { minX: win.minX, minY: win.minY, maxX: win.maxX, maxY: win.maxY };
|
||||
}
|
||||
|
||||
/** The box a map shows now: its own view, or the fitted one. */
|
||||
export function currentMapBox(el: BookMapElement): MapBox {
|
||||
return el.view ? viewBox(el.view) : autoMapBox(el);
|
||||
}
|
||||
|
||||
const clamp = (v: number, lo: number, hi: number) => Math.min(hi, Math.max(lo, v));
|
||||
|
||||
/** A projected box as a view the schema takes: west to east at most once round, inside the poles. */
|
||||
export function boxToView(box: MapBox): BookMapView {
|
||||
const top = projectMercator(0, MAX_LAT).y;
|
||||
const bottom = projectMercator(0, -MAX_LAT).y;
|
||||
const minY = clamp(box.minY, top, bottom - MIN_SPAN);
|
||||
const maxY = clamp(box.maxY, minY + MIN_SPAN, bottom);
|
||||
const span = clamp(box.maxX - box.minX, MIN_SPAN, 360);
|
||||
const west = clamp((box.minX + box.maxX - span) / 2, -180, MAX_BOOK_VIEW_LNG - span);
|
||||
const east = Math.min(west + span, MAX_BOOK_VIEW_LNG);
|
||||
const nw = unprojectMercator(west, minY);
|
||||
const se = unprojectMercator(east, maxY);
|
||||
return { west: nw.lng, north: nw.lat, east: se.lng, south: se.lat };
|
||||
}
|
||||
|
||||
/** The same box seen closer (factor above 1) or from further away, around its middle. */
|
||||
export function zoomBox(box: MapBox, factor: number): MapBox {
|
||||
const cx = (box.minX + box.maxX) / 2;
|
||||
const cy = (box.minY + box.maxY) / 2;
|
||||
const hw = Math.max((box.maxX - box.minX) / 2 / factor, MIN_SPAN);
|
||||
const hh = Math.max((box.maxY - box.minY) / 2 / factor, MIN_SPAN);
|
||||
return { minX: cx - hw, maxX: cx + hw, minY: cy - hh, maxY: cy + hh };
|
||||
}
|
||||
|
||||
/** The box moved by a share of its own width and height. */
|
||||
export function moveBox(box: MapBox, dx: number, dy: number): MapBox {
|
||||
const w = box.maxX - box.minX;
|
||||
const h = box.maxY - box.minY;
|
||||
return { minX: box.minX + dx * w, maxX: box.maxX + dx * w, minY: box.minY + dy * h, maxY: box.maxY + dy * h };
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore, type CSSProperties, type ReactNode } from 'react'
|
||||
import { Outlet, useSearchParams } from 'react-router'
|
||||
import { BookOpen, ChevronLeft, MapPin, Grid3x3, Map as MapIcon, MoreHorizontal, Play, Image, Camera, EyeOff, Satellite, Settings2, X, Route, ListChecks } from 'lucide-react'
|
||||
import { BookOpen, ChevronLeft, MapPin, Grid3x3, Map as MapIcon, MoreHorizontal, Play, Image, Camera, EyeOff, Satellite, Settings2, X, Route, ListChecks, FileUp, Trash2, NotebookPen } from 'lucide-react'
|
||||
import JourneyLayeredMap from '../../../components/Journey/JourneyLayeredMap'
|
||||
import type { BaseLayer } from '../../../components/Map/MapLayerSwitcher'
|
||||
import PhotoLightbox from '../../../components/Journey/PhotoLightbox'
|
||||
@@ -29,7 +29,9 @@ import { useGalleryUpload } from '../../../components/Journey/useGalleryUpload'
|
||||
import { dayPrepText, dayPrepUnsettled } from '../../../components/Journey/journeyRecordingPrepModel'
|
||||
import MJourneyEntrySheet from './MJourneyEntrySheet'
|
||||
import { useIsSplit, useIsWide } from '../../../hooks/sizeClass'
|
||||
import { MemberEntryComments } from '../../../components/Journey/JourneyEntryComments'
|
||||
import MJourneyFeed from './MJourneyFeed'
|
||||
import MJourneyFromPhotosSheet from './MJourneyFromPhotosSheet'
|
||||
import MJourneySettingsSheet from './MJourneySettingsSheet'
|
||||
import MJourneyDayImportSheet from './MJourneyDayImportSheet'
|
||||
import MJourneyRecordingSheet from './MJourneyRecordingSheet'
|
||||
@@ -86,9 +88,10 @@ export default function MJourneyDetail({ journeyId, embedded = false }: JourneyD
|
||||
showSettings, setShowSettings,
|
||||
hideSkeletons, setHideSkeletons,
|
||||
sidebarMapItems, tracks, mapLayers, entryTitleOf, mapPhotos, openMapPhotos, recordings, canTakeOverRecording, dayImport, dayImportDates, dawarichByDate, recordingPrep,
|
||||
gpxImport, canImportGpx,
|
||||
dismissSuggestion, restoreSuggestions, openAtEntryId,
|
||||
loadJourney, updateEntry, deleteEntry, reorderEntries, uploadPhotos,
|
||||
addPickedProviderPhotos, addEntryProviderPhotos, writeAboutPlace,
|
||||
addPickedProviderPhotos, addEntryProviderPhotos, writeAboutPlace, comments,
|
||||
} = useJourneyDetail({ journeyId, embedded })
|
||||
// A trip tab: the header goes into the trip shell's top row (tabHeadSlot.ts).
|
||||
const shellSlot = useTabHeadSlot()
|
||||
@@ -216,6 +219,15 @@ export default function MJourneyDetail({ journeyId, embedded = false }: JourneyD
|
||||
// The map's base, switched from the bar: the satellite imagery or the map (#2594).
|
||||
const [mapBase, setMapBase] = useState<BaseLayer>('default')
|
||||
const [showActionMenu, setShowActionMenu] = useState(false)
|
||||
// #3085: the day a GPX file is being picked for, and the hidden picker itself.
|
||||
const gpxFileRef = useRef<HTMLInputElement>(null)
|
||||
const gpxDateRef = useRef<string | null>(null)
|
||||
const pickGpxFor = (date: string) => {
|
||||
setShowActionMenu(false)
|
||||
gpxDateRef.current = date
|
||||
gpxFileRef.current?.click()
|
||||
}
|
||||
const [showFromPhotos, setShowFromPhotos] = useState(false)
|
||||
const [pickerProvider, setPickerProvider] = useState<string | null>(null)
|
||||
// The gallery photo waiting on its delete confirm; entries have their own deleteTarget.
|
||||
const [photoDeleteTarget, setPhotoDeleteTarget] = useState<GalleryPhoto | null>(null)
|
||||
@@ -677,7 +689,7 @@ export default function MJourneyDetail({ journeyId, embedded = false }: JourneyD
|
||||
{/* The recorded route of the day the card rail is on (JRN-01): taking it
|
||||
over, or checking, replacing or dropping the one kept. */}
|
||||
{canEditEntries && view === 'timeline' && entries[activeIndex] &&
|
||||
(canTakeOverRecording || recordings.byDate.has(entries[activeIndex].entry_date)) && (
|
||||
(canTakeOverRecording || recordings.bySource.dawarich.has(entries[activeIndex].entry_date)) && (
|
||||
<MListRow
|
||||
icon={Route}
|
||||
label={t('journey.recording.takeOverDay', {
|
||||
@@ -686,6 +698,37 @@ export default function MJourneyDetail({ journeyId, embedded = false }: JourneyD
|
||||
onClick={() => { setShowActionMenu(false); recordings.open(entries[activeIndex].entry_date) }}
|
||||
/>
|
||||
)}
|
||||
{/* #1920: the gallery's loose photos as drafts. */}
|
||||
{canEditEntries && view === 'gallery' && gallery.length > 0 && (
|
||||
<MListRow
|
||||
icon={NotebookPen}
|
||||
label={t('journey.fromPhotos.title')}
|
||||
onClick={() => { setShowActionMenu(false); setShowFromPhotos(true) }}
|
||||
/>
|
||||
)}
|
||||
{/* The day's route from a GPX file (#3085), with or without Dawarich. */}
|
||||
{canEditEntries && canImportGpx && !gpxImport.busy && view === 'timeline' && entries[activeIndex] && (
|
||||
recordings.bySource.gpx.has(entries[activeIndex].entry_date) ? (
|
||||
<>
|
||||
<MListRow
|
||||
icon={FileUp}
|
||||
label={t('journey.recording.replace')}
|
||||
onClick={() => pickGpxFor(entries[activeIndex].entry_date)}
|
||||
/>
|
||||
<MListRow
|
||||
icon={Trash2}
|
||||
label={t('journey.recording.remove')}
|
||||
onClick={() => { setShowActionMenu(false); void gpxImport.removeDay(entries[activeIndex].entry_date) }}
|
||||
/>
|
||||
</>
|
||||
) : (
|
||||
<MListRow
|
||||
icon={FileUp}
|
||||
label={t('journey.recording.gpx.import')}
|
||||
onClick={() => pickGpxFor(entries[activeIndex].entry_date)}
|
||||
/>
|
||||
)
|
||||
)}
|
||||
{/* The same day with its stays (JRN-02), counting the ones still waiting. */}
|
||||
{canEditEntries && canTakeOverRecording && view === 'timeline' && entries[activeIndex] &&
|
||||
dayImportRow(entries[activeIndex].entry_date, () => setShowActionMenu(false))}
|
||||
@@ -699,6 +742,32 @@ export default function MJourneyDetail({ journeyId, embedded = false }: JourneyD
|
||||
</div>
|
||||
</MSheet>
|
||||
|
||||
<input
|
||||
ref={gpxFileRef}
|
||||
type="file"
|
||||
accept=".gpx,application/gpx+xml"
|
||||
className="hidden"
|
||||
onChange={e => {
|
||||
const file = e.target.files?.[0]
|
||||
const date = gpxDateRef.current
|
||||
gpxDateRef.current = null
|
||||
e.target.value = ''
|
||||
if (file && date) void gpxImport.importDayFile(file, date)
|
||||
}}
|
||||
/>
|
||||
|
||||
{showFromPhotos && (
|
||||
<MJourneyFromPhotosSheet
|
||||
journeyId={current.id}
|
||||
coverOf={id => {
|
||||
const photo = gallery.find(p => p.id === id)
|
||||
return photo && !posterlessVideo(photo) ? photoUrl(photo, 'thumbnail') : null
|
||||
}}
|
||||
onCreated={() => { void loadJourney(current.id) }}
|
||||
onClose={() => setShowFromPhotos(false)}
|
||||
/>
|
||||
)}
|
||||
|
||||
{/* Entry sheet (new / edit / read-only) */}
|
||||
{editingEntry && (
|
||||
<MJourneyEntrySheet
|
||||
@@ -706,6 +775,7 @@ export default function MJourneyDetail({ journeyId, embedded = false }: JourneyD
|
||||
galleryPhotos={gallery}
|
||||
quickCapture={editingEntry.id === 0}
|
||||
readOnly={!canEditEntries || readingEntry}
|
||||
comments={editingEntry.id > 0 && editingEntry.type !== 'skeleton' ? <MemberEntryComments entryId={editingEntry.id} thread={comments} defaultOpen /> : undefined}
|
||||
onEdit={readingEntry ? () => setEditEntryId(editingEntry.id) : undefined}
|
||||
showVerdict={current.show_verdict !== 0}
|
||||
showMood={current.show_mood !== 0}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { useRef, useState, type CSSProperties } from 'react'
|
||||
import { useRef, useState, type CSSProperties, type ReactNode } from 'react'
|
||||
import { Briefcase, Camera, Plus, Image, Images, X, MapPin, Locate, Trash2, CheckCircle2, MinusCircle, ChevronUp, ChevronDown, EyeOff, Play, NotebookPen, Pencil } from 'lucide-react'
|
||||
import { useIsTouch } from '../../../hooks/useIsTouch'
|
||||
import { useTouchDragBridge } from '../../../hooks/useTouchDragBridge'
|
||||
@@ -87,6 +87,8 @@ interface MJourneyEntrySheetProps {
|
||||
onAddProviderPhotos?: (entryId: number, group: PendingProviderGroup) => Promise<void>
|
||||
onDelete?: () => void
|
||||
onDone: () => void
|
||||
/** The comment thread under the entry (#1702), shown while it is read. */
|
||||
comments?: ReactNode
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -97,7 +99,7 @@ interface MJourneyEntrySheetProps {
|
||||
export default function MJourneyEntrySheet({
|
||||
entry, galleryPhotos, quickCapture = false, readOnly = false, userId = 0, trips = [], photoProviders: providers = NO_PROVIDERS,
|
||||
showVerdict = true, showMood = true, showWeather = true, onEdit, onMoveEarlier, onMoveLater, onDismiss,
|
||||
onClose, onSave, onUploadPhotos, onAddProviderPhotos, onDelete, onDone,
|
||||
onClose, onSave, onUploadPhotos, onAddProviderPhotos, onDelete, onDone, comments,
|
||||
}: MJourneyEntrySheetProps) {
|
||||
const { t, language } = useTranslation()
|
||||
const {
|
||||
@@ -769,6 +771,12 @@ export default function MJourneyEntrySheet({
|
||||
<span className="min-w-0 flex-1 text-[0.8125rem] font-semibold">{t('journey.suggestions.dismiss')}</span>
|
||||
</button>
|
||||
)}
|
||||
{readOnly && comments && (
|
||||
<>
|
||||
<div className={`${eyebrow} mb-[6px] mt-4`}>{t('journey.comments.title')}</div>
|
||||
<div className={`${fieldShell} rounded-[14px] px-3 py-3`}>{comments}</div>
|
||||
</>
|
||||
)}
|
||||
</FormSheetBody>
|
||||
|
||||
<div className="m-fs-foot flex flex-none items-center gap-2 border-t border-[color:var(--m-rowbr)] px-[18px] pb-4 pt-3">
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
import { Images } from 'lucide-react';
|
||||
import JourneyFromPhotosList from '../../../components/Journey/JourneyFromPhotosList';
|
||||
import { useJourneyEntriesFromPhotos } from '../../../components/Journey/useJourneyEntriesFromPhotos';
|
||||
import { useTranslation } from '../../../i18n';
|
||||
import MSheet from '../../components/MSheet';
|
||||
import { SHEET_PRIMARY, SHEET_SECONDARY } from '../trip/sheets/MTripSheetUi';
|
||||
import { FormSheetHeader } from '../trip/sheets/PlSheetChrome';
|
||||
|
||||
/** "Entries from photos" on the phone (#1920), on the same hook and list as the desktop dialog. */
|
||||
export default function MJourneyFromPhotosSheet({
|
||||
journeyId,
|
||||
coverOf,
|
||||
onCreated,
|
||||
onClose,
|
||||
}: {
|
||||
journeyId: number;
|
||||
coverOf: (galleryPhotoId: number) => string | null;
|
||||
onCreated: () => void;
|
||||
onClose: () => void;
|
||||
}) {
|
||||
const { t } = useTranslation();
|
||||
const state = useJourneyEntriesFromPhotos({ journeyId, onCreated, onClose });
|
||||
const allOn = state.clusters.length > 0 && state.selectedCount === state.clusters.length;
|
||||
return (
|
||||
<MSheet open onClose={onClose} variant="bottom" material="glass" ariaLabel={t('journey.fromPhotos.title')}>
|
||||
<div className="flex max-h-[86dvh] min-h-0 flex-col">
|
||||
<FormSheetHeader
|
||||
icon={Images}
|
||||
title={t('journey.fromPhotos.title')}
|
||||
subtitle={t('journey.fromPhotos.text')}
|
||||
onClose={onClose}
|
||||
closeLabel={t('common.close')}
|
||||
/>
|
||||
<div className="min-h-0 flex-1 overflow-y-auto px-[14px] pb-3">
|
||||
<JourneyFromPhotosList state={state} coverOf={coverOf} />
|
||||
</div>
|
||||
<div className="flex flex-none items-center gap-2 border-t border-[color:var(--m-rowbr)] px-[18px] pb-4 pt-3">
|
||||
{state.clusters.length > 1 && (
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => state.selectAll(!allOn)}
|
||||
className={`${SHEET_SECONDARY} whitespace-nowrap`}
|
||||
>
|
||||
{allOn ? t('common.deselectAll') : t('common.selectAll')}
|
||||
</button>
|
||||
)}
|
||||
<button
|
||||
type="button"
|
||||
disabled={!state.canSubmit}
|
||||
onClick={state.submit}
|
||||
className={`${SHEET_PRIMARY} flex-1 justify-center disabled:opacity-50`}
|
||||
>
|
||||
{t('journey.fromPhotos.create', { count: state.selectedCount })}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</MSheet>
|
||||
);
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useRef, useState, type ReactNode } from 'react'
|
||||
import { Image, Plus, Trash2, UserPlus, UserMinus, Unlink, Settings2, Link as LinkIcon, List, Grid3x3, MapPin, Route, Archive, ArchiveRestore, Undo2, Link2, ListChecks, RefreshCw } from 'lucide-react'
|
||||
import { Image, Plus, Trash2, UserPlus, UserMinus, Unlink, Settings2, Link as LinkIcon, List, Grid3x3, MapPin, Route, Archive, ArchiveRestore, Undo2, Link2, ListChecks, RefreshCw, MessageCircle, BellPlus, Lock, CalendarClock, Eye, X } from 'lucide-react'
|
||||
import MLinkField from '../../components/MLinkField'
|
||||
import MSheet from '../../components/MSheet'
|
||||
import {
|
||||
@@ -20,6 +20,8 @@ import { useJourneySettings, useJourneyTripLinking } from '../../../components/J
|
||||
import {
|
||||
SHARE_MAP_EXTRAS, useJourneyShareLink, type JourneyShareLink, type JourneyShareMapExtra,
|
||||
} from '../../../components/Journey/useJourneyShareLink'
|
||||
import { useJourneyShareAccess } from '../../../components/Journey/useJourneyShareAccess'
|
||||
import JourneySharePasswordDialog from '../../../components/Journey/JourneySharePasswordDialog'
|
||||
import type { JourneyRecordingPrepState } from '../../../components/Journey/useJourneyRecordingPrep'
|
||||
import { pickGradient } from '../../../pages/journeyDetail/JourneyDetailPage.helpers'
|
||||
import { journeyCoverSrc } from './mobileJourneyMeta'
|
||||
@@ -56,8 +58,9 @@ export default function MJourneySettingsSheet({
|
||||
})
|
||||
const {
|
||||
link: shareLink, copied, shareUrl, createLink: createShareLink, togglePerm: toggleSharePerm,
|
||||
deleteLink: deleteShareLink, copyLink: copyShareUrl,
|
||||
deleteLink: deleteShareLink, copyLink: copyShareUrl, setProtection,
|
||||
} = useJourneyShareLink(journey.id)
|
||||
const shareAccess = useJourneyShareAccess(journey.id, shareLink, setProtection)
|
||||
const coverRef = useRef<HTMLInputElement>(null)
|
||||
|
||||
const coverSrc = journeyCoverSrc(journey.cover_image)
|
||||
@@ -256,6 +259,13 @@ export default function MJourneySettingsSheet({
|
||||
shareLabel={t('common.share')}
|
||||
/>
|
||||
)}
|
||||
{shareAccess.views > 0 && (
|
||||
<div className="flex items-center gap-1.5 ps-1 font-geist text-caption text-m-muted">
|
||||
<Eye size={12} strokeWidth={2} />
|
||||
<span>{t('journey.share.views', { count: shareAccess.views })}</span>
|
||||
{shareAccess.lastViewed && <span>{t('journey.share.lastViewed', { date: shareAccess.lastViewed })}</span>}
|
||||
</div>
|
||||
)}
|
||||
{([
|
||||
{ key: 'share_timeline' as const, label: t('journey.share.timeline'), icon: List },
|
||||
{ key: 'share_gallery' as const, label: t('journey.share.gallery'), icon: Grid3x3 },
|
||||
@@ -270,6 +280,23 @@ export default function MJourneySettingsSheet({
|
||||
/>
|
||||
))}
|
||||
<MShareMapExtras link={shareLink} onToggle={toggleSharePerm} />
|
||||
<ToggleRow
|
||||
icon={<MessageCircle size={16} strokeWidth={2} />}
|
||||
label={t('journey.share.allowComments')}
|
||||
hint={shareLink.share_timeline ? t('journey.share.allowCommentsHint') : t('journey.share.needsTimeline')}
|
||||
checked={!!shareLink.share_timeline && !!shareLink.allow_comments}
|
||||
disabled={!shareLink.share_timeline}
|
||||
onChange={() => { void toggleSharePerm('allow_comments') }}
|
||||
/>
|
||||
<ToggleRow
|
||||
icon={<BellPlus size={16} strokeWidth={2} />}
|
||||
label={t('journey.share.allowFollowers')}
|
||||
hint={t('journey.share.allowFollowersHint')}
|
||||
checked={!!shareLink.allow_subscriptions}
|
||||
onChange={() => { void toggleSharePerm('allow_subscriptions') }}
|
||||
/>
|
||||
{shareLink.allow_subscriptions && <MShareFollowers access={shareAccess} />}
|
||||
<MShareAccess access={shareAccess} />
|
||||
<button
|
||||
type="button"
|
||||
onClick={deleteShareLink}
|
||||
@@ -410,6 +437,83 @@ function MRecordingPrepRow({ prep, enabled }: { prep: JourneyRecordingPrepState;
|
||||
)
|
||||
}
|
||||
|
||||
type ShareAccess = ReturnType<typeof useJourneyShareAccess>
|
||||
|
||||
/** The addresses following the link (#1669): two counts, the list behind them. */
|
||||
function MShareFollowers({ access }: { access: ShareAccess }) {
|
||||
const { t } = useTranslation()
|
||||
const { followers } = access
|
||||
if (followers.status !== 'ready' || (followers.count === 0 && followers.pending === 0)) return null
|
||||
return (
|
||||
<div className="mb-1 ms-[9px] border-s-2 border-[color:var(--m-rowbr)] ps-[16px]">
|
||||
<button
|
||||
type="button"
|
||||
aria-expanded={access.followersOpen}
|
||||
onClick={() => access.setFollowersOpen(!access.followersOpen)}
|
||||
className="flex flex-wrap items-center gap-1.5 py-[7px] font-geist text-caption"
|
||||
>
|
||||
<span className="rounded-full bg-[color:var(--m-ic)] px-2 py-0.5 font-semibold text-m-ink">{t('journey.share.followers', { count: followers.count })}</span>
|
||||
{followers.pending > 0 && (
|
||||
<span className="rounded-full bg-[color:var(--m-ic)] px-2 py-0.5 text-m-muted">{t('journey.share.followersPending', { count: followers.pending })}</span>
|
||||
)}
|
||||
</button>
|
||||
{access.followersOpen && followers.subscribers.map(sub => (
|
||||
<div key={sub.id} className="flex items-center gap-2">
|
||||
<span className={`min-w-0 flex-1 truncate font-geist text-caption ${sub.confirmed ? 'text-m-ink' : 'text-m-muted'}`}>{sub.email}</span>
|
||||
<button
|
||||
type="button"
|
||||
aria-label={t('journey.share.removeFollower')}
|
||||
onClick={() => void access.removeFollower(sub.id)}
|
||||
className="flex h-10 w-10 flex-none items-center justify-center text-m-muted"
|
||||
>
|
||||
<X size={14} strokeWidth={2.2} />
|
||||
</button>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
/** Password and end date of the link (#2553), one row each. */
|
||||
function MShareAccess({ access }: { access: ShareAccess }) {
|
||||
const { t } = useTranslation()
|
||||
return (
|
||||
<div className="flex flex-col gap-[6px]">
|
||||
<div className="flex items-center gap-[11px] rounded-[14px] bg-[color:var(--m-ic)] px-3 py-[10px]">
|
||||
<Lock size={16} strokeWidth={2} className="flex-none text-m-muted" />
|
||||
<div className="min-w-0 flex-1 text-body font-semibold text-m-ink">{t('common.password')}</div>
|
||||
{access.hasPassword && (
|
||||
<button type="button" onClick={() => void access.removePassword()} className="px-1 font-geist text-caption font-semibold text-[color:var(--m-st-danger)]">
|
||||
{t('common.remove')}
|
||||
</button>
|
||||
)}
|
||||
<button type="button" onClick={() => access.setPasswordOpen(true)} className="rounded-full bg-m-sheetop px-3 py-1.5 font-geist text-caption font-semibold text-m-ink">
|
||||
{access.hasPassword ? t('common.change') : t('journey.share.passwordSet')}
|
||||
</button>
|
||||
</div>
|
||||
<div className="flex items-center gap-[11px] rounded-[14px] bg-[color:var(--m-ic)] px-3 py-[10px]">
|
||||
<CalendarClock size={16} strokeWidth={2} className="flex-none text-m-muted" />
|
||||
<div className="min-w-0 flex-1 text-body font-semibold text-m-ink">{t('journey.share.expires')}</div>
|
||||
{!access.expiry && <span className="font-geist text-caption text-m-muted">{t('journey.share.expiresNever')}</span>}
|
||||
<input
|
||||
type="date"
|
||||
value={access.expiry}
|
||||
min={access.minExpiry}
|
||||
onChange={e => access.setExpiry(e.target.value)}
|
||||
aria-label={t('journey.share.expires')}
|
||||
className="bg-transparent font-geist text-caption text-m-ink outline-none"
|
||||
/>
|
||||
{access.expiry && (
|
||||
<button type="button" aria-label={t('journey.share.expiresNever')} onClick={() => access.setExpiry('')} className="flex h-8 w-8 flex-none items-center justify-center text-m-muted">
|
||||
<X size={14} strokeWidth={2.2} />
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
{access.passwordOpen && <JourneySharePasswordDialog onSave={access.savePassword} onClose={() => access.setPasswordOpen(false)} />}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
/** What the shared map shows besides the entries (JRN-04), only while the map is shared. */
|
||||
function MShareMapExtras({ link, onToggle }: { link: JourneyShareLink; onToggle: (key: JourneyShareMapExtra) => unknown }) {
|
||||
const { t } = useTranslation()
|
||||
|
||||
@@ -32,6 +32,7 @@ import { AddTripDialog } from '../components/Journey/JourneyDetailPageAddTripDia
|
||||
import { JourneySettingsDialog } from '../components/Journey/JourneyDetailPageSettingsDialog'
|
||||
import HelpAnchor from '../components/Help/HelpAnchor'
|
||||
import JourneyDayJump from '../components/Journey/JourneyDayJump'
|
||||
import { MemberEntryComments } from '../components/Journey/JourneyEntryComments'
|
||||
|
||||
export default function JourneyDetailPage() {
|
||||
// ViewportRoute in App.tsx picks the branch now, so the phone screen is a
|
||||
@@ -53,7 +54,7 @@ export function JourneyDetailPageDesktop({ journeyId, embedded = false }: Journe
|
||||
// Page = wiring container: load + live sync, view state, dialogs, the
|
||||
// scroll-synced map and the map/trip-date derivations live in the hook.
|
||||
const {
|
||||
id, navigate, toast, t, locale,
|
||||
id, navigate, toast, t, locale, comments,
|
||||
openStudio, prefetchStudio,
|
||||
current, loading,
|
||||
canEditEntries, canEditJourney, myRole,
|
||||
@@ -69,7 +70,7 @@ export function JourneyDetailPageDesktop({ journeyId, embedded = false }: Journe
|
||||
galleryUploadProgress, setGalleryUploadProgress,
|
||||
activeLocationId, handleMarkerClick, handleLocationClick,
|
||||
mapEntries, sidebarMapItems, tripDates, isMobile, tracks, mapPhotos, openMapPhotos, mapLayers, entryTitleOf,
|
||||
recordings, canTakeOverRecording, recordingNeedsConnection, dayImport, recordingPrep,
|
||||
recordings, canTakeOverRecording, recordingNeedsConnection, dayImport, recordingPrep, gpxImport, canImportGpx,
|
||||
feedEdge, scrollFeedTo,
|
||||
loadJourney, updateEntry, deleteEntry, reorderEntries, uploadPhotos, deletePhoto,
|
||||
addPickedProviderPhotos, addEntryProviderPhotos, writeAboutPlace,
|
||||
@@ -211,6 +212,7 @@ export function JourneyDetailPageDesktop({ journeyId, embedded = false }: Journe
|
||||
<MobileEntryView
|
||||
entry={viewingEntry}
|
||||
readOnly={!canEditEntries}
|
||||
comments={<MemberEntryComments entryId={viewingEntry.id} thread={comments} />}
|
||||
onClose={() => setViewingEntry(null)}
|
||||
onEdit={() => { setViewingEntry(null); setEditingEntry(viewingEntry); }}
|
||||
onDelete={() => { setViewingEntry(null); setDeleteTarget(viewingEntry); }}
|
||||
@@ -508,11 +510,18 @@ export function JourneyDetailPageDesktop({ journeyId, embedded = false }: Journe
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-[10px] font-bold uppercase tracking-[0.07em]" style={{ background: 'var(--vg-surf2)', color: 'var(--vg-ink3)' }}><MapPin size={12} /> {entries.length} {t('journey.synced.places', { count: entries.length })}</span>
|
||||
<JourneyDayRecordingButton
|
||||
day={recordings.byDate.get(date)}
|
||||
day={recordings.bySource.dawarich.get(date)}
|
||||
canEdit={canEditEntries}
|
||||
canTakeOver={canTakeOverRecording}
|
||||
needsConnection={recordingNeedsConnection}
|
||||
onOpen={() => recordings.open(date)}
|
||||
gpx={{
|
||||
day: recordings.bySource.gpx.get(date),
|
||||
canImport: canImportGpx,
|
||||
busy: gpxImport.busy,
|
||||
onImport: file => void gpxImport.importDayFile(file, date),
|
||||
onRemove: () => void gpxImport.removeDay(date),
|
||||
}}
|
||||
/>
|
||||
<JourneyDayImportButton
|
||||
pending={stays.length}
|
||||
@@ -601,6 +610,7 @@ export function JourneyDetailPageDesktop({ journeyId, embedded = false }: Journe
|
||||
<EntryCard
|
||||
entry={entry}
|
||||
readOnly={!canEditEntries}
|
||||
comments={<MemberEntryComments entryId={entry.id} thread={comments} />}
|
||||
onEdit={() => setEditingEntry(entry)}
|
||||
onDelete={() => setDeleteTarget(entry)}
|
||||
onPhotoClick={(photos, idx) => setLightbox({ photos: photos.map(p => ({ id: p.id, src: photoUrl(p, 'original'), thumbSrc: photoUrl(p, 'thumbnail'), caption: p.caption, provider: p.provider, asset_id: p.asset_id, owner_id: p.owner_id, mediaType: p.media_type })), index: idx })}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
import { BellOff, BellRing, CircleAlert, Loader2 } from 'lucide-react';
|
||||
import { Link } from 'react-router-dom';
|
||||
import { useTranslation } from '../i18n';
|
||||
import { useJourneyFollowPage } from './journeyFollow/useJourneyFollowPage';
|
||||
|
||||
/**
|
||||
* Where a follower's mail links land (#1669): the page confirms the address or
|
||||
* ends the subscription, then says so in one card.
|
||||
*/
|
||||
export default function JourneyFollowPage() {
|
||||
const { t } = useTranslation();
|
||||
const { state } = useJourneyFollowPage();
|
||||
|
||||
let icon = <Loader2 size={20} className="animate-spin" />;
|
||||
let title = t('common.loading');
|
||||
let text = '';
|
||||
if (state.status === 'confirmed') {
|
||||
icon = <BellRing size={20} />;
|
||||
title = t('journey.follow.confirmedTitle');
|
||||
text = t('journey.follow.confirmedText', { title: state.title });
|
||||
} else if (state.status === 'unsubscribed') {
|
||||
icon = <BellOff size={20} />;
|
||||
title = t('journey.follow.unsubscribedTitle');
|
||||
text = t('journey.follow.unsubscribedText');
|
||||
} else if (state.status === 'invalid' || state.status === 'failed') {
|
||||
icon = <CircleAlert size={20} />;
|
||||
title = t(state.status === 'invalid' ? 'journey.follow.invalidTitle' : 'common.errorTitle');
|
||||
text = t(state.status === 'invalid' ? 'journey.follow.invalidText' : 'journey.follow.failed');
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="flex min-h-screen items-center justify-center bg-surface-secondary px-4">
|
||||
<div className="w-full max-w-sm rounded-[28px] border border-edge-faint bg-surface-card p-7 text-center shadow-sm">
|
||||
<div className="mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-2xl bg-surface-secondary text-content-muted">
|
||||
{icon}
|
||||
</div>
|
||||
<h1 className="text-subtitle font-bold text-content">{title}</h1>
|
||||
{text && <p className="mt-1.5 text-body text-content-muted">{text}</p>}
|
||||
{state.status === 'confirmed' && (
|
||||
<Link
|
||||
to={`/public/journey/${state.link}`}
|
||||
className="mt-5 inline-flex w-full items-center justify-center rounded-xl bg-accent py-2.5 text-body font-semibold text-accent-text transition-colors hover:bg-accent-hover"
|
||||
>
|
||||
{t('common.open')}
|
||||
</Link>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -32,6 +32,9 @@ import { useTranslation } from '../i18n';
|
||||
import { formatLocationName } from '../utils/formatters';
|
||||
import { posterlessVideo } from './journeyDetail/JourneyDetailPage.helpers';
|
||||
import { useJourneyPublic } from './journeyPublic/useJourneyPublic';
|
||||
import { GuestEntryComments } from '../components/Journey/JourneyEntryComments';
|
||||
import { JourneyPublicExpired, JourneyPublicPasswordCard } from './journeyPublic/JourneyPublicGate';
|
||||
import { JourneyPublicFollow } from './journeyPublic/JourneyPublicFollow';
|
||||
|
||||
const MOOD_CONFIG: Record<string, { icon: typeof Smile; label: string; bg: string; text: string }> = {
|
||||
amazing: {
|
||||
@@ -116,6 +119,9 @@ export default function JourneyPublicPage() {
|
||||
data,
|
||||
loading,
|
||||
error,
|
||||
access,
|
||||
unlock,
|
||||
social,
|
||||
isMobile,
|
||||
locale,
|
||||
view,
|
||||
@@ -151,6 +157,8 @@ export default function JourneyPublicPage() {
|
||||
} = useJourneyPublic();
|
||||
|
||||
if (loading) return <SharedLoading />;
|
||||
if (access === 'locked') return <JourneyPublicPasswordCard onUnlock={unlock} />;
|
||||
if (access === 'expired') return <JourneyPublicExpired />;
|
||||
|
||||
if (error || !data) {
|
||||
return (
|
||||
@@ -549,6 +557,12 @@ export default function JourneyPublicPage() {
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
{social.commentsOpen && (
|
||||
<div className="mt-3 border-t border-zinc-100 pt-3 dark:border-zinc-800">
|
||||
<GuestEntryComments entryId={entry.id} thread={social} />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
@@ -619,6 +633,7 @@ export default function JourneyPublicPage() {
|
||||
<SharedHero
|
||||
trip={{ title: journey.title, description: journey.subtitle, cover_image: journey.cover_image, start_date: firstDate, end_date: lastDate }}
|
||||
stats={heroStats}
|
||||
action={social.canSubscribe ? <JourneyPublicFollow onSubscribe={social.subscribe} /> : undefined}
|
||||
/>
|
||||
{!floatingSwitch && (
|
||||
<SharedTabBar tabs={availableViews.map(v => ({ id: v.id, label: v.label, icon: v.icon }))} active={view} onChange={id => setView(id as typeof view)} />
|
||||
@@ -777,6 +792,7 @@ export default function JourneyPublicPage() {
|
||||
publicPhotoUrl={(photoId, size = 'original') =>
|
||||
`/api/public/journey/${token}/photos/${photoId}/${size}`
|
||||
}
|
||||
comments={social.commentsOpen ? <GuestEntryComments entryId={viewingEntry.id} thread={social} /> : undefined}
|
||||
onClose={() => setViewingEntry(null)}
|
||||
onEdit={() => { }}
|
||||
onDelete={() => { }}
|
||||
|
||||
@@ -21,6 +21,7 @@ import type { DawarichSuggestion, DawarichSuggestionTarget, JourneyMapPlace } fr
|
||||
import { useDawarichJournalTrail } from '../../hooks/useDawarichJournalTrail'
|
||||
import { useJourneyDetailLayers } from './useJourneyDetailLayers'
|
||||
import { useProviderPhotoAdds } from './useProviderPhotoAdds'
|
||||
import { useJourneyComments } from '../../components/Journey/useJourneyComments'
|
||||
|
||||
|
||||
/**
|
||||
@@ -540,7 +541,7 @@ export function useJourneyDetail({ journeyId, embedded = false }: JourneyDetailO
|
||||
|
||||
const {
|
||||
recordingPrep, recordings, canTakeOverRecording, recordingNeedsConnection, mapTracks, mapLayers, entryTitleOf,
|
||||
dayImport, dayImportDates,
|
||||
dayImport, dayImportDates, gpxImport, canImportGpx,
|
||||
} = useJourneyDetailLayers({
|
||||
journey: current, loaded: journeyLoaded, canEditEntries, loadJourney: refreshJourney, dawarich, dawarichByDate, dawarichTrail,
|
||||
tripDates, sidebarMapItems, photoCount: mapPhotos.length, showTripTracks,
|
||||
@@ -574,8 +575,11 @@ export function useJourneyDetail({ journeyId, embedded = false }: JourneyDetailO
|
||||
void import('../JourneyStudioPage')
|
||||
}, [])
|
||||
|
||||
// #1702: the threads under the entries, read once the journey is here.
|
||||
const comments = useJourneyComments(journeyLoaded && current ? current.id : null)
|
||||
|
||||
return {
|
||||
id, navigate, toast, t, locale, embedded, notFound,
|
||||
id, navigate, toast, t, locale, embedded, notFound, comments,
|
||||
openStudio, prefetchStudio,
|
||||
current, loading,
|
||||
canEditEntries, canEditJourney, myRole,
|
||||
@@ -592,7 +596,7 @@ export function useJourneyDetail({ journeyId, embedded = false }: JourneyDetailO
|
||||
galleryUploadProgress, setGalleryUploadProgress,
|
||||
activeLocationId, handleMarkerClick, handleLocationClick,
|
||||
mapEntries, sidebarMapItems, tripDates, isMobile, tracks: mapTracks, dawarichTrail, mapLayers, entryTitleOf,
|
||||
recordings, canTakeOverRecording, recordingNeedsConnection, dayImport, dayImportDates, recordingPrep,
|
||||
recordings, canTakeOverRecording, recordingNeedsConnection, dayImport, dayImportDates, recordingPrep, gpxImport, canImportGpx,
|
||||
mapPhotos, openMapPhotos,
|
||||
feedEdge, scrollFeedTo,
|
||||
// The views reload after their own changes; such a read never rejects.
|
||||
|
||||
@@ -41,7 +41,7 @@ export function useJourneyDetailRecordings({
|
||||
);
|
||||
const recordings = useJourneyRecordings(journey, colorOfDay);
|
||||
// #3085: a GPX file is a source of its own, open to whoever may edit, with or without Dawarich.
|
||||
const gpxImport = useJourneyGpxImport(journeyId, recordings.keptMany);
|
||||
const gpxImport = useJourneyGpxImport(journeyId, recordings.keptMany, recordings.removed);
|
||||
|
||||
const mapTracks = useMemo(() => {
|
||||
if (recordings.tracks.length === 0 && liveTracks.length === 0) return tripTracks;
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
import { useParams, useSearchParams } from 'react-router-dom';
|
||||
import { useJourneyFollow } from './useJourneyFollow';
|
||||
|
||||
/**
|
||||
* The follower page's state: which mail link was opened (`/public/journey-follow/
|
||||
* confirm` or `/unsubscribe`) and what posting its token came to. An unknown
|
||||
* action reads as an unknown link.
|
||||
*/
|
||||
export function useJourneyFollowPage() {
|
||||
const { action } = useParams();
|
||||
const [params] = useSearchParams();
|
||||
const known = action === 'confirm' || action === 'unsubscribe' ? action : null;
|
||||
const state = useJourneyFollow(known ?? 'confirm', known ? params.get('token') : null);
|
||||
return { action: known, state };
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
import { BellPlus, MailCheck } from 'lucide-react';
|
||||
import { useId, useState, type FormEvent } from 'react';
|
||||
import {
|
||||
DialogButton,
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogShell,
|
||||
DialogTile,
|
||||
FooterSpacer,
|
||||
NEUTRAL_TINT,
|
||||
fs,
|
||||
} from '../../components/shared/DialogShell';
|
||||
import { useTranslation } from '../../i18n';
|
||||
import { GLASS } from '../sharedTrip/SharedChrome';
|
||||
import type { PublicSocialOutcome } from './journeyPublicModel';
|
||||
|
||||
const OUTCOME_KEYS: Record<Exclude<PublicSocialOutcome, 'ok'>, string> = {
|
||||
closed: 'journey.follow.closed',
|
||||
gone: 'journey.public.notFoundMessage',
|
||||
locked: 'journey.comments.locked',
|
||||
rate_limited: 'common.tooManyAttempts',
|
||||
invalid: 'journey.follow.invalid',
|
||||
failed: 'journey.follow.failed',
|
||||
};
|
||||
|
||||
/**
|
||||
* "Follow" on a shared journey (#1669): one glass pill in the hero, and a small
|
||||
* dialog that takes an address. The server answers the same for an address that
|
||||
* already follows, so the dialog always ends on "check your inbox".
|
||||
*/
|
||||
export function JourneyPublicFollow({
|
||||
onSubscribe,
|
||||
}: {
|
||||
onSubscribe: (email: string, locale: string) => Promise<PublicSocialOutcome>;
|
||||
}) {
|
||||
const { t, locale } = useTranslation();
|
||||
const labelId = useId();
|
||||
const [open, setOpen] = useState(false);
|
||||
const [email, setEmail] = useState('');
|
||||
const [trap, setTrap] = useState('');
|
||||
const [busy, setBusy] = useState(false);
|
||||
const [sent, setSent] = useState(false);
|
||||
const [error, setError] = useState<string | null>(null);
|
||||
|
||||
const close = () => {
|
||||
setOpen(false);
|
||||
setError(null);
|
||||
};
|
||||
|
||||
const submit = async (e: FormEvent) => {
|
||||
e.preventDefault();
|
||||
if (busy || sent || !email.trim()) return;
|
||||
// Only a bot fills the field people never see: it is told all went well.
|
||||
if (trap) {
|
||||
setSent(true);
|
||||
return;
|
||||
}
|
||||
setBusy(true);
|
||||
setError(null);
|
||||
const outcome = await onSubscribe(email.trim(), locale || 'en');
|
||||
setBusy(false);
|
||||
if (outcome === 'ok') setSent(true);
|
||||
else setError(t(OUTCOME_KEYS[outcome]));
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setOpen(true)}
|
||||
className={`${GLASS} hover:bg-white/25`}
|
||||
style={fs(12, 'body')}
|
||||
>
|
||||
<BellPlus size={13} strokeWidth={2} aria-hidden />
|
||||
{t('journey.follow.title')}
|
||||
</button>
|
||||
{open && (
|
||||
<DialogShell
|
||||
onClose={close}
|
||||
labelledBy={labelId}
|
||||
width="narrow"
|
||||
onSubmit={(e) => void submit(e)}
|
||||
header={
|
||||
<DialogHeader
|
||||
tile={<DialogTile>{sent ? <MailCheck size={18} /> : <BellPlus size={18} />}</DialogTile>}
|
||||
tint={NEUTRAL_TINT}
|
||||
labelId={labelId}
|
||||
onClose={close}
|
||||
title={sent ? t('journey.follow.sentTitle') : t('journey.follow.title')}
|
||||
sub={sent ? t('journey.follow.sentText') : t('journey.follow.text')}
|
||||
subWraps
|
||||
/>
|
||||
}
|
||||
footer={
|
||||
<DialogFooter>
|
||||
<FooterSpacer />
|
||||
{sent ? (
|
||||
<DialogButton variant="primary" onClick={close}>
|
||||
{t('common.close')}
|
||||
</DialogButton>
|
||||
) : (
|
||||
<DialogButton variant="primary" type="submit" disabled={busy || !email.trim()}>
|
||||
{t('journey.follow.title')}
|
||||
</DialogButton>
|
||||
)}
|
||||
</DialogFooter>
|
||||
}
|
||||
>
|
||||
{!sent && (
|
||||
<div className="flex flex-col gap-2 px-6 py-5">
|
||||
<input
|
||||
type="email"
|
||||
value={email}
|
||||
onChange={(e) => setEmail(e.target.value)}
|
||||
autoFocus
|
||||
autoComplete="email"
|
||||
placeholder={t('common.email')}
|
||||
aria-label={t('common.email')}
|
||||
className="w-full rounded-xl border border-edge bg-surface px-3.5 py-2.5 text-body text-content outline-none placeholder:text-content-faint focus:border-content-faint"
|
||||
/>
|
||||
{/* Left empty by people: the field sits off screen and out of the tab order. */}
|
||||
<input
|
||||
value={trap}
|
||||
onChange={(e) => setTrap(e.target.value)}
|
||||
name="website"
|
||||
tabIndex={-1}
|
||||
autoComplete="off"
|
||||
aria-hidden="true"
|
||||
className="absolute -start-[9999px] h-px w-px opacity-0"
|
||||
/>
|
||||
{error && (
|
||||
<p role="alert" className="text-caption text-danger">
|
||||
{error}
|
||||
</p>
|
||||
)}
|
||||
<p className="text-caption text-content-faint">{t('journey.follow.privacy')}</p>
|
||||
</div>
|
||||
)}
|
||||
</DialogShell>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
import { Clock, Lock } from 'lucide-react';
|
||||
import { useState, type FormEvent, type ReactNode } from 'react';
|
||||
import { useTranslation } from '../../i18n';
|
||||
import type { PublicUnlockOutcome } from './journeyPublicModel';
|
||||
|
||||
const OUTCOME_KEYS: Record<Exclude<PublicUnlockOutcome, 'ok' | 'expired'>, string> = {
|
||||
wrong: 'journey.public.passwordWrong',
|
||||
rate_limited: 'common.tooManyAttempts',
|
||||
failed: 'journey.public.passwordFailed',
|
||||
};
|
||||
|
||||
function GateFrame({
|
||||
icon,
|
||||
title,
|
||||
text,
|
||||
children,
|
||||
}: {
|
||||
icon: ReactNode;
|
||||
title: string;
|
||||
text: string;
|
||||
children?: ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<div className="flex min-h-screen items-center justify-center bg-surface-secondary px-4">
|
||||
<div className="w-full max-w-sm rounded-[28px] border border-edge-faint bg-surface-card p-7 text-center shadow-sm">
|
||||
<div className="mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-2xl bg-surface-secondary text-content-muted">
|
||||
{icon}
|
||||
</div>
|
||||
<h1 className="text-subtitle font-bold text-content">{title}</h1>
|
||||
<p className="mt-1.5 text-body text-content-muted">{text}</p>
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
/** A shared journey behind a password (#2553): one field, and why it did not open. */
|
||||
export function JourneyPublicPasswordCard({
|
||||
onUnlock,
|
||||
}: {
|
||||
onUnlock: (password: string) => Promise<PublicUnlockOutcome>;
|
||||
}) {
|
||||
const { t } = useTranslation();
|
||||
const [password, setPassword] = useState('');
|
||||
const [busy, setBusy] = useState(false);
|
||||
const [error, setError] = useState<string | null>(null);
|
||||
|
||||
const submit = async (e: FormEvent) => {
|
||||
e.preventDefault();
|
||||
if (!password || busy) return;
|
||||
setBusy(true);
|
||||
setError(null);
|
||||
const outcome = await onUnlock(password);
|
||||
setBusy(false);
|
||||
if (outcome === 'ok' || outcome === 'expired') return;
|
||||
setError(t(OUTCOME_KEYS[outcome]));
|
||||
};
|
||||
|
||||
return (
|
||||
<GateFrame icon={<Lock size={20} />} title={t('journey.public.lockedTitle')} text={t('journey.public.lockedText')}>
|
||||
<form onSubmit={(e) => void submit(e)} className="mt-5 flex flex-col gap-2.5">
|
||||
<input
|
||||
type="password"
|
||||
value={password}
|
||||
onChange={(e) => setPassword(e.target.value)}
|
||||
autoFocus
|
||||
autoComplete="current-password"
|
||||
placeholder={t('common.password')}
|
||||
aria-label={t('common.password')}
|
||||
className="w-full rounded-xl border border-edge bg-surface px-3.5 py-2.5 text-body text-content outline-none placeholder:text-content-faint focus:border-content-faint"
|
||||
/>
|
||||
<button
|
||||
type="submit"
|
||||
disabled={!password || busy}
|
||||
className="w-full rounded-xl bg-accent py-2.5 text-body font-semibold text-accent-text transition-colors hover:bg-accent-hover disabled:opacity-50"
|
||||
>
|
||||
{t('journey.public.unlock')}
|
||||
</button>
|
||||
{error && (
|
||||
<p role="alert" className="text-caption text-danger">
|
||||
{error}
|
||||
</p>
|
||||
)}
|
||||
</form>
|
||||
</GateFrame>
|
||||
);
|
||||
}
|
||||
|
||||
/** A shared journey whose owner let the link run out. */
|
||||
export function JourneyPublicExpired() {
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<GateFrame
|
||||
icon={<Clock size={20} />}
|
||||
title={t('journey.public.expiredTitle')}
|
||||
text={t('journey.public.expiredText')}
|
||||
/>
|
||||
);
|
||||
}
|
||||
@@ -11,9 +11,16 @@ import {
|
||||
groupByDate, publicLinkAccessOf, unlockOutcomeOf,
|
||||
type PublicEntry, type PublicGalleryPhoto, type PublicLinkAccess, type PublicUnlockOutcome,
|
||||
} from './journeyPublicModel'
|
||||
import { useJourneyPublicSocial } from './useJourneyPublicSocial'
|
||||
import { useJourneyMapLayers } from '../../components/Journey/useJourneyMapLayers'
|
||||
import { journeyOpenAtEntryId } from '../../components/Journey/journeyOpenAt'
|
||||
import { localIsoDate } from '../../utils/localDate'
|
||||
import { journeySocialRepo } from '../../repo/journeySocialRepo'
|
||||
|
||||
type PublicJourneyRead = { token: string; revision: number } & (
|
||||
| { status: 'open'; data: Awaited<ReturnType<typeof journeyApi.getPublicJourney>> }
|
||||
| { status: 'locked' | 'expired' | 'error' }
|
||||
)
|
||||
|
||||
/**
|
||||
* Public-journey (read-only share) data hook — owns the token fetch, the
|
||||
@@ -26,14 +33,14 @@ import { localIsoDate } from '../../utils/localDate'
|
||||
*/
|
||||
export function useJourneyPublic() {
|
||||
const { token } = useParams()
|
||||
const [data, setData] = useState<any>(null)
|
||||
const [loading, setLoading] = useState(true)
|
||||
const [error, setError] = useState(false)
|
||||
// #2553: a link with a password answers 401 until this browser unlocked it,
|
||||
// one past its date 410; the page shows a password card or a "gone" note.
|
||||
const [access, setAccess] = useState<PublicLinkAccess>('open')
|
||||
// Bumped by a successful unlock, so the read runs again with the new cookie.
|
||||
const [response, setResponse] = useState<PublicJourneyRead | null>(null)
|
||||
const [reloadKey, setReloadKey] = useState(0)
|
||||
// React can keep the page mounted when the visitor follows a different link.
|
||||
const current = response && response.token === token && response.revision === reloadKey ? response : null
|
||||
const data = current?.status === 'open' ? current.data : null
|
||||
const loading = !!token && !current
|
||||
const error = !token || current?.status === 'error'
|
||||
const access: PublicLinkAccess = current?.status === 'locked' || current?.status === 'expired' ? current.status : 'open'
|
||||
const isMobile = useIsMobile()
|
||||
const [view, setView] = useState<'timeline' | 'gallery' | 'map'>('timeline')
|
||||
const [lightbox, setLightbox] = useState<{ photos: { id: string; src: string; thumbSrc?: string; caption?: string | null; mediaType?: string | null }[]; index: number } | null>(null)
|
||||
@@ -58,17 +65,13 @@ export function useJourneyPublic() {
|
||||
journeyApi.getPublicJourney(token)
|
||||
.then(d => {
|
||||
if (cancelled) return
|
||||
setData(d)
|
||||
setAccess('open')
|
||||
setResponse({ token, revision: reloadKey, status: 'open', data: d })
|
||||
void journeySocialRepo.recordPublicView(token)
|
||||
})
|
||||
.catch((err: unknown) => {
|
||||
if (cancelled) return
|
||||
const refused = publicLinkAccessOf(err)
|
||||
if (refused) setAccess(refused)
|
||||
else setError(true)
|
||||
})
|
||||
.finally(() => {
|
||||
if (!cancelled) setLoading(false)
|
||||
setResponse({ token, revision: reloadKey, status: refused ?? 'error' })
|
||||
})
|
||||
return () => {
|
||||
cancelled = true
|
||||
@@ -83,16 +86,18 @@ export function useJourneyPublic() {
|
||||
const unlock = useCallback(async (password: string): Promise<PublicUnlockOutcome> => {
|
||||
if (!token) return 'failed'
|
||||
try {
|
||||
await journeyApi.unlockPublicJourney(token, password)
|
||||
await journeySocialRepo.unlockPublicJourney(token, password)
|
||||
} catch (err) {
|
||||
const outcome = unlockOutcomeOf(err)
|
||||
if (outcome === 'expired') setAccess('expired')
|
||||
if (outcome === 'expired') setResponse({ token, revision: reloadKey, status: 'expired' })
|
||||
return outcome
|
||||
}
|
||||
setLoading(true)
|
||||
setReloadKey(n => n + 1)
|
||||
return 'ok'
|
||||
}, [token])
|
||||
}, [token, reloadKey])
|
||||
|
||||
// #1702, #1669: what a reader may do besides reading, as the owner allows it.
|
||||
const social = useJourneyPublicSocial(token, data?.interaction)
|
||||
|
||||
const entries = (data?.entries || []) as PublicEntry[]
|
||||
const gallery = (data?.gallery || []) as PublicGalleryPhoto[]
|
||||
@@ -212,7 +217,7 @@ export function useJourneyPublic() {
|
||||
}, [desktopTwoColumn, view])
|
||||
|
||||
return {
|
||||
token, data, loading, error, access, unlock, isMobile, locale,
|
||||
token, data, loading, error, access, unlock, social, isMobile, locale,
|
||||
view, setView, lightbox, setLightbox, showLangPicker, setShowLangPicker,
|
||||
mapRef, feedRef, activeEntryId, setActiveEntryId, viewingEntry, setViewingEntry, handleMarkerClick,
|
||||
perms, journey, stats,
|
||||
|
||||
@@ -20,7 +20,7 @@ export const PAGE_WIDTH = 'mx-auto w-full max-w-[1280px] px-4 sm:px-6'
|
||||
// photo is; without a cover the same dark ground keeps the hero one piece.
|
||||
const HERO_GROUND = 'linear-gradient(135deg, #0b1020 0%, #1e293b 55%, #334155 100%)' // theme-lint-disable: the hero's own ground under white type
|
||||
const HERO_SCRIM = 'linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.28) 45%, rgba(0,0,0,0.74) 100%)' // theme-lint-disable: a scrim over a photo
|
||||
const GLASS = 'inline-flex items-center gap-1.5 rounded-full border border-white/20 bg-white/15 px-3 py-1 font-semibold text-white backdrop-blur-md' // theme-lint-disable: glass over a photo
|
||||
export const GLASS = 'inline-flex items-center gap-1.5 rounded-full border border-white/20 bg-white/15 px-3 py-1 font-semibold text-white backdrop-blur-md' // theme-lint-disable: glass over a photo
|
||||
|
||||
interface TopBarProps {
|
||||
title: string
|
||||
@@ -62,10 +62,12 @@ export interface HeroStat {
|
||||
interface HeroProps {
|
||||
trip: { title: string; description?: string | null; cover_image?: string | null; start_date?: string | null; end_date?: string | null }
|
||||
stats: HeroStat[]
|
||||
/** One quiet action beside the stats, such as following a shared journey (#1669). */
|
||||
action?: ReactNode
|
||||
}
|
||||
|
||||
/** The trip as a postcard: its cover, its dates, its name, what the owner wrote about it, and how big it is. */
|
||||
export function SharedHero({ trip, stats }: HeroProps) {
|
||||
export function SharedHero({ trip, stats, action }: HeroProps) {
|
||||
const { locale } = useTranslation()
|
||||
const cover = coverSrc(trip.cover_image)
|
||||
const dates = formatDateRange(trip.start_date, trip.end_date, locale)
|
||||
@@ -84,7 +86,7 @@ export function SharedHero({ trip, stats }: HeroProps) {
|
||||
{trip.description && (
|
||||
<p className="max-w-2xl whitespace-pre-line text-white/80 [overflow-wrap:anywhere]" style={fs(14.5, 'body')}>{trip.description}</p> // theme-lint-disable: white type over a photo
|
||||
)}
|
||||
{stats.length > 0 && (
|
||||
{(stats.length > 0 || action) && (
|
||||
<div className="mt-1 flex flex-wrap gap-2">
|
||||
{stats.map(s => (
|
||||
<span key={s.key} className={GLASS} style={fs(12, 'body')}>
|
||||
@@ -92,6 +94,7 @@ export function SharedHero({ trip, stats }: HeroProps) {
|
||||
<span className="font-medium text-white/80">{s.label}</span>
|
||||
</span>
|
||||
))}
|
||||
{action}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -57,6 +57,18 @@ export const journeySocialRepo = {
|
||||
return journeyPublicCommentsResponseSchema.parse(await journeySocialApi.publicComments(token, signal));
|
||||
},
|
||||
|
||||
async recordPublicView(token: string): Promise<void> {
|
||||
try {
|
||||
await journeySocialApi.recordPublicView(token);
|
||||
} catch {
|
||||
// The owner’s view count is best effort and does not prevent opening the journey.
|
||||
}
|
||||
},
|
||||
|
||||
async unlockPublicJourney(token: string, password: string): Promise<void> {
|
||||
await journeySocialApi.unlockPublicJourney(token, password);
|
||||
},
|
||||
|
||||
async addPublicComment(token: string, entryId: number, body: JourneyPublicCommentCreateRequest): Promise<void> {
|
||||
await journeySocialApi.addPublicComment(token, entryId, body);
|
||||
},
|
||||
|
||||
@@ -2,6 +2,7 @@ import { http, HttpResponse } from 'msw';
|
||||
import { buildTrip, buildDay, buildPlace } from '../../factories';
|
||||
|
||||
export const sharedHandlers = [
|
||||
http.post('/api/public/journey/:token/view', () => HttpResponse.json({ success: true })),
|
||||
http.get('/api/shared/:token', ({ params }) => {
|
||||
const { token } = params;
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ export const ASSISTANT_DENIED_TOOLS: Readonly<Record<string, string>> = {
|
||||
create_journey_share_link: 'mints a public link token',
|
||||
delete_journey_share_link: 'belongs with the share links above',
|
||||
add_journey_comment: "speaks in the user's name to the journey's people and the readers of its share link",
|
||||
list_journey_subscribers:'reads the email addresses of people without an account, which would reach the AI provider',
|
||||
list_journey_subscribers: 'reads the email addresses of people without an account, which would reach the AI provider',
|
||||
remove_journey_subscriber: 'belongs with the followers above',
|
||||
get_trip_calendar_feed: 'reads a calendar feed token',
|
||||
enable_trip_calendar_feed: 'mints a calendar feed token',
|
||||
|
||||
@@ -65,8 +65,14 @@ export class JourneyRecordingsController {
|
||||
|
||||
@Get()
|
||||
@ResponseContract(journeyRecordedDaysResponseSchema)
|
||||
async list(@CurrentUser() user: User, @Param('id', rowId('Journey not found')) id: number) {
|
||||
return { days: await this.recordings.list(user.id, id) };
|
||||
async list(
|
||||
@CurrentUser() user: User,
|
||||
@Param('id', rowId('Journey not found')) id: number,
|
||||
@Query('includeGpx') includeGpx?: string,
|
||||
) {
|
||||
const days = await this.recordings.list(user.id, id);
|
||||
// Older clients validate the entire response against a Dawarich-only source enum.
|
||||
return { days: includeGpx === 'true' ? days : days.filter((day) => day.source === 'dawarich') };
|
||||
}
|
||||
|
||||
/** JRN-03: whether the journey prepares its recorded days, and how the caller's last runs went. */
|
||||
|
||||
@@ -112,7 +112,7 @@ export class JourneyRecordingsMcp {
|
||||
@Tool({
|
||||
name: 'import_journey_gpx_days',
|
||||
description:
|
||||
"Read the recorded route of a GPX file (its track segments with times; waypoints and routes are left out) into a journey as recorded days with source gpx, one per local day the file covers, so the journey map draws them, also on days without an entry. Each point names its day in the zone of where it was recorded unless utcOffsetMinutes fixes one zone; date keeps only that one local day. A day the journey kept from a GPX file before is replaced, one kept exactly so is left as it is, and a day kept from Dawarich is never touched. Points without a time with a zone are counted as untimedPoints and left out. Never changes an entry or a text of the journey. Everyone who can open the journey sees the route on its map. Needs edit access to the journey.",
|
||||
'Read the recorded route of a GPX file (its track segments with times; waypoints and routes are left out) into a journey as recorded days with source gpx, one per local day the file covers, so the journey map draws them, also on days without an entry. Each point names its day in the zone of where it was recorded unless utcOffsetMinutes fixes one zone; date keeps only that one local day. A day the journey kept from a GPX file before is replaced, one kept exactly so is left as it is, and a day kept from Dawarich is never touched. Points without a time with a zone are counted as untimedPoints and left out. Never changes an entry or a text of the journey. Everyone who can open the journey sees the route on its map. Needs edit access to the journey.',
|
||||
inputSchema: { journeyId: idSchema, gpx: journeyGpxTextSchema, ...journeyGpxImportOptionsSchema.shape },
|
||||
annotations: TOOL_ANNOTATIONS_WRITE,
|
||||
when: journeyAddonOn,
|
||||
|
||||
@@ -6,14 +6,14 @@ import { RateLimitService } from '../common/rate-limit.service';
|
||||
import { ResponseContract } from '../common/response-contract';
|
||||
import { rowId } from '../common/row-id.pipe';
|
||||
import { JourneyCommentsService } from './journey-comments.service';
|
||||
import { unlockProofOf } from './journey-share-access';
|
||||
import { JOURNEY_SHARE_CACHE_CONTROL, unlockProofOf } from './journey-share-access';
|
||||
import {
|
||||
JourneyPublicCommentCreateDto,
|
||||
JourneyPublicSubscribeDto,
|
||||
JourneySubscriptionTokenDto,
|
||||
} from './journey-social.dto';
|
||||
import { JourneySubscriptionsService } from './journey-subscriptions.service';
|
||||
import { Body, Controller, Get, HttpCode, HttpException, Param, Post, Req, UseGuards } from '@nestjs/common';
|
||||
import { Body, Controller, Get, Header, HttpCode, HttpException, Param, Post, Req, UseGuards } from '@nestjs/common';
|
||||
import {
|
||||
journeyPublicCommentsResponseSchema,
|
||||
journeySubscriptionConfirmResponseSchema,
|
||||
@@ -57,6 +57,7 @@ export class JourneyPublicSocialController {
|
||||
) {}
|
||||
|
||||
@Get(':token/comments')
|
||||
@Header('Cache-Control', JOURNEY_SHARE_CACHE_CONTROL)
|
||||
@ResponseContract(journeyPublicCommentsResponseSchema)
|
||||
listComments(@Param('token') token: string, @Req() req: Request) {
|
||||
return this.comments.listPublic(token, unlockProofOf(req));
|
||||
|
||||
@@ -14,14 +14,27 @@ import {
|
||||
import { StorageService } from '../storage/storage.service';
|
||||
import {
|
||||
JOURNEY_UNLOCK_COOKIE,
|
||||
keepCachesPrivate,
|
||||
JOURNEY_SHARE_CACHE_CONTROL,
|
||||
preventSharePhotoCaching,
|
||||
unlockCookieOptions,
|
||||
unlockProofOf,
|
||||
viewerOf,
|
||||
} from './journey-share-access';
|
||||
import { JourneyPublicUnlockDto } from './journey.dto';
|
||||
import { JourneyService } from './journey.service';
|
||||
import { Body, Controller, Get, HttpCode, HttpException, Param, Post, Req, Res, UseGuards } from '@nestjs/common';
|
||||
import {
|
||||
Body,
|
||||
Controller,
|
||||
Get,
|
||||
Header,
|
||||
HttpCode,
|
||||
HttpException,
|
||||
Param,
|
||||
Post,
|
||||
Req,
|
||||
Res,
|
||||
UseGuards,
|
||||
} from '@nestjs/common';
|
||||
import { journeyPublicMapLayersResponseSchema, journeyPublicResponseSchema, successResponseSchema } from '@trek/shared';
|
||||
|
||||
import type { Request, Response } from 'express';
|
||||
@@ -59,8 +72,8 @@ function sharedPhotoKind(kind: string): 'thumbnail' | 'preview' | 'original' {
|
||||
* Every route but the unlock first asks `assertPublicAccess` (#2553): the link
|
||||
* exists (404), has not run out (410) and, when it has a password, the browser
|
||||
* holds the unlock cookie for it (401). The photo proxies ask too, so a locked
|
||||
* link hands out no picture even to somebody who knows a photo's address, and
|
||||
* they answer a protected link's photos as `private`, so no shared cache keeps one.
|
||||
* link hands out no picture even to somebody who knows a photo's address.
|
||||
* Shared content cannot be reused from a cache after the owner changes access.
|
||||
*/
|
||||
@Public('share-token validated: the whole point is a link that works without an account')
|
||||
@UseGuards(AddonGuard)
|
||||
@@ -80,21 +93,32 @@ export class JourneyPublicController {
|
||||
* this route instead of going out to the public.
|
||||
*/
|
||||
@Get(':token')
|
||||
@Header('Cache-Control', JOURNEY_SHARE_CACHE_CONTROL)
|
||||
@ResponseContract(journeyPublicResponseSchema)
|
||||
async get(@Param('token') token: string, @Req() req: Request) {
|
||||
await this.journey.assertPublicAccess(token, unlockProofOf(req));
|
||||
const data = await this.journey.getPublicJourney(token, viewerOf(req));
|
||||
const data = await this.journey.getPublicJourney(token);
|
||||
if (!data) {
|
||||
throw new HttpException({ error: 'Not found' }, 404);
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
||||
@Post(':token/view')
|
||||
@HttpCode(200)
|
||||
@ResponseContract(successResponseSchema)
|
||||
async view(@Param('token') token: string, @Req() req: Request) {
|
||||
const link = await this.journey.assertPublicAccess(token, unlockProofOf(req));
|
||||
await this.journey.recordPublicView(link.id, viewerOf(req));
|
||||
return { success: true as const };
|
||||
}
|
||||
|
||||
/**
|
||||
* What the shared map shows beside the entries and photos (JRN-04), cut to
|
||||
* the link's flags on the server: nothing while the map is not shared.
|
||||
*/
|
||||
@Get(':token/map-layers')
|
||||
@Header('Cache-Control', JOURNEY_SHARE_CACHE_CONTROL)
|
||||
@ResponseContract(journeyPublicMapLayersResponseSchema)
|
||||
async mapLayers(@Param('token') token: string, @Req() req: Request) {
|
||||
await this.journey.assertPublicAccess(token, unlockProofOf(req));
|
||||
@@ -146,8 +170,8 @@ export class JourneyPublicController {
|
||||
@Res() res: Response,
|
||||
@Req() req: Request,
|
||||
): Promise<void> {
|
||||
const link = await this.journey.assertPublicAccess(token, unlockProofOf(req));
|
||||
if (link.password_hash) keepCachesPrivate(res);
|
||||
await this.journey.assertPublicAccess(token, unlockProofOf(req));
|
||||
preventSharePhotoCaching(res);
|
||||
const valid = await this.journey.validateShareTokenForPhoto(token, photoId);
|
||||
if (!valid) {
|
||||
throw new HttpException({ error: 'Not found' }, 404);
|
||||
@@ -164,8 +188,8 @@ export class JourneyPublicController {
|
||||
@Res() res: Response,
|
||||
@Req() req: Request,
|
||||
): Promise<void> {
|
||||
const link = await this.journey.assertPublicAccess(token, unlockProofOf(req));
|
||||
if (link.password_hash) keepCachesPrivate(res);
|
||||
await this.journey.assertPublicAccess(token, unlockProofOf(req));
|
||||
preventSharePhotoCaching(res);
|
||||
const valid = await this.journey.validateShareTokenForAsset(token, assetId);
|
||||
if (!valid) {
|
||||
throw new HttpException({ error: 'Not found' }, 404);
|
||||
@@ -191,7 +215,6 @@ export class JourneyPublicController {
|
||||
if (!rendition) {
|
||||
throw new HttpException({ error: 'Not found' }, 404);
|
||||
}
|
||||
res.set('Cache-Control', 'public, max-age=86400');
|
||||
await this.storage.sendToResponse('journey', rendition, res);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -26,14 +26,19 @@ const SHARE_PASSWORD_BCRYPT_COST = 12;
|
||||
/** How long a browser stays unlocked unless the link runs out first: 30 days. */
|
||||
const UNLOCK_MAX_AGE_MS = 30 * 24 * 60 * 60 * 1000;
|
||||
|
||||
/** Keep every UTF-8 byte of the password in the fixed-length value bcrypt sees. */
|
||||
function passwordMaterial(password: string): string {
|
||||
return createHash('sha256').update(password).digest('base64url');
|
||||
}
|
||||
|
||||
/** The password's hash for the link row. Async, so a hash never blocks the event loop. */
|
||||
export function hashSharePassword(password: string): Promise<string> {
|
||||
return bcrypt.hash(password, SHARE_PASSWORD_BCRYPT_COST);
|
||||
return bcrypt.hash(passwordMaterial(password), SHARE_PASSWORD_BCRYPT_COST);
|
||||
}
|
||||
|
||||
/** Whether `password` is the one the link was given. */
|
||||
export function checkSharePassword(password: string, hash: string): Promise<boolean> {
|
||||
return bcrypt.compare(password, hash);
|
||||
return bcrypt.compare(passwordMaterial(password), hash);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -96,28 +101,17 @@ export function unlockCookieOptions(
|
||||
};
|
||||
}
|
||||
|
||||
/** A `Cache-Control` value with `public` turned into `private`; anything else stays as it is. */
|
||||
export function privateCacheControl(value: number | string | readonly string[]): number | string | string[] {
|
||||
const toPrivate = (v: string) => v.replace(/\bpublic\b/gi, 'private');
|
||||
if (typeof value === 'number') return value;
|
||||
if (typeof value === 'string') return toPrivate(value);
|
||||
return value.map(toPrivate);
|
||||
}
|
||||
export const JOURNEY_SHARE_CACHE_CONTROL = 'private, no-store';
|
||||
|
||||
/**
|
||||
* Keeps a protected link's photo out of shared caches. The photo proxies of
|
||||
* the memories domain answer `public, max-age=…`, which is right for an open
|
||||
* link, but a proxy or CDN between TREK and the reader would then hand a
|
||||
* protected link's photo to somebody who never typed the password. Every
|
||||
* `Cache-Control` the response is given from here on is made `private`, so
|
||||
* only the reader's own browser keeps it.
|
||||
*/
|
||||
export function keepCachesPrivate(res: Response): void {
|
||||
/** Reuse the provider streams while keeping every photo request subject to current link access. */
|
||||
export function preventSharePhotoCaching(res: Response): void {
|
||||
res.setHeader('Cache-Control', JOURNEY_SHARE_CACHE_CONTROL);
|
||||
const setHeader = res.setHeader.bind(res);
|
||||
res.setHeader = ((name: string, value: number | string | readonly string[]) => {
|
||||
const isCacheControl = name.toLowerCase() === 'cache-control';
|
||||
return setHeader(name, isCacheControl ? privateCacheControl(value) : value);
|
||||
}) as Response['setHeader'];
|
||||
res.setHeader = ((name: string, value: number | string | readonly string[]) =>
|
||||
setHeader(
|
||||
name,
|
||||
name.toLowerCase() === 'cache-control' ? JOURNEY_SHARE_CACHE_CONTROL : value,
|
||||
)) as Response['setHeader'];
|
||||
}
|
||||
|
||||
/** Who is asking, as far as the view count needs to tell readers apart: their address and browser. */
|
||||
|
||||
@@ -377,16 +377,11 @@ export class JourneyShareService {
|
||||
}
|
||||
|
||||
/**
|
||||
* The shared journey. `viewer` (address and browser, see `viewerOf`) is who
|
||||
* opened it, for the owner's view count; left out, nothing is counted.
|
||||
* The shared journey.
|
||||
* `canMail` says whether the instance can send mail at all: a reader is only
|
||||
* offered to follow the link by email when it can (#1669).
|
||||
*/
|
||||
async getPublicJourney(
|
||||
token: string,
|
||||
viewer?: string,
|
||||
options: { canMail?: boolean } = {},
|
||||
): Promise<JourneyPublicResponse | null> {
|
||||
async getPublicJourney(token: string, options: { canMail?: boolean } = {}): Promise<JourneyPublicResponse | null> {
|
||||
// JS11 — exact-match token lookup, no LIKE/COLLATE (R4).
|
||||
const row = await this.shareTokensRepo.findByToken(token);
|
||||
if (!row) return null;
|
||||
@@ -395,8 +390,6 @@ export class JourneyShareService {
|
||||
const journey = await this.journeysRepo.findById(row.journey_id);
|
||||
if (!journey) return null;
|
||||
|
||||
if (viewer !== undefined) await this.countView(row.id, viewer);
|
||||
|
||||
// Entries with photos — JS13 (Plan 4 Task 8b: relocated to `JourneyEntriesRepository`).
|
||||
const entries = await this.entriesRepo.listPublicEntries(row.journey_id);
|
||||
|
||||
@@ -497,7 +490,7 @@ export class JourneyShareService {
|
||||
*
|
||||
* @txStandalone a counter bumped in one statement, independent of the read around it.
|
||||
*/
|
||||
private async countView(linkId: number, viewer: string): Promise<void> {
|
||||
async recordPublicView(linkId: number, viewer: string): Promise<void> {
|
||||
try {
|
||||
if (!(await this.views.firstToday(viewKey(linkId, viewer), new Date()))) return;
|
||||
await this.shareTokensRepo.recordView(linkId);
|
||||
|
||||
@@ -220,8 +220,11 @@ export class JourneyService {
|
||||
unlockPublicLink(token: string, password: string) {
|
||||
return this.share.unlockPublicLink(token, password);
|
||||
}
|
||||
async getPublicJourney(token: string, viewer?: string) {
|
||||
return this.share.getPublicJourney(token, viewer, { canMail: await this.mailer.isSmtpConfigured() });
|
||||
async getPublicJourney(token: string) {
|
||||
return this.share.getPublicJourney(token, { canMail: await this.mailer.isSmtpConfigured() });
|
||||
}
|
||||
recordPublicView(linkId: number, viewer: string) {
|
||||
return this.share.recordPublicView(linkId, viewer);
|
||||
}
|
||||
getPublicMapLayers(token: string) {
|
||||
return this.map.publicMapLayers(token);
|
||||
|
||||
@@ -109,12 +109,7 @@ export class PhotoResolverService {
|
||||
* told the asset goes to the public, so it can send a rendition without the
|
||||
* stored location in place of the original file.
|
||||
*/
|
||||
async streamPublicPhoto(
|
||||
res: Response,
|
||||
ownerId: number,
|
||||
photoId: number,
|
||||
kind: PhotoAssetKind,
|
||||
): Promise<void> {
|
||||
async streamPublicPhoto(res: Response, ownerId: number, photoId: number, kind: PhotoAssetKind): Promise<void> {
|
||||
await this.stream(res, ownerId, photoId, kind, undefined, 'public');
|
||||
}
|
||||
|
||||
|
||||
@@ -100,8 +100,11 @@ describe('a journey link with a password', () => {
|
||||
|
||||
const open = await request(server).get(`/api/public/journey/${token}`).set('Cookie', pair);
|
||||
expect(open.status).toBe(200);
|
||||
expect(open.headers['cache-control']).toBe('private, no-store');
|
||||
expect(open.body.journey.title).toBe(journey.title);
|
||||
expect((await request(server).get(`/api/public/journey/${token}/map-layers`).set('Cookie', pair)).status).toBe(200);
|
||||
const map = await request(server).get(`/api/public/journey/${token}/map-layers`).set('Cookie', pair);
|
||||
expect(map.status).toBe(200);
|
||||
expect(map.headers['cache-control']).toBe('private, no-store');
|
||||
});
|
||||
|
||||
it('JPUBLINK-E2E-002: a new password locks out the browsers that unlocked the old one', async () => {
|
||||
@@ -120,7 +123,9 @@ describe('a journey link with a password', () => {
|
||||
it('JPUBLINK-E2E-003: wrong passwords count per address and link, a right one does not', async () => {
|
||||
const { token } = await sharedJourney({ password: 'secret1' });
|
||||
for (let i = 0; i < 10; i++) {
|
||||
const res = await request(server).post(`/api/public/journey/${token}/unlock`).send({ password: `nope${i}` });
|
||||
const res = await request(server)
|
||||
.post(`/api/public/journey/${token}/unlock`)
|
||||
.send({ password: `nope${i}` });
|
||||
expect(res.status).toBe(401);
|
||||
}
|
||||
const limited = await request(server).post(`/api/public/journey/${token}/unlock`).send({ password: 'secret1' });
|
||||
@@ -194,13 +199,17 @@ describe('a journey link with an expiry', () => {
|
||||
});
|
||||
|
||||
describe('the view count of a journey link', () => {
|
||||
it('JPUBLINK-E2E-020: counts each reader once a day, on the journey read only, for the owner only', async () => {
|
||||
it('JPUBLINK-E2E-020: records each reader once a day and shows the count only to the owner', async () => {
|
||||
const { owner, journey, token } = await sharedJourney();
|
||||
|
||||
await request(server).get(`/api/public/journey/${token}`).set('User-Agent', 'Reader A');
|
||||
await request(server).get(`/api/public/journey/${token}`).set('User-Agent', 'Reader A');
|
||||
await request(server).get(`/api/public/journey/${token}`).set('User-Agent', 'Reader B');
|
||||
await request(server).get(`/api/public/journey/${token}/map-layers`).set('User-Agent', 'Reader C');
|
||||
expect((await ownerReads(journey.id, owner.id)).body.link.view_count).toBe(0);
|
||||
const view = (reader: string) =>
|
||||
request(server).post(`/api/public/journey/${token}/view`).set('User-Agent', reader);
|
||||
expect((await view('Reader A')).status).toBe(200);
|
||||
expect((await view('Reader A')).status).toBe(200);
|
||||
expect((await view('Reader B')).status).toBe(200);
|
||||
|
||||
const read = await ownerReads(journey.id, owner.id);
|
||||
expect(read.body.link.view_count).toBe(2);
|
||||
@@ -212,7 +221,9 @@ describe('the view count of a journey link', () => {
|
||||
|
||||
it('JPUBLINK-E2E-021: a locked link counts nobody who has not unlocked it', async () => {
|
||||
const { token } = await sharedJourney({ password: 'secret1' });
|
||||
await request(server).get(`/api/public/journey/${token}`).set('User-Agent', 'Stranger');
|
||||
expect((await request(server).post(`/api/public/journey/${token}/view`).set('User-Agent', 'Stranger')).status).toBe(
|
||||
401,
|
||||
);
|
||||
expect((await findRow(orm, JourneyShareTokens, { token }))?.view_count).toBe(0);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -366,7 +366,9 @@ describe('Journey recordings e2e (real guards + temp SQLite)', () => {
|
||||
'12',
|
||||
);
|
||||
|
||||
const listed = await request(server).get(base()).set(as(VIEWER));
|
||||
const legacy = await request(server).get(base()).set(as(VIEWER));
|
||||
expect(legacy.body.days.map((day: { source: string }) => day.source)).toEqual(['dawarich']);
|
||||
const listed = await request(server).get(base()).query({ includeGpx: true }).set(as(VIEWER));
|
||||
expect(listed.body.days.map((d: { date: string; source: string }) => [d.date, d.source])).toEqual([
|
||||
[DAY, 'dawarich'],
|
||||
[DAY, 'gpx'],
|
||||
@@ -379,7 +381,7 @@ describe('Journey recordings e2e (real guards + temp SQLite)', () => {
|
||||
|
||||
const dropped = await request(server).delete(`${base()}/${DAY}?source=gpx`).set(as(EDITOR));
|
||||
expect(dropped.status).toBe(200);
|
||||
const left = await request(server).get(base()).set(as(OWNER));
|
||||
const left = await request(server).get(base()).query({ includeGpx: true }).set(as(OWNER));
|
||||
expect(left.body.days.map((d: { date: string; source: string }) => [d.date, d.source])).toEqual([
|
||||
[DAY, 'dawarich'],
|
||||
['2026-05-15', 'gpx'],
|
||||
|
||||
@@ -24,7 +24,10 @@ describe('journey_share_tokens protection migration', () => {
|
||||
if (!previous) throw new Error('no step before the target');
|
||||
await migrateTo(orm, previous);
|
||||
await rawExec(orm, "INSERT INTO users (id, username, email, password_hash) VALUES (1, 'owner', 'o@test', 'x')");
|
||||
await rawExec(orm, "INSERT INTO journeys (id, user_id, title, created_at, updated_at) VALUES (5, 1, 'Iceland', 0, 0)");
|
||||
await rawExec(
|
||||
orm,
|
||||
"INSERT INTO journeys (id, user_id, title, created_at, updated_at) VALUES (5, 1, 'Iceland', 0, 0)",
|
||||
);
|
||||
await rawExec(
|
||||
orm,
|
||||
"INSERT INTO journey_share_tokens (id, journey_id, token, created_by, share_timeline, share_gallery, share_map, share_plan) VALUES (9, 5, 'tok', 1, 1, 0, 1, 1)",
|
||||
|
||||
@@ -116,13 +116,11 @@ describe('MCP tool input schemas', () => {
|
||||
it('MCP-SCHEMA-004: the page edit and the design revision, which take every page operation, stay under their ceiling', () => {
|
||||
// Every element kind's add and style operation widen the op union; the design's
|
||||
// revision takes the same ops. A layout's undo takes its layout as JSON text, so it stays small.
|
||||
// Measured at about 45 400 since a map's scope (country, day, stop), its own view and its coast
|
||||
// (book schema revision 12), up from 44 600, with the scope and the view each checked whole to stay small.
|
||||
const sizeOf = (tool: string) =>
|
||||
JSON.stringify([...schemas].find(([key]) => key.endsWith(`#${tool}`))?.[1] ?? null).length;
|
||||
for (const tool of ['edit_book_page', 'revise_book_design']) {
|
||||
expect(sizeOf(tool)).toBeGreaterThan(10_000);
|
||||
expect(sizeOf(tool)).toBeLessThan(46_000);
|
||||
expect(sizeOf(tool)).toBeLessThan(45_000);
|
||||
}
|
||||
expect(sizeOf('restore_book_layout')).toBeLessThan(2_000);
|
||||
});
|
||||
|
||||
@@ -1529,7 +1529,9 @@ describe('the view count of a share link', () => {
|
||||
});
|
||||
|
||||
async function publicJourneyAs(token: string, viewer: string) {
|
||||
const result = await svc.getPublicJourney(token, viewer);
|
||||
const link = await svc.assertPublicAccess(token, undefined);
|
||||
await svc.recordPublicView(link.id, viewer);
|
||||
const result = await svc.getPublicJourney(token);
|
||||
if (!result) throw new Error('no public payload for the share link');
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -50,7 +50,6 @@ const captureBackfillStub = {
|
||||
scheduleUpload,
|
||||
} as unknown as JourneyPhotoCaptureService;
|
||||
|
||||
|
||||
/**
|
||||
* Build the controller.
|
||||
*
|
||||
@@ -1129,8 +1128,13 @@ describe('JourneyPublicController', () => {
|
||||
});
|
||||
const getPublicJourney = vi.fn().mockReturnValue({ id: 1 });
|
||||
expect(await pub(open({ getPublicJourney })).get('tok', anon)).toEqual({ id: 1 });
|
||||
// The reader is named for the view count by address and browser, nothing more.
|
||||
expect(getPublicJourney).toHaveBeenCalledWith('tok', '203.0.113.9|Firefox');
|
||||
expect(getPublicJourney).toHaveBeenCalledWith('tok');
|
||||
});
|
||||
|
||||
it('records a view against the link that passed the shared access check', async () => {
|
||||
const recordPublicView = vi.fn().mockResolvedValue(undefined);
|
||||
expect(await pub(open({ recordPublicView })).view('tok', anon)).toEqual({ success: true });
|
||||
expect(recordPublicView).toHaveBeenCalledWith(1, '203.0.113.9|Firefox');
|
||||
});
|
||||
|
||||
it('GET /:token/map-layers 404 on an unknown link, else the layers as the service cut them (JRN-04)', async () => {
|
||||
@@ -1239,28 +1243,46 @@ describe('JourneyPublicController', () => {
|
||||
|
||||
it('photo proxy 404 on invalid token, else streams', async () => {
|
||||
const invalid = open({ validateShareTokenForPhoto: vi.fn().mockReturnValue(null) });
|
||||
expect(await thrownAsync(() => pub(invalid).photo('tok', 7, 'thumbnail', {} as Response, anon))).toEqual({
|
||||
expect(
|
||||
await thrownAsync(() =>
|
||||
pub(invalid).photo('tok', 7, 'thumbnail', { setHeader: vi.fn() } as unknown as Response, anon),
|
||||
),
|
||||
).toEqual({
|
||||
status: 404,
|
||||
body: { error: 'Not found' },
|
||||
});
|
||||
const streamPhoto = vi.fn().mockResolvedValue(undefined);
|
||||
const s = open({ validateShareTokenForPhoto: vi.fn().mockReturnValue({ ownerId: 2 }), streamPhoto });
|
||||
await pub(s).photo('tok', 7, 'original', {} as Response, anon);
|
||||
expect(streamPhoto).toHaveBeenCalledWith({}, 2, 7, 'original');
|
||||
await pub(s).photo('tok', 7, 'original', { setHeader: vi.fn() } as unknown as Response, anon);
|
||||
expect(streamPhoto).toHaveBeenCalledWith(
|
||||
expect.objectContaining({ setHeader: expect.any(Function) }),
|
||||
2,
|
||||
7,
|
||||
'original',
|
||||
);
|
||||
});
|
||||
|
||||
it('legacy photo proxy: 404 invalid token, immich path streams', async () => {
|
||||
const invalid = open({ validateShareTokenForAsset: vi.fn().mockReturnValue(null) });
|
||||
expect(
|
||||
await thrownAsync(() => pub(invalid).legacyPhoto('tok', 'immich', 'a1', 'thumbnail', {} as Response, anon)),
|
||||
await thrownAsync(() =>
|
||||
pub(invalid).legacyPhoto(
|
||||
'tok',
|
||||
'immich',
|
||||
'a1',
|
||||
'thumbnail',
|
||||
{ setHeader: vi.fn() } as unknown as Response,
|
||||
anon,
|
||||
),
|
||||
),
|
||||
).toEqual({ status: 404, body: { error: 'Not found' } });
|
||||
// One call for every provider now, with the ids in a ref instead of in a
|
||||
// per-provider argument order.
|
||||
const streamProviderAsset = vi.fn().mockResolvedValue(undefined);
|
||||
const s = open({ validateShareTokenForAsset: vi.fn().mockReturnValue({ ownerId: 5 }), streamProviderAsset });
|
||||
await pub(s).legacyPhoto('tok', 'immich', 'a1', 'original', {} as Response, anon);
|
||||
await pub(s).legacyPhoto('tok', 'immich', 'a1', 'original', { setHeader: vi.fn() } as unknown as Response, anon);
|
||||
expect(streamProviderAsset).toHaveBeenCalledWith(
|
||||
{},
|
||||
expect.objectContaining({ setHeader: expect.any(Function) }),
|
||||
'immich',
|
||||
{ userId: 5, ownerId: 5, assetId: 'a1' },
|
||||
'original',
|
||||
@@ -1270,33 +1292,50 @@ describe('JourneyPublicController', () => {
|
||||
it('photo proxy streams thumbnails too', async () => {
|
||||
const streamPhoto = vi.fn().mockResolvedValue(undefined);
|
||||
const s = open({ validateShareTokenForPhoto: vi.fn().mockReturnValue({ ownerId: 3 }), streamPhoto });
|
||||
await pub(s).photo('tok', 7, 'thumbnail', {} as Response, anon);
|
||||
expect(streamPhoto).toHaveBeenCalledWith({}, 3, 7, 'thumbnail');
|
||||
await pub(s).photo('tok', 7, 'thumbnail', { setHeader: vi.fn() } as unknown as Response, anon);
|
||||
expect(streamPhoto).toHaveBeenCalledWith(
|
||||
expect.objectContaining({ setHeader: expect.any(Function) }),
|
||||
3,
|
||||
7,
|
||||
'thumbnail',
|
||||
);
|
||||
});
|
||||
|
||||
it('both photo proxies hand a preview on as one (#2874), and any other size as the original', async () => {
|
||||
const streamPhoto = vi.fn().mockResolvedValue(undefined);
|
||||
const streamProviderAsset = vi.fn().mockResolvedValue(undefined);
|
||||
const s = svc({
|
||||
const s = open({
|
||||
validateShareTokenForPhoto: vi.fn().mockReturnValue({ ownerId: 3 }),
|
||||
validateShareTokenForAsset: vi.fn().mockReturnValue({ ownerId: 3 }),
|
||||
streamPhoto,
|
||||
streamProviderAsset,
|
||||
} as Partial<JourneyService>);
|
||||
const proxy = new JourneyPublicController(s, storageStub, publicMediaStub);
|
||||
await proxy.photo('tok', 7, 'preview', {} as Response);
|
||||
await proxy.photo('tok', 7, 'huge', {} as Response);
|
||||
await proxy.legacyPhoto('tok', 'immich', 'a1', 'preview', {} as Response);
|
||||
});
|
||||
const proxy = pub(s);
|
||||
await proxy.photo('tok', 7, 'preview', { setHeader: vi.fn() } as unknown as Response, anon);
|
||||
await proxy.photo('tok', 7, 'huge', { setHeader: vi.fn() } as unknown as Response, anon);
|
||||
await proxy.legacyPhoto('tok', 'immich', 'a1', 'preview', { setHeader: vi.fn() } as unknown as Response, anon);
|
||||
expect(streamPhoto.mock.calls.map((call) => call[3])).toEqual(['preview', 'original']);
|
||||
expect(streamProviderAsset).toHaveBeenCalledWith({}, 'immich', { userId: 3, ownerId: 3, assetId: 'a1' }, 'preview');
|
||||
expect(streamProviderAsset).toHaveBeenCalledWith(
|
||||
expect.objectContaining({ setHeader: expect.any(Function) }),
|
||||
'immich',
|
||||
{ userId: 3, ownerId: 3, assetId: 'a1' },
|
||||
'preview',
|
||||
);
|
||||
});
|
||||
|
||||
it('legacy photo proxy: synology streams, and a failure becomes a 404 json', async () => {
|
||||
const streamProviderAsset = vi.fn().mockResolvedValue(undefined);
|
||||
const s = open({ validateShareTokenForAsset: vi.fn().mockReturnValue({ ownerId: 5 }), streamProviderAsset });
|
||||
await pub(s).legacyPhoto('tok', 'synologyphotos', 'a1', 'thumbnail', {} as Response, anon);
|
||||
await pub(s).legacyPhoto(
|
||||
'tok',
|
||||
'synologyphotos',
|
||||
'a1',
|
||||
'thumbnail',
|
||||
{ setHeader: vi.fn() } as unknown as Response,
|
||||
anon,
|
||||
);
|
||||
expect(streamProviderAsset).toHaveBeenCalledWith(
|
||||
{},
|
||||
expect.objectContaining({ setHeader: expect.any(Function) }),
|
||||
'synologyphotos',
|
||||
{ userId: 5, ownerId: 5, assetId: 'a1' },
|
||||
'thumbnail',
|
||||
@@ -1304,7 +1343,7 @@ describe('JourneyPublicController', () => {
|
||||
|
||||
const status = vi.fn().mockReturnThis();
|
||||
const json = vi.fn();
|
||||
const res = { status, json } as unknown as Response;
|
||||
const res = { status, json, setHeader: vi.fn() } as unknown as Response;
|
||||
const failing = open({
|
||||
validateShareTokenForAsset: vi.fn().mockReturnValue({ ownerId: 0 }),
|
||||
streamProviderAsset: vi.fn().mockRejectedValue(new Error('no synology')),
|
||||
@@ -1321,7 +1360,7 @@ describe('JourneyPublicController', () => {
|
||||
const streamProviderAsset = vi.fn().mockReturnValue(null);
|
||||
const status = vi.fn().mockReturnThis();
|
||||
const json = vi.fn();
|
||||
const res = { status, json } as unknown as Response;
|
||||
const res = { status, json, setHeader: vi.fn() } as unknown as Response;
|
||||
const s = open({ validateShareTokenForAsset: vi.fn().mockReturnValue({ ownerId: 5 }), streamProviderAsset });
|
||||
await pub(s).legacyPhoto('tok', 'photoprism', 'a1', 'original', res, anon);
|
||||
expect(status).toHaveBeenCalledWith(404);
|
||||
@@ -1334,9 +1373,9 @@ describe('JourneyPublicController', () => {
|
||||
// the journey owner when the photo row carries no owner_id.
|
||||
const streamProviderAsset = vi.fn().mockResolvedValue(undefined);
|
||||
const s = open({ validateShareTokenForAsset: vi.fn().mockReturnValue({ ownerId: 3 }), streamProviderAsset });
|
||||
await pub(s).legacyPhoto('tok', 'immich', 'a1', 'original', {} as Response, anon);
|
||||
await pub(s).legacyPhoto('tok', 'immich', 'a1', 'original', { setHeader: vi.fn() } as unknown as Response, anon);
|
||||
expect(streamProviderAsset).toHaveBeenCalledWith(
|
||||
{},
|
||||
expect.objectContaining({ setHeader: expect.any(Function) }),
|
||||
'immich',
|
||||
{ userId: 3, ownerId: 3, assetId: 'a1' },
|
||||
'original',
|
||||
@@ -1347,20 +1386,29 @@ describe('JourneyPublicController', () => {
|
||||
storageExists.mockResolvedValue(false);
|
||||
const s = open({ validateShareTokenForAsset: vi.fn().mockReturnValue({ ownerId: 5 }) });
|
||||
expect(
|
||||
await thrownAsync(() => pub(s).legacyPhoto('tok', 'local', 'gone.jpg', 'thumbnail', {} as Response, anon)),
|
||||
await thrownAsync(() =>
|
||||
pub(s).legacyPhoto(
|
||||
'tok',
|
||||
'local',
|
||||
'gone.jpg',
|
||||
'thumbnail',
|
||||
{ setHeader: vi.fn() } as unknown as Response,
|
||||
anon,
|
||||
),
|
||||
),
|
||||
).toEqual({ status: 404, body: { error: 'Not found' } });
|
||||
expect(storageSendToResponse).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('legacy photo proxy: local provider serves through storage with the day cache header', async () => {
|
||||
it('legacy photo proxy: local provider serves through storage without allowing cached access', async () => {
|
||||
storageExists.mockResolvedValue(true);
|
||||
storageSendToResponse.mockResolvedValue(undefined);
|
||||
const set = vi.fn();
|
||||
const res = { set } as unknown as Response;
|
||||
const setHeader = vi.fn();
|
||||
const res = { setHeader } as unknown as Response;
|
||||
const s = open({ validateShareTokenForAsset: vi.fn().mockReturnValue({ ownerId: 5 }) });
|
||||
await pub(s).legacyPhoto('tok', 'local', 'photo.jpg', 'original', res, anon);
|
||||
expect(storageExists).toHaveBeenCalledWith('journey', 'photo.jpg');
|
||||
expect(set).toHaveBeenCalledWith('Cache-Control', 'public, max-age=86400');
|
||||
expect(setHeader).toHaveBeenCalledWith('Cache-Control', 'private, no-store');
|
||||
// The location-free copy goes out, never the stored original.
|
||||
expect(renditionFor).toHaveBeenCalledWith('journey', 'photo.jpg');
|
||||
expect(storageSendToResponse).toHaveBeenCalledWith('journey', 'public/photo.jpg', res);
|
||||
@@ -1370,7 +1418,7 @@ describe('JourneyPublicController', () => {
|
||||
storageExists.mockResolvedValue(true);
|
||||
renditionFor.mockRejectedValueOnce(new RenditionPendingError());
|
||||
const json = vi.fn();
|
||||
const res = { set: vi.fn(), status: vi.fn(() => ({ json })) } as unknown as Response;
|
||||
const res = { set: vi.fn(), setHeader: vi.fn(), status: vi.fn(() => ({ json })) } as unknown as Response;
|
||||
const s = open({ validateShareTokenForAsset: vi.fn().mockReturnValue({ ownerId: 5 }) });
|
||||
await pub(s).legacyPhoto('tok', 'local', 'clip.mp4', 'original', res, anon);
|
||||
expect(res.status).toHaveBeenCalledWith(503);
|
||||
@@ -1381,7 +1429,7 @@ describe('JourneyPublicController', () => {
|
||||
it('legacy photo proxy: a local file that cannot be cleaned is a 404, not the original', async () => {
|
||||
storageExists.mockResolvedValue(true);
|
||||
renditionFor.mockResolvedValueOnce(null);
|
||||
const res = { set: vi.fn() } as unknown as Response;
|
||||
const res = { set: vi.fn(), setHeader: vi.fn() } as unknown as Response;
|
||||
const s = open({ validateShareTokenForAsset: vi.fn().mockReturnValue({ ownerId: 5 }) });
|
||||
expect(await thrownAsync(() => pub(s).legacyPhoto('tok', 'local', 'a.bmp', 'original', res, anon))).toEqual({
|
||||
status: 404,
|
||||
@@ -1393,7 +1441,7 @@ describe('JourneyPublicController', () => {
|
||||
it('legacy photo proxy: local provider cannot escape uploads/journey via a traversal asset id', async () => {
|
||||
storageExists.mockResolvedValue(true);
|
||||
storageSendToResponse.mockResolvedValue(undefined);
|
||||
const res = { set: vi.fn() } as unknown as Response;
|
||||
const res = { set: vi.fn(), setHeader: vi.fn() } as unknown as Response;
|
||||
const s = open({ validateShareTokenForAsset: vi.fn().mockReturnValue({ ownerId: 5 }) });
|
||||
|
||||
// Express decodes %2F in a single path param to '/', so the handler sees this.
|
||||
@@ -1411,7 +1459,8 @@ describe('JourneyPublicController', () => {
|
||||
// which the handler reads as a miss.
|
||||
storageExists.mockRejectedValue(new Error('invalid storage key: journey/..'));
|
||||
const s = open({ validateShareTokenForAsset: vi.fn().mockReturnValue({ ownerId: 5 }) });
|
||||
const read = () => pub(s).legacyPhoto('tok', 'local', '..', 'original', {} as Response, anon);
|
||||
const read = () =>
|
||||
pub(s).legacyPhoto('tok', 'local', '..', 'original', { setHeader: vi.fn() } as unknown as Response, anon);
|
||||
expect(await thrownAsync(read)).toEqual({
|
||||
status: 404,
|
||||
body: { error: 'Not found' },
|
||||
|
||||
@@ -7,8 +7,7 @@ import {
|
||||
checkSharePassword,
|
||||
hashSharePassword,
|
||||
JOURNEY_UNLOCK_COOKIE,
|
||||
keepCachesPrivate,
|
||||
privateCacheControl,
|
||||
preventSharePhotoCaching,
|
||||
proofUnlocks,
|
||||
shareLinkExpired,
|
||||
unlockCookieOptions,
|
||||
@@ -20,7 +19,7 @@ import {
|
||||
import { InMemoryJourneyShareViewStore } from '../../../../src/nest/journey/journey-share-views.store';
|
||||
|
||||
import type { Request, Response } from 'express';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { describe, expect, it, vi } from 'vitest';
|
||||
|
||||
const BASE = { cookies: {}, headers: { 'user-agent': 'Firefox' }, ip: '203.0.113.9', secure: false };
|
||||
const req = (over: Record<string, unknown> = {}) => ({ ...BASE, ...over }) as unknown as Request;
|
||||
@@ -32,6 +31,13 @@ describe('the share password', () => {
|
||||
expect(await checkSharePassword('open sesame', hash)).toBe(true);
|
||||
expect(await checkSharePassword('open sesame!', hash)).toBe(false);
|
||||
});
|
||||
|
||||
it('checks the entire password when it has more than 72 UTF-8 bytes', async () => {
|
||||
const prefix = '旅'.repeat(24);
|
||||
const hash = await hashSharePassword(`${prefix}a`);
|
||||
expect(await checkSharePassword(`${prefix}a`, hash)).toBe(true);
|
||||
expect(await checkSharePassword(`${prefix}b`, hash)).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
describe('the unlock proof', () => {
|
||||
@@ -128,13 +134,11 @@ describe('InMemoryJourneyShareViewStore', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('the photo caches of a protected link', () => {
|
||||
it('JSHAREACC-011: turns public into private and leaves every other value alone', () => {
|
||||
expect(privateCacheControl('public, max-age=86400')).toBe('private, max-age=86400');
|
||||
expect(privateCacheControl('Public, max-age=3600')).toBe('private, max-age=3600');
|
||||
expect(privateCacheControl('no-store, max-age=0')).toBe('no-store, max-age=0');
|
||||
expect(privateCacheControl(['public', 'max-age=60'])).toEqual(['private', 'max-age=60']);
|
||||
expect(privateCacheControl(60)).toBe(60);
|
||||
describe('public Journey photo caching', () => {
|
||||
it('JSHAREACC-011: sets the cache policy even when the stream sends none', () => {
|
||||
const setHeader = vi.fn();
|
||||
preventSharePhotoCaching({ setHeader } as unknown as Response);
|
||||
expect(setHeader).toHaveBeenCalledWith('Cache-Control', 'private, no-store');
|
||||
});
|
||||
|
||||
it('JSHAREACC-012: rewrites every Cache-Control the response is given afterwards, and only that header', () => {
|
||||
@@ -145,13 +149,13 @@ describe('the photo caches of a protected link', () => {
|
||||
return res;
|
||||
},
|
||||
} as unknown as Response;
|
||||
keepCachesPrivate(res);
|
||||
preventSharePhotoCaching(res);
|
||||
res.setHeader('Cache-Control', 'public, max-age=86400');
|
||||
res.setHeader('cache-control', 'public, max-age=3600');
|
||||
res.setHeader('Content-Type', 'image/public');
|
||||
expect(headers).toEqual({
|
||||
'Cache-Control': 'private, max-age=86400',
|
||||
'cache-control': 'private, max-age=3600',
|
||||
'Cache-Control': 'private, no-store',
|
||||
'cache-control': 'private, no-store',
|
||||
'Content-Type': 'image/public',
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { bookFontIndex } from './book-fonts';
|
||||
import { BOOK_ICON_NAMES } from './book-icons';
|
||||
import {
|
||||
BOOK_BADGES,
|
||||
@@ -42,13 +41,13 @@ const shape = bookShapeElementSchema.shape;
|
||||
const map = bookMapElementSchema.shape;
|
||||
|
||||
/**
|
||||
* The book's typefaces by what they are for, each with its face, the weights
|
||||
* it has and an i where it has a real italic. A weight a family lacks is set
|
||||
* at its nearest one, as in the Studio.
|
||||
* Valid typefaces. The asset catalogue supplies their roles, weights and italic support.
|
||||
*/
|
||||
export const bookFontIdSchema = z
|
||||
.enum(BOOK_FONTS_IDS)
|
||||
.describe(`Typeface by role; weights a family lacks snap to its nearest. ${bookFontIndex()}`);
|
||||
.describe(
|
||||
'Typeface ID. See list_book_assets (kind font) for roles, weights and italics. Unsupported weights snap to the nearest one.',
|
||||
);
|
||||
/** The typeface of a travel element, where the full line above would repeat ten times. */
|
||||
export const bookTypesetFontSchema = bookCatalogueIdSchema(BOOK_FONTS_IDS).describe('Typeface id, as for text.');
|
||||
/** How heavy type is set, 100 thin to 900 black. */
|
||||
|
||||
@@ -1012,5 +1012,134 @@ const journey: TranslationStrings = {
|
||||
'journey.fromPhotos.nothingCreated': 'لم يكن بالإمكان تحويل أي من هذه الصور إلى تدوينة. لم يُنشأ أي شيء.',
|
||||
'journey.fromPhotos.createFailed': 'لم تُنشأ أي تدوينات. لم يُحفظ أي شيء، حاول مرة أخرى.',
|
||||
'journey.fromPhotos.previewFailed': 'تعذّر تجميع الصور. حاول مرة أخرى.',
|
||||
'journey.comments.closed': 'التعليقات مغلقة لهذا الرابط.',
|
||||
'journey.comments.count.zero': '{count} تعليق',
|
||||
'journey.comments.count.one': '{count} تعليق',
|
||||
'journey.comments.count.two': '{count} تعليق',
|
||||
'journey.comments.count.few': '{count} تعليقات',
|
||||
'journey.comments.count.many': '{count} تعليقات',
|
||||
'journey.comments.count': 'تعليق {count}',
|
||||
'journey.comments.deletedUser': 'لم يتم حفظ التعليق. حاول مرة أخرى.',
|
||||
'journey.comments.failed': 'ضيف',
|
||||
'journey.comments.guest': 'مخفي',
|
||||
'journey.comments.hidden': 'إخفاء التعليق',
|
||||
'journey.comments.hide': 'أدخل اسمًا وتعليقًا ضمن الحد الأقصى للحروف.',
|
||||
'journey.comments.invalid': 'افتح الرابط المشترك مرة أخرى للاستمرار.',
|
||||
'journey.comments.locked': 'يمكن للأشخاص الذين يمتلكون الرابط العام قراءة التعليقات على هذا المدخل.',
|
||||
'journey.comments.publicHint':
|
||||
'يمكن لمن لديه الرابط العام قراءة التعليقات على التدوينات المنشورة عند تفعيل تعليقات الضيوف.',
|
||||
'journey.comments.send': 'عرض التعليق',
|
||||
'journey.comments.show': 'تعليقات',
|
||||
'journey.comments.title': 'اكتب تعليقًا',
|
||||
'journey.comments.write': 'الاشتراكات مغلقة لهذا الرابط.',
|
||||
'journey.follow.closed': 'الاشتراكات مغلقة لهذا الرابط.',
|
||||
'journey.follow.confirmedText': 'سوف تتلقى منشورات جديدة من {title} عبر البريد الإلكتروني.',
|
||||
'journey.follow.confirmedTitle': 'لم يتم تحديث الاشتراك. حاول مرة أخرى.',
|
||||
'journey.follow.failed': 'أدخل بريدًا إلكترونيًا صحيحًا.',
|
||||
'journey.follow.invalid': 'هذا الرابط التأكيد أو الإلغاء غير صحيح أو منتهي الصلاحية.',
|
||||
'journey.follow.invalidText': 'رابط تأكيد الاشتراك أو إلغائه غير صالح أو منتهي الصلاحية.',
|
||||
'journey.follow.invalidTitle': 'يمكنك إلغاء الاشتراك من أي بريد إشعارات.',
|
||||
'journey.follow.privacy': 'يمكنك إلغاء الاشتراك من أي بريد إلكتروني للتحديثات.',
|
||||
'journey.follow.sentText': 'إذا كان العنوان يمكن الاشتراك فيه، ستتلقى بريدًا إلكترونيًا يحتوي على رابط تأكيد.',
|
||||
'journey.follow.sentTitle': 'تحقق من صندوق البريد',
|
||||
'journey.follow.text': 'تلقي بريد إلكتروني في الأيام التي يتم فيها نشر مشاركات جديدة.',
|
||||
'journey.follow.title': 'الاشتراك',
|
||||
'journey.follow.unsubscribedText': 'لن تتلقَّى بريدًا إلكترونيًا حول هذه الرحلة بعد الآن.',
|
||||
'journey.follow.unsubscribedTitle': 'تم إلغاء الاشتراك',
|
||||
'journey.fromPhotos.create.zero': 'إنشاء {count} مسودات',
|
||||
'journey.fromPhotos.create.one': 'إنشاء {count} مسودة',
|
||||
'journey.fromPhotos.create.two': 'إنشاء {count} مسودات',
|
||||
'journey.fromPhotos.create.few': 'إنشاء {count} مسودات',
|
||||
'journey.fromPhotos.create.many': 'إنشاء {count} مسودات',
|
||||
'journey.fromPhotos.create': 'إنشاء {count} مسودات',
|
||||
'journey.fromPhotos.empty': 'لا توجد صور من المعرض مع وقت التقاط متاح للكتابة الجديدة.',
|
||||
'journey.fromPhotos.noPlace': 'لا يوجد مكان',
|
||||
'journey.fromPhotos.photoCount.zero': '{count} صور',
|
||||
'journey.fromPhotos.photoCount.one': '{count} صورة',
|
||||
'journey.fromPhotos.photoCount.two': '{count} صور',
|
||||
'journey.fromPhotos.photoCount.few': '{count} صور',
|
||||
'journey.fromPhotos.photoCount.many': '{count} صور',
|
||||
'journey.fromPhotos.photoCount': '{count} صور',
|
||||
'journey.fromPhotos.text': 'راجع المجموعات واختر أي مسودات ترغب في إنشائها.',
|
||||
'journey.fromPhotos.timeRange': 'من {start} إلى {end}',
|
||||
'journey.fromPhotos.title': 'إنشاء تدوينات من الصور',
|
||||
'journey.fromPhotos.withoutTime.zero': 'تم تجاهل {count} صور بدون وقت التقاط.',
|
||||
'journey.fromPhotos.withoutTime.one': 'تم تجاهل {count} صورة بدون وقت التقاط.',
|
||||
'journey.fromPhotos.withoutTime.two': 'تم تجاهل {count} صور بدون وقت التقاط.',
|
||||
'journey.fromPhotos.withoutTime.few': 'تم تجاهل {count} صور بدون وقت التقاط.',
|
||||
'journey.fromPhotos.withoutTime.many': 'تم تخطي {count} صور دون وقت التقاط تم تخطي.',
|
||||
'journey.fromPhotos.withoutTime': 'تم تخطي {count} صور دون وقت التقاط.',
|
||||
'journey.public.expiredText': 'اطلب من مالك الرحلة رابطًا جديدًا.',
|
||||
'journey.public.expiredTitle': 'هذا الرابط منتهي الصلاحية',
|
||||
'journey.public.lockedText': 'أدخل كلمة المرور التي قدمها مالك الرحلة لك.',
|
||||
'journey.public.lockedTitle': 'رحلة محمية بكلمة مرور',
|
||||
'journey.public.passwordFailed': 'لم يتم فك تشفير الرابط. حاول مرة أخرى.',
|
||||
'journey.public.passwordWrong': 'كلمة المرور هذه غير صحيحة.',
|
||||
'journey.public.unlock': 'فك التشفير',
|
||||
'journey.recording.gpx.failed': 'لم يتم استيراد مسار GPX.',
|
||||
'journey.recording.gpx.import': 'استيراد مسار GPX',
|
||||
'journey.recording.gpx.imported.zero': 'تم استيراد مسارات لـ {count} يوم',
|
||||
'journey.recording.gpx.imported.one': 'تم استيراد مسار لـ {count} يوم',
|
||||
'journey.recording.gpx.imported.two': 'تم استيراد مسارات لـ {count} يوم',
|
||||
'journey.recording.gpx.imported.few': 'تم استيراد مسارات لـ {count} يوم',
|
||||
'journey.recording.gpx.imported.many': 'تم استيراد مسارات لـ {count} يوم',
|
||||
'journey.recording.gpx.imported': 'تم استيراد مسارات لـ {count} يوم',
|
||||
'journey.recording.gpx.removeFailed': 'لم يتم إزالة مسار GPX.',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed.zero': 'تم تخطي {count} نقاط مسار دون توقيت',
|
||||
'journey.recording.gpx.untimed.one': 'تم تخطي {count} نقطة مسار دون توقيت',
|
||||
'journey.recording.gpx.untimed.two': 'تم تخطي {count} نقاط مسار دون توقيت',
|
||||
'journey.recording.gpx.untimed.few': 'تم تخطي {count} نقاط مسار دون توقيت',
|
||||
'journey.recording.gpx.untimed.many': 'تم تخطي {count} نقاط مسار دون توقيت',
|
||||
'journey.recording.gpx.untimed': 'تم تخطي {count} نقاط مسار دون توقيت',
|
||||
'journey.share.allowComments': 'السماح بالتعليقات من الزوار',
|
||||
'journey.share.allowCommentsHint': 'يمكن للقراء التعليق على المدخلات المنشورة.',
|
||||
'journey.share.allowFollowers': 'تفعيل الاشتراكات البريدية',
|
||||
'journey.share.allowFollowersHint': 'يمكن للمُتابعين تلقي بريد إلكتروني عند إنشاء مدخلات جديدة.',
|
||||
'journey.share.expires': 'ينتهي الصلاحية في',
|
||||
'journey.share.expiresNever': 'لا ينتهي الصلاحية',
|
||||
'journey.share.followerRemoveFailed': 'لم يتم إزالة المشترك.',
|
||||
'journey.share.followers.zero': '{count} مشترك',
|
||||
'journey.share.followers.one': '{count} مشترك',
|
||||
'journey.share.followers.two': '{count} مشتركين',
|
||||
'journey.share.followers.few': '{count} مشتركين',
|
||||
'journey.share.followers.many': '{count} مشتركين',
|
||||
'journey.share.followers': '{count} مشتركين',
|
||||
'journey.share.followersPending.zero': '{count} مؤكدات معلقة',
|
||||
'journey.share.followersPending.one': '{count} مؤكدات معلقة',
|
||||
'journey.share.followersPending.two': '{count} مؤكدات معلقة',
|
||||
'journey.share.followersPending.few': '{count} مؤكدات معلقة',
|
||||
'journey.share.followersPending.many': '{count} مؤكدات معلقة',
|
||||
'journey.share.followersPending': '{count} مؤكدات معلقة',
|
||||
'journey.share.lastViewed': 'آخر فتح في {date}',
|
||||
'journey.share.needsTimeline': 'شارك الجدول الزمني لتمكين التعليقات من الضيوف.',
|
||||
'journey.share.passwordRemoved': 'تم إزالة كلمة المرور',
|
||||
'journey.share.passwordRule': 'استخدم على الأقل {minLength} أحرف.',
|
||||
'journey.share.passwordSaved': 'تم حفظ كلمة المرور',
|
||||
'journey.share.passwordSet': 'ضع كلمة مرور',
|
||||
'journey.share.passwordText': 'يحتاج المُقراء إلى هذه كلمة المرور لفتح رابط المشاركة.',
|
||||
'journey.share.passwordTitle': 'كلمة مرور الرابط',
|
||||
'journey.share.removeFollower': 'أزل المشترك',
|
||||
'journey.share.views.zero': 'عدد مرات الفتح: {count}',
|
||||
'journey.share.views.one': 'عدد مرات الفتح: {count}',
|
||||
'journey.share.views.two': 'عدد مرات الفتح: {count}',
|
||||
'journey.share.views.few': 'عدد مرات الفتح: {count}',
|
||||
'journey.share.views.many': 'عدد مرات الفتح: {count}',
|
||||
'journey.share.views': 'عدد مرات الفتح: {count}',
|
||||
'journey.studio.mapCoastDetail': 'تفاصيل الساحل',
|
||||
'journey.studio.mapCoastDetail.auto': 'تلقائي',
|
||||
'journey.studio.mapCoastDetail.detailed': 'مفصل',
|
||||
'journey.studio.mapCoastDetail.simple': 'مبسط',
|
||||
'journey.studio.mapScopeCountry': 'دولة واحدة',
|
||||
'journey.studio.mapScopeDay': 'يوم واحد',
|
||||
'journey.studio.mapScopeStop': 'وقف واحد',
|
||||
'journey.studio.mapScopeTrip': 'رحلة واحدة',
|
||||
'journey.studio.mapView': 'التقاطع',
|
||||
'journey.studio.mapViewDown': 'التنقل لأسفل',
|
||||
'journey.studio.mapViewLeft': 'التنقل لليسار',
|
||||
'journey.studio.mapViewOwn': 'مخصص',
|
||||
'journey.studio.mapViewRight': 'التنقل لليمين',
|
||||
'journey.studio.mapViewUp': 'التنقل لأعلى',
|
||||
'journey.studio.tileDetail': 'مستوى تفاصيل الخريطة',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -846,7 +846,8 @@ const journey: TranslationStrings = {
|
||||
'journey.recording.error.recording_changed': 'Qeyd önbaxışdan sonra dəyişib.',
|
||||
'journey.recording.error.recording_empty': 'Dawarich o gün heç nə qeydə almayıb.',
|
||||
'journey.recording.gpx.error.unreadable': 'Bu fayl GPX faylı deyil.',
|
||||
'journey.recording.gpx.error.noTimes': 'Bu GPX faylının trek nöqtələrində vaxt yoxdur, ona görə də günlərini ayırmaq mümkün deyil.',
|
||||
'journey.recording.gpx.error.noTimes':
|
||||
'Bu GPX faylının trek nöqtələrində vaxt yoxdur, ona görə də günlərini ayırmaq mümkün deyil.',
|
||||
'journey.recording.gpx.error.emptyDay': 'GPX faylı o gün heç nə qeydə almayıb.',
|
||||
'journey.recording.gpx.error.tooManyDays': 'Bu GPX faylı çox günü əhatə edir. Onu daha qısa hissələrə bölün.',
|
||||
'journey.recording.gpx.error.tooLarge': 'Bu GPX faylı çox böyükdür.',
|
||||
@@ -1006,5 +1007,99 @@ const journey: TranslationStrings = {
|
||||
'journey.fromPhotos.nothingCreated': 'Bu fotolardan heç biri qeydə çevrilə bilmədi. Heç nə yaradılmadı.',
|
||||
'journey.fromPhotos.createFailed': 'Heç bir qeyd yaradılmadı. Heç nə saxlanmadı, yenidən cəhd edin.',
|
||||
'journey.fromPhotos.previewFailed': 'Fotoları qruplaşdırmaq mümkün olmadı. Yenidən cəhd edin.',
|
||||
'journey.comments.closed': 'Bu link üçün şərhlər bağlanıb.',
|
||||
'journey.comments.count.one': '{count} şərh',
|
||||
'journey.comments.count': '{count} şərh',
|
||||
'journey.comments.deletedUser': 'Silinmiş hesabı',
|
||||
'journey.comments.failed': 'Şərh saxlanıla bilmədi. Yenidən cəhd edin.',
|
||||
'journey.comments.guest': 'Müştəri',
|
||||
'journey.comments.hidden': 'Gizlənmiş',
|
||||
'journey.comments.hide': 'Şərhi gizlə',
|
||||
'journey.comments.invalid': 'Harakat limitindən təşkil edən bir ad və bir şərh daxil edin.',
|
||||
'journey.comments.locked': 'Təqdim etmə linkini yenidən açaraq davam edin.',
|
||||
'journey.comments.publicHint':
|
||||
'Qonaq şərhləri aktivdirsə, açıq keçidi olanlar dərc edilmiş qeydlərin şərhlərini oxuya bilərlər.',
|
||||
'journey.comments.send': 'Şərh göndər',
|
||||
'journey.comments.show': 'Şərhi göstər',
|
||||
'journey.comments.title': 'Şərhlər',
|
||||
'journey.comments.write': 'Şərh yaz',
|
||||
'journey.follow.closed': 'Bu link üçün abunələr bağlanıb.',
|
||||
'journey.follow.confirmedText': '{title} üçün yeni qeydlər e-poçtla göndəriləcək.',
|
||||
'journey.follow.confirmedTitle': 'Abunəliyyət təsdiqləndi',
|
||||
'journey.follow.failed': 'Abunəliyyət yenilənmədi. Yenidən cəhd edin.',
|
||||
'journey.follow.invalid': 'Düzgün bir e-poçt ünvanı daxil edin.',
|
||||
'journey.follow.invalidText': 'Bu təsdiq və ya abunəlikdən çıxma keçidi etibarsızdır, yaxud vaxtı bitib.',
|
||||
'journey.follow.invalidTitle': 'Abonelik linki müsafir edilə bilməyən',
|
||||
'journey.follow.privacy': 'Hər bir yenilənmə e-pərəqədən abonelikdən çıxmaq mümkündür.',
|
||||
'journey.follow.sentText': 'Əgər ünvan abonelik edilə bilərsə, təsdiqləmə linki olan e-pərəqə təqdim ediləcək.',
|
||||
'journey.follow.sentTitle': 'E-pərəqəni yoxlayın',
|
||||
'journey.follow.text': 'Yeni dəfələr nəşr olunduqda e-pərəqə alın.',
|
||||
'journey.follow.title': 'Abonelik edin',
|
||||
'journey.follow.unsubscribedText': 'Bu yolculuğun haqqında e-pərəcək almayacaqsınız.',
|
||||
'journey.follow.unsubscribedTitle': 'Abonelikdən çıxılmış',
|
||||
'journey.fromPhotos.create.one': '{count} qaralama yarat',
|
||||
'journey.fromPhotos.create': '{count} qaralama yarat',
|
||||
'journey.fromPhotos.empty':
|
||||
'Yeni dəfələr üçün təqdim edilən fotoşəkillər üçün yerləşmə vaxtı olan fotoşəkillər yoxdur.',
|
||||
'journey.fromPhotos.noPlace': 'Yerləşmə yoxdur',
|
||||
'journey.fromPhotos.photoCount.one': '{count} fotoşəkil',
|
||||
'journey.fromPhotos.photoCount': '{count} fotoşəkil',
|
||||
'journey.fromPhotos.text': 'Qrupları nəzərdən keçirin və hansı nüsxələri yaradacağınızı seçin.',
|
||||
'journey.fromPhotos.timeRange': '{start} - {end}',
|
||||
'journey.fromPhotos.title': 'Fotolardan gündəlik qeydləri yarat',
|
||||
'journey.fromPhotos.withoutTime.one': '{count} təqdim edilmə vaxtı olmayan fotoşəkil atlandı.',
|
||||
'journey.fromPhotos.withoutTime': '{count} təqdim edilmə vaxtı olmayan fotoşəkil atlandı.',
|
||||
'journey.public.expiredText': 'Yolun sahibinə yeni link tələb edin.',
|
||||
'journey.public.expiredTitle': 'Bu link sona çatdı',
|
||||
'journey.public.lockedText': 'Sahibiniz tərəfindən sizə paylanan parol daxil edin.',
|
||||
'journey.public.lockedTitle': 'Parolla qorunan səyahət',
|
||||
'journey.public.passwordFailed': 'Linki açmaq mümkün deyil. Yenidən cəhd edin.',
|
||||
'journey.public.passwordWrong': 'Bu parol yanlışdır.',
|
||||
'journey.public.unlock': 'Aç',
|
||||
'journey.recording.gpx.failed': 'GPX yolunu yükləmək mümkün deyil.',
|
||||
'journey.recording.gpx.import': 'GPX yolunu yüklə',
|
||||
'journey.recording.gpx.imported.one': '{count} gün üçün yol yükləndi',
|
||||
'journey.recording.gpx.imported': '{count} gün üçün yollar yükləndi',
|
||||
'journey.recording.gpx.removeFailed': 'GPX yolunu silmək mümkün deyil.',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed.one': '{count} saat vaxtı olmayan yol nöqtəsi atlandı.',
|
||||
'journey.recording.gpx.untimed': '{count} zaman damgası olmayan yol nöqtəsi atlandı.',
|
||||
'journey.share.allowComments': 'Məşğul şəxslərə şərhlər izni ver',
|
||||
'journey.share.allowCommentsHint': 'Mövcud məqalələrə oxucular şərhlər yaza bilər.',
|
||||
'journey.share.allowFollowers': 'E-poçt abunələri izni ver',
|
||||
'journey.share.allowFollowersHint': 'Oxucular yeni məqalələr çıxanda e-poçt ala bilər.',
|
||||
'journey.share.expires': 'Bitmə tarixi',
|
||||
'journey.share.expiresNever': 'Bitməmək',
|
||||
'journey.share.followerRemoveFailed': 'Abunəçi silinmədi.',
|
||||
'journey.share.followers.one': '{count} abunəçi',
|
||||
'journey.share.followers': '{count} abunəçi',
|
||||
'journey.share.followersPending.one': '{count} təsdiq edilməyən',
|
||||
'journey.share.followersPending': '{count} təsdiq edilməyən',
|
||||
'journey.share.lastViewed': 'Son {date} açıldı',
|
||||
'journey.share.needsTimeline': 'Məşğul şəxslərə şərhlər izni vermek üçün zaman xəttini paylaşın.',
|
||||
'journey.share.passwordRemoved': 'Parol silindi',
|
||||
'journey.share.passwordRule': 'Minimum {minLength} simvoldan ibarət olmalıdır.',
|
||||
'journey.share.passwordSaved': 'Parol saxlanıldı',
|
||||
'journey.share.passwordSet': 'Parol təyin et',
|
||||
'journey.share.passwordText': 'Oxucular bu parolu istifadə edərək paylaşılan linki aça bilər.',
|
||||
'journey.share.passwordTitle': 'Link parolu',
|
||||
'journey.share.removeFollower': 'Abunəçi sil',
|
||||
'journey.share.views.one': 'Baxış sayı: {count}',
|
||||
'journey.share.views': 'Baxış sayı: {count}',
|
||||
'journey.studio.mapCoastDetail': 'Dəniz sahilləri detalları',
|
||||
'journey.studio.mapCoastDetail.auto': 'Avtomatik',
|
||||
'journey.studio.mapCoastDetail.detailed': 'Dərin',
|
||||
'journey.studio.mapCoastDetail.simple': 'Yoxlamalı',
|
||||
'journey.studio.mapScopeCountry': 'Biri ölkə',
|
||||
'journey.studio.mapScopeDay': 'Biri gün',
|
||||
'journey.studio.mapScopeStop': 'Biri səfər',
|
||||
'journey.studio.mapScopeTrip': 'Biri səfər',
|
||||
'journey.studio.mapView': 'Çerçivə',
|
||||
'journey.studio.mapViewDown': 'Yuxarıya yönəltdin',
|
||||
'journey.studio.mapViewLeft': 'Solda yönəltdin',
|
||||
'journey.studio.mapViewOwn': 'Fərdi',
|
||||
'journey.studio.mapViewRight': 'Sağa yönəltdin',
|
||||
'journey.studio.mapViewUp': 'Aşağıya yönəltdin',
|
||||
'journey.studio.tileDetail': 'Xəritə təfərrüatı',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -776,7 +776,8 @@ const journey: TranslationStrings = {
|
||||
'journey.recording.error.recording_changed': 'A gravação mudou desde a prévia.',
|
||||
'journey.recording.error.recording_empty': 'O Dawarich não gravou nada naquele dia.',
|
||||
'journey.recording.gpx.error.unreadable': 'Este arquivo não é um arquivo GPX.',
|
||||
'journey.recording.gpx.error.noTimes': 'Os pontos de trilha deste arquivo GPX não têm horários, então não é possível distinguir os seus dias.',
|
||||
'journey.recording.gpx.error.noTimes':
|
||||
'Os pontos de trilha deste arquivo GPX não têm horários, então não é possível distinguir os seus dias.',
|
||||
'journey.recording.gpx.error.emptyDay': 'O arquivo GPX não gravou nada naquele dia.',
|
||||
'journey.recording.gpx.error.tooManyDays': 'Este arquivo GPX abrange dias demais. Divida-o em partes menores.',
|
||||
'journey.recording.gpx.error.tooLarge': 'Este arquivo GPX é grande demais.',
|
||||
@@ -940,5 +941,98 @@ const journey: TranslationStrings = {
|
||||
'journey.fromPhotos.nothingCreated': 'Nenhuma destas fotos pôde virar uma entrada. Nada foi criado.',
|
||||
'journey.fromPhotos.createFailed': 'Nenhuma entrada foi criada. Nada foi salvo, tente novamente.',
|
||||
'journey.fromPhotos.previewFailed': 'Não foi possível agrupar as fotos. Tente novamente.',
|
||||
'journey.comments.closed': 'Comentários estão fechados para este link.',
|
||||
'journey.comments.count.one': '{count} comentário',
|
||||
'journey.comments.count': '{count} comentários',
|
||||
'journey.comments.deletedUser': 'Conta deletada',
|
||||
'journey.comments.failed': 'Não foi possível salvar o comentário. Tente novamente.',
|
||||
'journey.comments.guest': 'Convidado',
|
||||
'journey.comments.hidden': 'Oculto',
|
||||
'journey.comments.hide': 'Ocultar comentário',
|
||||
'journey.comments.invalid': 'Insira um nome e um comentário dentro do limite de caracteres.',
|
||||
'journey.comments.locked': 'Abra o link compartilhado novamente para continuar.',
|
||||
'journey.comments.publicHint':
|
||||
'Quando os comentários de visitantes estão ativados, quem tem o link público pode ler os comentários das entradas publicadas.',
|
||||
'journey.comments.send': 'Enviar comentário',
|
||||
'journey.comments.show': 'Mostrar comentário',
|
||||
'journey.comments.title': 'Comentários',
|
||||
'journey.comments.write': 'Escrever um comentário',
|
||||
'journey.follow.closed': 'Assinaturas estão fechadas para este link.',
|
||||
'journey.follow.confirmedText': 'Você receberá novas postagens da {title} por e-mail.',
|
||||
'journey.follow.confirmedTitle': 'Assinatura confirmada',
|
||||
'journey.follow.failed': 'Não foi possível atualizar a assinatura. Tente novamente.',
|
||||
'journey.follow.invalid': 'Insira um endereço de e-mail válido.',
|
||||
'journey.follow.invalidText': 'Este link de confirmação ou cancelamento da assinatura é inválido ou expirou.',
|
||||
'journey.follow.invalidTitle': 'Link de assinatura indisponível',
|
||||
'journey.follow.privacy': 'Você pode se cancelar de qualquer e-mail de atualização.',
|
||||
'journey.follow.sentText': 'Se o endereço puder ser assinado, você receberá um e-mail com um link de confirmação.',
|
||||
'journey.follow.sentTitle': 'Verifique sua caixa de entrada',
|
||||
'journey.follow.text': 'Receba um e-mail nos dias em que novas entradas forem publicadas.',
|
||||
'journey.follow.title': 'Assinar',
|
||||
'journey.follow.unsubscribedText': 'Você não receberá mais e-mails sobre essa jornada.',
|
||||
'journey.follow.unsubscribedTitle': 'Cancelar inscrição',
|
||||
'journey.fromPhotos.create.one': 'Criar {count} rascunho',
|
||||
'journey.fromPhotos.create': 'Criar {count} rascunhos',
|
||||
'journey.fromPhotos.empty': 'Não há fotos da galeria com horário de captura disponíveis para novas entradas.',
|
||||
'journey.fromPhotos.noPlace': 'Sem localização',
|
||||
'journey.fromPhotos.photoCount.one': '{count} foto',
|
||||
'journey.fromPhotos.photoCount': '{count} fotos',
|
||||
'journey.fromPhotos.text': 'Revise os grupos e escolha quais rascunhos criar.',
|
||||
'journey.fromPhotos.timeRange': '{start} até {end}',
|
||||
'journey.fromPhotos.title': 'Criar entradas a partir de fotos',
|
||||
'journey.fromPhotos.withoutTime.one': '{count} foto sem horário de captura foi ignorada.',
|
||||
'journey.fromPhotos.withoutTime': '{count} fotos sem horário de captura foram ignoradas.',
|
||||
'journey.public.expiredText': 'Peça ao proprietário da jornada um novo link.',
|
||||
'journey.public.expiredTitle': 'Esse link expirou',
|
||||
'journey.public.lockedText': 'Digite a senha que o proprietário compartilhou com você.',
|
||||
'journey.public.lockedTitle': 'Viagem protegida por senha',
|
||||
'journey.public.passwordFailed': 'Não foi possível desbloquear o link. Tente novamente.',
|
||||
'journey.public.passwordWrong': 'Essa senha está incorreta.',
|
||||
'journey.public.unlock': 'Desbloquear',
|
||||
'journey.recording.gpx.failed': 'Não foi possível importar a rota GPX.',
|
||||
'journey.recording.gpx.import': 'Importar rota GPX',
|
||||
'journey.recording.gpx.imported.one': 'Importada uma rota para {count} dia',
|
||||
'journey.recording.gpx.imported': 'Importadas rotas para {count} dias',
|
||||
'journey.recording.gpx.removeFailed': 'Não foi possível remover a rota GPX.',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed.one': 'Ignorado {count} ponto de rota sem marcação de tempo.',
|
||||
'journey.recording.gpx.untimed': '{count} pontos de trajeto foram pulados sem marcação de tempo.',
|
||||
'journey.share.allowComments': 'Permitir comentários de visitantes',
|
||||
'journey.share.allowCommentsHint': 'Visitantes podem comentar em entradas publicadas.',
|
||||
'journey.share.allowFollowers': 'Permitir inscrições por e-mail',
|
||||
'journey.share.allowFollowersHint': 'Visitantes podem receber e-mail quando houver novas entradas.',
|
||||
'journey.share.expires': 'Expira em',
|
||||
'journey.share.expiresNever': 'Sem data de expiração',
|
||||
'journey.share.followerRemoveFailed': 'Não foi possível remover o inscrito.',
|
||||
'journey.share.followers.one': '{count} inscrito',
|
||||
'journey.share.followers': '{count} inscritos',
|
||||
'journey.share.followersPending.one': '{count} pendente de confirmação',
|
||||
'journey.share.followersPending': '{count} pendentes de confirmação',
|
||||
'journey.share.lastViewed': 'Última vez aberto {date}',
|
||||
'journey.share.needsTimeline': 'Compartilhe o cronograma para permitir comentários de visitantes.',
|
||||
'journey.share.passwordRemoved': 'Senha removida',
|
||||
'journey.share.passwordRule': 'Use pelo menos {minLength} caracteres.',
|
||||
'journey.share.passwordSaved': 'Senha salva',
|
||||
'journey.share.passwordSet': 'Definir senha',
|
||||
'journey.share.passwordText': 'Visitantes precisarão dessa senha para abrir o link compartilhado.',
|
||||
'journey.share.passwordTitle': 'Senha do link',
|
||||
'journey.share.removeFollower': 'Remover inscrito',
|
||||
'journey.share.views.one': 'Acessos: {count}',
|
||||
'journey.share.views': 'Acessos: {count}',
|
||||
'journey.studio.mapCoastDetail': 'Detalhe da costa',
|
||||
'journey.studio.mapCoastDetail.auto': 'Automático',
|
||||
'journey.studio.mapCoastDetail.detailed': 'Detalhado',
|
||||
'journey.studio.mapCoastDetail.simple': 'Simplificado',
|
||||
'journey.studio.mapScopeCountry': 'Um país',
|
||||
'journey.studio.mapScopeDay': 'Um dia',
|
||||
'journey.studio.mapScopeStop': 'Uma parada',
|
||||
'journey.studio.mapScopeTrip': 'Uma viagem',
|
||||
'journey.studio.mapView': 'Ajuste',
|
||||
'journey.studio.mapViewDown': 'Deslocar para baixo',
|
||||
'journey.studio.mapViewLeft': 'Deslocar para a esquerda',
|
||||
'journey.studio.mapViewOwn': 'Personalizado',
|
||||
'journey.studio.mapViewRight': 'Deslocar para a direita',
|
||||
'journey.studio.mapViewUp': 'Deslocar para cima',
|
||||
'journey.studio.tileDetail': 'Detalhe dos blocos do mapa',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -776,7 +776,8 @@ const journey: TranslationStrings = {
|
||||
'journey.recording.error.recording_changed': 'L’enregistrament ha canviat des de la previsualització.',
|
||||
'journey.recording.error.recording_empty': 'Dawarich no va enregistrar res aquell dia.',
|
||||
'journey.recording.gpx.error.unreadable': 'Aquest fitxer no és un fitxer GPX.',
|
||||
'journey.recording.gpx.error.noTimes': 'Els punts de traça d’aquest fitxer GPX no tenen hores, de manera que no se’n poden distingir els dies.',
|
||||
'journey.recording.gpx.error.noTimes':
|
||||
'Els punts de traça d’aquest fitxer GPX no tenen hores, de manera que no se’n poden distingir els dies.',
|
||||
'journey.recording.gpx.error.emptyDay': 'El fitxer GPX no va enregistrar res aquell dia.',
|
||||
'journey.recording.gpx.error.tooManyDays': 'Aquest fitxer GPX abasta massa dies. Divideix-lo en parts més curtes.',
|
||||
'journey.recording.gpx.error.tooLarge': 'Aquest fitxer GPX és massa gran.',
|
||||
@@ -940,5 +941,98 @@ const journey: TranslationStrings = {
|
||||
'Cap d’aquestes fotos no s’ha pogut convertir en una entrada. No s’ha creat res.',
|
||||
'journey.fromPhotos.createFailed': 'No s’ha creat cap entrada. No s’ha desat res, torna-ho a provar.',
|
||||
'journey.fromPhotos.previewFailed': 'No s’han pogut agrupar les fotos. Torna-ho a provar.',
|
||||
'journey.comments.closed': 'Comentaris tancats per aquest enllaç.',
|
||||
'journey.comments.count.one': '{count} comentari',
|
||||
'journey.comments.count': '{count} comentaris',
|
||||
'journey.comments.deletedUser': 'Compte eliminat',
|
||||
'journey.comments.failed': "No s'ha pogut desar el comentari. Tenta-ho de nou.",
|
||||
'journey.comments.guest': 'Convidat',
|
||||
'journey.comments.hidden': 'Amagat',
|
||||
'journey.comments.hide': 'Amaga comentari',
|
||||
'journey.comments.invalid': 'Introduïu un nom i un comentari dins del límit de caràcters.',
|
||||
'journey.comments.locked': 'Obriu el enllaç compartit de nou per continuar.',
|
||||
'journey.comments.publicHint':
|
||||
'Quan els comentaris de convidats estan activats, qui tingui l’enllaç públic pot llegir els comentaris de les entrades publicades.',
|
||||
'journey.comments.send': 'Envia comentari',
|
||||
'journey.comments.show': 'Mostra comentari',
|
||||
'journey.comments.title': 'Comentaris',
|
||||
'journey.comments.write': 'Escriu un comentari',
|
||||
'journey.follow.closed': 'Les subscripcions estan tancades per aquest enllaç.',
|
||||
'journey.follow.confirmedText': 'Rebràs nous missatges de {title} per correu electrònic.',
|
||||
'journey.follow.confirmedTitle': 'Subscripció confirmada',
|
||||
'journey.follow.failed': "No s'ha pogut actualitzar la subscripció. Tenta-ho de nou.",
|
||||
'journey.follow.invalid': 'Introduïu una adreça de correu electrònic vàlida.',
|
||||
'journey.follow.invalidText': 'Aquest enllaç de confirmació o de baixa no és vàlid o ha caducat.',
|
||||
'journey.follow.invalidTitle': 'Enllaç de subscripció no disponible',
|
||||
'journey.follow.privacy': "Pots cancel·lar-te de qualsevol correu d'actualització.",
|
||||
'journey.follow.sentText': "Si l'adreça pot ser subscriu, rebries un correu amb un enllaç de confirmació.",
|
||||
'journey.follow.sentTitle': 'Verifica el teu correu',
|
||||
'journey.follow.text': 'Rebreu un correu els dies que es publiquin noves entrades.',
|
||||
'journey.follow.title': "Subscriu't",
|
||||
'journey.follow.unsubscribedText': 'No rebreàs més correus sobre aquest viatge.',
|
||||
'journey.follow.unsubscribedTitle': 'Desinscritz',
|
||||
'journey.fromPhotos.create.one': 'Crea {count} esborrany',
|
||||
'journey.fromPhotos.create': 'Crea {count} esborranys',
|
||||
'journey.fromPhotos.empty': 'No hi ha fotos de galeria amb hora de captura disponibles per a entrades noves.',
|
||||
'journey.fromPhotos.noPlace': 'Cap lloc',
|
||||
'journey.fromPhotos.photoCount.one': '{count} foto',
|
||||
'journey.fromPhotos.photoCount': '{count} fotos',
|
||||
'journey.fromPhotos.text': 'Revisa els grups i tria quins boscats crear.',
|
||||
'journey.fromPhotos.timeRange': '{start} a {end}',
|
||||
'journey.fromPhotos.title': 'Crear entrades a partir de fotos',
|
||||
'journey.fromPhotos.withoutTime.one': '{count} foto sense hora de captura va ser ignorada.',
|
||||
'journey.fromPhotos.withoutTime': '{count} fotos sense hora de captura van ser ignorades.',
|
||||
'journey.public.expiredText': 'Demana al propietari del viatge un nou enllaç.',
|
||||
'journey.public.expiredTitle': 'Aquest enllaç ha caducat',
|
||||
'journey.public.lockedText': 'Introduïu la contrasenya que el propietari us va compartir.',
|
||||
'journey.public.lockedTitle': 'Viatge protegit amb contrasenya',
|
||||
'journey.public.passwordFailed': "No s'ha pogut desbloquejar l'enllaç. Prova-ho de nou.",
|
||||
'journey.public.passwordWrong': 'Aquesta contrasenya és incorrecta.',
|
||||
'journey.public.unlock': 'Desbloquejar',
|
||||
'journey.recording.gpx.failed': "No s'ha pogut importar la ruta GPX.",
|
||||
'journey.recording.gpx.import': 'Importar ruta GPX',
|
||||
'journey.recording.gpx.imported.one': 'Importada una ruta per a {count} dia',
|
||||
'journey.recording.gpx.imported': 'Importades rutes per a {count} dies',
|
||||
'journey.recording.gpx.removeFailed': "No s'ha pogut eliminar la ruta GPX.",
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed.one': 'Ignorat {count} punt de traç sense marca temporal.',
|
||||
'journey.recording.gpx.untimed': 'Saltat {count} punts de traç sense marca de temps.',
|
||||
'journey.share.allowComments': 'Permet comentaris dels visitants',
|
||||
'journey.share.allowCommentsHint': 'Els lectors poden comentar les entrades publicades.',
|
||||
'journey.share.allowFollowers': 'Permet subscripcions per correu electrònic',
|
||||
'journey.share.allowFollowersHint': 'Els lectors poden rebre un correu electrònic quan hi hagi noves entrades.',
|
||||
'journey.share.expires': 'Expira el',
|
||||
'journey.share.expiresNever': "Sense data d'expiració",
|
||||
'journey.share.followerRemoveFailed': "No s'ha pogut eliminar el subscriptor.",
|
||||
'journey.share.followers.one': '{count} subscriptor',
|
||||
'journey.share.followers': '{count} subscriptors',
|
||||
'journey.share.followersPending.one': '{count} pendents de confirmació',
|
||||
'journey.share.followersPending': '{count} pendents de confirmació',
|
||||
'journey.share.lastViewed': 'Darrer accés {date}',
|
||||
'journey.share.needsTimeline': 'Comparteix la cronologia per permetre comentaris dels visitants.',
|
||||
'journey.share.passwordRemoved': 'Contrasenya eliminada',
|
||||
'journey.share.passwordRule': 'Utilitza almenys {minLength} caràcters.',
|
||||
'journey.share.passwordSaved': 'Contrasenya guardada',
|
||||
'journey.share.passwordSet': 'Estableix contrasenya',
|
||||
'journey.share.passwordText': 'Els lectors necessitaran aquesta contrasenya per obrir el lloc compartit.',
|
||||
'journey.share.passwordTitle': 'Contrasenya del lloc',
|
||||
'journey.share.removeFollower': 'Elimina subscriptor',
|
||||
'journey.share.views.one': 'Visites: {count}',
|
||||
'journey.share.views': 'Visites: {count}',
|
||||
'journey.studio.mapCoastDetail': 'Detall de la costa',
|
||||
'journey.studio.mapCoastDetail.auto': 'Automàtic',
|
||||
'journey.studio.mapCoastDetail.detailed': 'Detallat',
|
||||
'journey.studio.mapCoastDetail.simple': 'Simplificat',
|
||||
'journey.studio.mapScopeCountry': 'Un país',
|
||||
'journey.studio.mapScopeDay': 'Un dia',
|
||||
'journey.studio.mapScopeStop': 'Un parada',
|
||||
'journey.studio.mapScopeTrip': 'Un viatge',
|
||||
'journey.studio.mapView': 'Enquadrament',
|
||||
'journey.studio.mapViewDown': 'Desplaçar cap avall',
|
||||
'journey.studio.mapViewLeft': 'Desplaçar cap a l’esquerra',
|
||||
'journey.studio.mapViewOwn': 'Personalitzat',
|
||||
'journey.studio.mapViewRight': 'Desplaçar cap a la dreta',
|
||||
'journey.studio.mapViewUp': 'Desplaçar cap amunt',
|
||||
'journey.studio.tileDetail': 'Detall de les tessel·les',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -951,5 +951,107 @@ const journey: TranslationStrings = {
|
||||
'journey.fromPhotos.nothingCreated': 'Z žádné z těchto fotek nemohl vzniknout záznam. Nic nebylo vytvořeno.',
|
||||
'journey.fromPhotos.createFailed': 'Nebyly vytvořeny žádné záznamy. Nic se neuložilo, zkuste to znovu.',
|
||||
'journey.fromPhotos.previewFailed': 'Fotky se nepodařilo seskupit. Zkuste to znovu.',
|
||||
'journey.comments.closed': 'Komentáře jsou uzavřené pro tuto vazbu.',
|
||||
'journey.comments.count.one': '{count} komentář',
|
||||
'journey.comments.count.few': '{count} komentáře',
|
||||
'journey.comments.count': '{count} komentáře',
|
||||
'journey.comments.deletedUser': 'Smazaný účet',
|
||||
'journey.comments.failed': 'Nepodařilo se uložit komentář. Zkuste to znovu.',
|
||||
'journey.comments.guest': 'Host',
|
||||
'journey.comments.hidden': 'Skrýt',
|
||||
'journey.comments.hide': 'Neplatný vstup. Zadejte jméno a komentář v rámci limitu znaků.',
|
||||
'journey.comments.invalid': 'Otevřete sdílený odkaz znovu, abyste mohli pokračovat.',
|
||||
'journey.comments.locked': 'Osoby s veřejným odkazem mohou číst komentáře k této položce.',
|
||||
'journey.comments.publicHint':
|
||||
'Pokud jsou povoleny komentáře hostů, může každý s veřejným odkazem číst komentáře u zveřejněných zápisů.',
|
||||
'journey.comments.send': 'Zobrazit komentář',
|
||||
'journey.comments.show': 'Komentáře',
|
||||
'journey.comments.title': 'Napište komentář',
|
||||
'journey.comments.write': 'Přihlášení je uzavřeno pro tuto vazbu.',
|
||||
'journey.follow.closed': 'Přihlášky jsou uzavřené pro tuto zápisníku.',
|
||||
'journey.follow.confirmedText': 'Dostanete nové příspěvky od {title} e-mailem.',
|
||||
'journey.follow.confirmedTitle': 'Nepodařilo se aktualizovat přihlášení. Zkuste to znovu.',
|
||||
'journey.follow.failed': 'Zadejte platnou e-mailovou adresu.',
|
||||
'journey.follow.invalid': 'Tento potvrzovací nebo odhlášení odkaz je neplatný nebo vypršel.',
|
||||
'journey.follow.invalidText': 'Tento odkaz k potvrzení nebo odhlášení je neplatný nebo vypršel.',
|
||||
'journey.follow.invalidTitle': 'Můžete se odhlásit z každé e-mailové zprávy o aktualizacích.',
|
||||
'journey.follow.privacy': 'Pokud je adresa přihlašovatelná, dostanete e-mail s potvrzovacím odkazem.',
|
||||
'journey.follow.sentText': 'Pokud se adresa dá přihlásit, dostanete e-mail s potvrzovacím odkazem.',
|
||||
'journey.follow.sentTitle': 'Dostanete e-mail s novými položkami v den jejich publikování.',
|
||||
'journey.follow.text': 'Získejte e-mail v dnech, kdy jsou nové příspěvky publikovány.',
|
||||
'journey.follow.title': 'Přihlásit se',
|
||||
'journey.follow.unsubscribedText': 'Už nebudete dostávat e-maily ohledně tohoto cestovního záznamu.',
|
||||
'journey.follow.unsubscribedTitle': 'Odhlášeno',
|
||||
'journey.fromPhotos.create.one': 'Vytvořit {count} návrh',
|
||||
'journey.fromPhotos.create.few': 'Vytvořit {count} návrhy',
|
||||
'journey.fromPhotos.create': 'Vytvořit {count} návrhy',
|
||||
'journey.fromPhotos.empty': 'V galerii nejsou k dispozici fotky s časem zaznamenání pro nové položky.',
|
||||
'journey.fromPhotos.noPlace': 'Žádné místo',
|
||||
'journey.fromPhotos.photoCount.one': '{count} foto',
|
||||
'journey.fromPhotos.photoCount.few': '{count} fotky',
|
||||
'journey.fromPhotos.photoCount': '{count} fotky',
|
||||
'journey.fromPhotos.text': 'Prozkoumejte skupiny a vyberte, které návrhy vytvořit.',
|
||||
'journey.fromPhotos.timeRange': '{start} do {end}',
|
||||
'journey.fromPhotos.title': 'Vytvořit zápisy z fotografií',
|
||||
'journey.fromPhotos.withoutTime.one': '{count} foto bez času zaznamenání bylo přeskočeno.',
|
||||
'journey.fromPhotos.withoutTime.few': '{count} fotek bez času zaznamenání bylo přeskočeno.',
|
||||
'journey.fromPhotos.withoutTime': '{count} fotek bez času zaznamenání bylo přeskočeno.',
|
||||
'journey.public.expiredText': 'Zeptejte se vlastníka cesty za nový odkaz.',
|
||||
'journey.public.expiredTitle': 'Tento odkaz vypršel',
|
||||
'journey.public.lockedText': 'Zadejte heslo, které vlastník sdílel s vámi.',
|
||||
'journey.public.lockedTitle': 'Cesta chráněná heslem',
|
||||
'journey.public.passwordFailed': 'Nelze odkaz otevřít. Zkuste to znovu.',
|
||||
'journey.public.passwordWrong': 'Toto heslo je špatné.',
|
||||
'journey.public.unlock': 'Otevřít',
|
||||
'journey.recording.gpx.failed': 'Nelze importovat trasu GPX.',
|
||||
'journey.recording.gpx.import': 'Importovat trasu GPX',
|
||||
'journey.recording.gpx.imported.one': 'Importována trasa pro {count} den',
|
||||
'journey.recording.gpx.imported.few': 'Importovány trasy pro {count} dny',
|
||||
'journey.recording.gpx.imported': 'Importovány trasy pro {count} dny',
|
||||
'journey.recording.gpx.removeFailed': 'Nelze odstranit trasu GPX.',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed.one': 'Přeskočeno {count} bodu trasy bez časového razítka.',
|
||||
'journey.recording.gpx.untimed.few': 'Přeskočeno {count} bodů trasy bez časového razítka.',
|
||||
'journey.recording.gpx.untimed': 'Přeskočeno {count} bodů trasy bez časového razítka.',
|
||||
'journey.share.allowComments': 'Uveďte komentáře od hostů',
|
||||
'journey.share.allowCommentsHint': 'Čtenáři mohou komentovat publikované položky.',
|
||||
'journey.share.allowFollowers': 'Uveďte e-mailové odběry',
|
||||
'journey.share.allowFollowersHint': 'Čtenáři mohou dostat e-mail, když se objeví nové položky.',
|
||||
'journey.share.expires': 'Vyprší dne',
|
||||
'journey.share.expiresNever': 'Žádný termín',
|
||||
'journey.share.followerRemoveFailed': 'Nelze odstranit odběratele.',
|
||||
'journey.share.followers.one': '{count} odběratele',
|
||||
'journey.share.followers.few': '{count} odběratele',
|
||||
'journey.share.followers': '{count} odběratele',
|
||||
'journey.share.followersPending.one': '{count} očekávané potvrzení',
|
||||
'journey.share.followersPending.few': '{count} očekávané potvrzení',
|
||||
'journey.share.followersPending': '{count} očekávané potvrzení',
|
||||
'journey.share.lastViewed': 'Posledně otevřeno {date}',
|
||||
'journey.share.needsTimeline': 'Sdílejte časový rámec, abyste umožnili komentáře od hostů.',
|
||||
'journey.share.passwordRemoved': 'Heslo odstraněno',
|
||||
'journey.share.passwordRule': 'Použijte alespoň {minLength} znaků.',
|
||||
'journey.share.passwordSaved': 'Heslo uloženo',
|
||||
'journey.share.passwordSet': 'Nastavte heslo',
|
||||
'journey.share.passwordText': 'Čtenáři budou potřebovat toto heslo, aby otevřeli sdílený odkaz.',
|
||||
'journey.share.passwordTitle': 'Heslo pro odkaz',
|
||||
'journey.share.removeFollower': 'Odstranit přítele',
|
||||
'journey.share.views.one': 'Počet otevření: {count}',
|
||||
'journey.share.views.few': 'Počet otevření: {count}',
|
||||
'journey.share.views': 'Počet otevření: {count}',
|
||||
'journey.studio.mapCoastDetail': 'Podrobnosti výběhu',
|
||||
'journey.studio.mapCoastDetail.auto': 'Automatické',
|
||||
'journey.studio.mapCoastDetail.detailed': 'Podrobné',
|
||||
'journey.studio.mapCoastDetail.simple': 'Zjednodušené',
|
||||
'journey.studio.mapScopeCountry': 'Jedna země',
|
||||
'journey.studio.mapScopeDay': 'Jedno dílo',
|
||||
'journey.studio.mapScopeStop': 'Jedna zastávka',
|
||||
'journey.studio.mapScopeTrip': 'Jedna cesta',
|
||||
'journey.studio.mapView': 'Záběr',
|
||||
'journey.studio.mapViewDown': 'Posunout dolů',
|
||||
'journey.studio.mapViewLeft': 'Posunout doleva',
|
||||
'journey.studio.mapViewOwn': 'Vlastní',
|
||||
'journey.studio.mapViewRight': 'Posunout doprava',
|
||||
'journey.studio.mapViewUp': 'Posunout nahoru',
|
||||
'journey.studio.tileDetail': 'Detail mapových dlaždic',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -781,7 +781,8 @@ const journey: TranslationStrings = {
|
||||
'journey.recording.error.recording_changed': 'Die Aufzeichnung hat sich seit der Vorschau geändert.',
|
||||
'journey.recording.error.recording_empty': 'Dawarich hat an diesem Tag nichts aufgezeichnet.',
|
||||
'journey.recording.gpx.error.unreadable': 'Diese Datei ist keine GPX-Datei.',
|
||||
'journey.recording.gpx.error.noTimes': 'Die Trackpunkte dieser GPX-Datei haben keine Zeiten, daher lassen sich ihre Tage nicht unterscheiden.',
|
||||
'journey.recording.gpx.error.noTimes':
|
||||
'Die Trackpunkte dieser GPX-Datei haben keine Zeiten, daher lassen sich ihre Tage nicht unterscheiden.',
|
||||
'journey.recording.gpx.error.emptyDay': 'Die GPX-Datei hat an diesem Tag nichts aufgezeichnet.',
|
||||
'journey.recording.gpx.error.tooManyDays': 'Diese GPX-Datei umfasst zu viele Tage. Teile sie in kürzere Abschnitte.',
|
||||
'journey.recording.gpx.error.tooLarge': 'Diese GPX-Datei ist zu groß.',
|
||||
@@ -949,5 +950,99 @@ const journey: TranslationStrings = {
|
||||
'journey.fromPhotos.createFailed':
|
||||
'Es wurden keine Einträge erstellt. Nichts wurde gespeichert, versuch es noch einmal.',
|
||||
'journey.fromPhotos.previewFailed': 'Die Fotos konnten nicht gruppiert werden. Versuch es noch einmal.',
|
||||
'journey.comments.closed': 'Für diesen Link sind Kommentare deaktiviert.',
|
||||
'journey.comments.count': '{count} Kommentare',
|
||||
'journey.comments.count.one': '{count} Kommentar',
|
||||
'journey.comments.deletedUser': 'Gelöschtes Konto',
|
||||
'journey.comments.failed': 'Der Kommentar konnte nicht gespeichert werden. Versuche es erneut.',
|
||||
'journey.comments.guest': 'Gast',
|
||||
'journey.comments.hidden': 'Ausgeblendet',
|
||||
'journey.comments.hide': 'Kommentar ausblenden',
|
||||
'journey.comments.invalid': 'Gib einen Namen und einen Kommentar innerhalb der Zeichenbegrenzung ein.',
|
||||
'journey.comments.locked': 'Öffne den Freigabelink erneut, um fortzufahren.',
|
||||
'journey.comments.publicHint':
|
||||
'Wenn Gastkommentare aktiviert sind, können Personen mit dem öffentlichen Link Kommentare zu veröffentlichten Einträgen lesen.',
|
||||
'journey.comments.send': 'Kommentar senden',
|
||||
'journey.comments.show': 'Kommentar einblenden',
|
||||
'journey.comments.title': 'Kommentare',
|
||||
'journey.comments.write': 'Kommentar schreiben',
|
||||
'journey.follow.closed': 'Für diesen Link sind keine Abos möglich.',
|
||||
'journey.follow.confirmedText': 'Neue Einträge aus „{title}“ erhältst du per E-Mail.',
|
||||
'journey.follow.confirmedTitle': 'Abo bestätigt',
|
||||
'journey.follow.failed': 'Das Abo konnte nicht geändert werden. Versuche es erneut.',
|
||||
'journey.follow.invalid': 'Gib eine gültige E-Mail-Adresse ein.',
|
||||
'journey.follow.invalidText': 'Dieser Bestätigungs- oder Abmeldelink ist ungültig oder abgelaufen.',
|
||||
'journey.follow.invalidTitle': 'Abo-Link nicht verfügbar',
|
||||
'journey.follow.privacy': 'Du kannst das Abo über jede Update-Mail beenden.',
|
||||
'journey.follow.sentText':
|
||||
'Wenn ein Abo für diese Adresse möglich ist, erhältst du eine E-Mail mit einem Bestätigungslink.',
|
||||
'journey.follow.sentTitle': 'Schau in dein Postfach',
|
||||
'journey.follow.text': 'Erhalte eine E-Mail an Tagen, an denen neue Einträge erscheinen.',
|
||||
'journey.follow.title': 'Abonnieren',
|
||||
'journey.follow.unsubscribedText': 'Du erhältst keine weiteren E-Mails zu diesem Reisetagebuch.',
|
||||
'journey.follow.unsubscribedTitle': 'Abo beendet',
|
||||
'journey.fromPhotos.create': '{count} Entwürfe erstellen',
|
||||
'journey.fromPhotos.create.one': '{count} Entwurf erstellen',
|
||||
'journey.fromPhotos.empty': 'Es sind keine Galeriefotos mit Aufnahmezeit für neue Einträge verfügbar.',
|
||||
'journey.fromPhotos.noPlace': 'Ohne Ort',
|
||||
'journey.fromPhotos.photoCount': '{count} Fotos',
|
||||
'journey.fromPhotos.photoCount.one': '{count} Foto',
|
||||
'journey.fromPhotos.text': 'Prüfe die Gruppen und wähle, welche Entwürfe du erstellen möchtest.',
|
||||
'journey.fromPhotos.timeRange': '{start} bis {end}',
|
||||
'journey.fromPhotos.title': 'Einträge aus Fotos erstellen',
|
||||
'journey.fromPhotos.withoutTime': '{count} Fotos ohne Aufnahmezeit wurden ausgelassen.',
|
||||
'journey.fromPhotos.withoutTime.one': '{count} Foto ohne Aufnahmezeit wurde ausgelassen.',
|
||||
'journey.public.expiredText': 'Bitte die Person, der das Reisetagebuch gehört, um einen neuen Link.',
|
||||
'journey.public.expiredTitle': 'Dieser Link ist abgelaufen',
|
||||
'journey.public.lockedText': 'Gib das Passwort ein, das du für diesen Link erhalten hast.',
|
||||
'journey.public.lockedTitle': 'Passwortgeschütztes Reisetagebuch',
|
||||
'journey.public.passwordFailed': 'Der Link konnte nicht entsperrt werden. Versuche es erneut.',
|
||||
'journey.public.passwordWrong': 'Das Passwort ist falsch.',
|
||||
'journey.public.unlock': 'Entsperren',
|
||||
'journey.recording.gpx.failed': 'Die GPX-Route konnte nicht importiert werden.',
|
||||
'journey.recording.gpx.import': 'GPX-Route importieren',
|
||||
'journey.recording.gpx.imported': 'Routen für {count} Tage importiert',
|
||||
'journey.recording.gpx.imported.one': 'Route für {count} Tag importiert',
|
||||
'journey.recording.gpx.removeFailed': 'Die GPX-Route konnte nicht entfernt werden.',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed': '{count} Streckenpunkte ohne Zeitstempel wurden ausgelassen.',
|
||||
'journey.recording.gpx.untimed.one': '{count} Streckenpunkt ohne Zeitstempel wurde ausgelassen.',
|
||||
'journey.share.allowComments': 'Gastkommentare erlauben',
|
||||
'journey.share.allowCommentsHint': 'Leser können veröffentlichte Einträge kommentieren.',
|
||||
'journey.share.allowFollowers': 'E-Mail-Abos erlauben',
|
||||
'journey.share.allowFollowersHint': 'Leser können bei neuen Einträgen eine E-Mail erhalten.',
|
||||
'journey.share.expires': 'Läuft ab am',
|
||||
'journey.share.expiresNever': 'Unbegrenzt',
|
||||
'journey.share.followerRemoveFailed': 'Das Abo konnte nicht entfernt werden.',
|
||||
'journey.share.followers': '{count} Abonnenten',
|
||||
'journey.share.followers.one': '{count} Abonnent',
|
||||
'journey.share.followersPending': '{count} ausstehende Bestätigungen',
|
||||
'journey.share.followersPending.one': '{count} ausstehende Bestätigung',
|
||||
'journey.share.lastViewed': 'Zuletzt geöffnet am {date}',
|
||||
'journey.share.needsTimeline': 'Gib die Zeitleiste frei, um Gastkommentare zu erlauben.',
|
||||
'journey.share.passwordRemoved': 'Passwort entfernt',
|
||||
'journey.share.passwordRule': 'Verwende mindestens {minLength} Zeichen.',
|
||||
'journey.share.passwordSaved': 'Passwort gespeichert',
|
||||
'journey.share.passwordSet': 'Passwort setzen',
|
||||
'journey.share.passwordText': 'Leser benötigen dieses Passwort, um den Freigabelink zu öffnen.',
|
||||
'journey.share.passwordTitle': 'Passwort für den Link',
|
||||
'journey.share.removeFollower': 'Abo entfernen',
|
||||
'journey.share.views': '{count} Aufrufe',
|
||||
'journey.share.views.one': '{count} Aufruf',
|
||||
'journey.studio.mapCoastDetail': 'Küstendetails',
|
||||
'journey.studio.mapCoastDetail.auto': 'Automatisch',
|
||||
'journey.studio.mapCoastDetail.detailed': 'Detailliert',
|
||||
'journey.studio.mapCoastDetail.simple': 'Vereinfacht',
|
||||
'journey.studio.mapScopeCountry': 'Ein Land',
|
||||
'journey.studio.mapScopeDay': 'Ein Tag',
|
||||
'journey.studio.mapScopeStop': 'Ein Stopp',
|
||||
'journey.studio.mapScopeTrip': 'Eine Reise',
|
||||
'journey.studio.mapView': 'Ausschnitt',
|
||||
'journey.studio.mapViewDown': 'Nach unten verschieben',
|
||||
'journey.studio.mapViewLeft': 'Nach links verschieben',
|
||||
'journey.studio.mapViewOwn': 'Manuell',
|
||||
'journey.studio.mapViewRight': 'Nach rechts verschieben',
|
||||
'journey.studio.mapViewUp': 'Nach oben verschieben',
|
||||
'journey.studio.tileDetail': 'Kacheldetails',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -770,7 +770,8 @@ const journey: TranslationStrings = {
|
||||
'journey.recording.error.recording_changed': 'The recording changed since the preview.',
|
||||
'journey.recording.error.recording_empty': 'Dawarich recorded nothing on that day.',
|
||||
'journey.recording.gpx.error.unreadable': 'This file is not a GPX file.',
|
||||
'journey.recording.gpx.error.noTimes': 'This GPX file has no times on its track points, so its days cannot be told apart.',
|
||||
'journey.recording.gpx.error.noTimes':
|
||||
'This GPX file has no times on its track points, so its days cannot be told apart.',
|
||||
'journey.recording.gpx.error.emptyDay': 'The GPX file recorded nothing on that day.',
|
||||
'journey.recording.gpx.error.tooManyDays': 'This GPX file covers too many days. Split it into shorter parts.',
|
||||
'journey.recording.gpx.error.tooLarge': 'This GPX file is too large.',
|
||||
@@ -927,5 +928,98 @@ const journey: TranslationStrings = {
|
||||
'journey.fromPhotos.nothingCreated': 'None of these photos could become an entry. Nothing was created.',
|
||||
'journey.fromPhotos.createFailed': 'No entries were created. Nothing was written, try again.',
|
||||
'journey.fromPhotos.previewFailed': 'The photos could not be grouped. Try again.',
|
||||
'journey.comments.closed': 'Comments are closed for this link.',
|
||||
'journey.comments.count': '{count} comments',
|
||||
'journey.comments.count.one': '{count} comment',
|
||||
'journey.comments.deletedUser': 'Deleted account',
|
||||
'journey.comments.failed': 'Could not save the comment. Try again.',
|
||||
'journey.comments.guest': 'Guest',
|
||||
'journey.comments.hidden': 'Hidden',
|
||||
'journey.comments.hide': 'Hide comment',
|
||||
'journey.comments.invalid': 'Enter a name and a comment within the character limit.',
|
||||
'journey.comments.locked': 'Open the shared link again to continue.',
|
||||
'journey.comments.publicHint':
|
||||
'People with the public link can read comments on published entries when guest comments are enabled.',
|
||||
'journey.comments.send': 'Send comment',
|
||||
'journey.comments.show': 'Show comment',
|
||||
'journey.comments.title': 'Comments',
|
||||
'journey.comments.write': 'Write a comment',
|
||||
'journey.follow.closed': 'Subscriptions are closed for this link.',
|
||||
'journey.follow.confirmedText': 'You’ll receive new posts from {title} by email.',
|
||||
'journey.follow.confirmedTitle': 'Subscription confirmed',
|
||||
'journey.follow.failed': 'Could not update the subscription. Try again.',
|
||||
'journey.follow.invalid': 'Enter a valid email address.',
|
||||
'journey.follow.invalidText': 'This confirmation or unsubscribe link is invalid or has expired.',
|
||||
'journey.follow.invalidTitle': 'Subscription link unavailable',
|
||||
'journey.follow.privacy': 'You can unsubscribe from any update email.',
|
||||
'journey.follow.sentText': 'If the address can be subscribed, you’ll get an email with a confirmation link.',
|
||||
'journey.follow.sentTitle': 'Check your inbox',
|
||||
'journey.follow.text': 'Get an email on days when new entries are published.',
|
||||
'journey.follow.title': 'Subscribe',
|
||||
'journey.follow.unsubscribedText': 'You’ll no longer get emails about this journey.',
|
||||
'journey.follow.unsubscribedTitle': 'Unsubscribed',
|
||||
'journey.fromPhotos.create': 'Create {count} drafts',
|
||||
'journey.fromPhotos.create.one': 'Create {count} draft',
|
||||
'journey.fromPhotos.empty': 'There are no gallery photos with a capture time available for new entries.',
|
||||
'journey.fromPhotos.noPlace': 'No location',
|
||||
'journey.fromPhotos.photoCount': '{count} photos',
|
||||
'journey.fromPhotos.photoCount.one': '{count} photo',
|
||||
'journey.fromPhotos.text': 'Review the groups and choose which drafts to create.',
|
||||
'journey.fromPhotos.timeRange': '{start} to {end}',
|
||||
'journey.fromPhotos.title': 'Create entries from photos',
|
||||
'journey.fromPhotos.withoutTime': '{count} photos without a capture time were skipped.',
|
||||
'journey.fromPhotos.withoutTime.one': '{count} photo without a capture time was skipped.',
|
||||
'journey.public.expiredText': 'Ask the owner of the journey for a new link.',
|
||||
'journey.public.expiredTitle': 'This link has expired',
|
||||
'journey.public.lockedText': 'Enter the password the owner shared with you.',
|
||||
'journey.public.lockedTitle': 'Password-protected journey',
|
||||
'journey.public.passwordFailed': 'Could not unlock the link. Try again.',
|
||||
'journey.public.passwordWrong': 'That password is incorrect.',
|
||||
'journey.public.unlock': 'Unlock',
|
||||
'journey.recording.gpx.failed': 'Could not import the GPX route.',
|
||||
'journey.recording.gpx.import': 'Import GPX route',
|
||||
'journey.recording.gpx.imported': 'Imported routes for {count} days',
|
||||
'journey.recording.gpx.imported.one': 'Imported a route for {count} day',
|
||||
'journey.recording.gpx.removeFailed': 'Could not remove the GPX route.',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed': 'Skipped {count} track points without a timestamp.',
|
||||
'journey.recording.gpx.untimed.one': 'Skipped {count} track point without a timestamp.',
|
||||
'journey.share.allowComments': 'Allow guest comments',
|
||||
'journey.share.allowCommentsHint': 'Readers can comment on published entries.',
|
||||
'journey.share.allowFollowers': 'Allow email subscriptions',
|
||||
'journey.share.allowFollowersHint': 'Readers can receive an email when there are new entries.',
|
||||
'journey.share.expires': 'Expires on',
|
||||
'journey.share.expiresNever': 'No expiry',
|
||||
'journey.share.followerRemoveFailed': 'Could not remove the subscriber.',
|
||||
'journey.share.followers': '{count} subscribers',
|
||||
'journey.share.followers.one': '{count} subscriber',
|
||||
'journey.share.followersPending': '{count} pending confirmations',
|
||||
'journey.share.followersPending.one': '{count} pending confirmation',
|
||||
'journey.share.lastViewed': 'Last opened {date}',
|
||||
'journey.share.needsTimeline': 'Share the timeline to allow guest comments.',
|
||||
'journey.share.passwordRemoved': 'Password removed',
|
||||
'journey.share.passwordRule': 'Use at least {minLength} characters.',
|
||||
'journey.share.passwordSaved': 'Password saved',
|
||||
'journey.share.passwordSet': 'Set password',
|
||||
'journey.share.passwordText': 'Readers will need this password to open the shared link.',
|
||||
'journey.share.passwordTitle': 'Link password',
|
||||
'journey.share.removeFollower': 'Remove subscriber',
|
||||
'journey.share.views': '{count} opens',
|
||||
'journey.share.views.one': '{count} open',
|
||||
'journey.studio.mapCoastDetail': 'Coastline detail',
|
||||
'journey.studio.mapCoastDetail.auto': 'Automatic',
|
||||
'journey.studio.mapCoastDetail.detailed': 'Detailed',
|
||||
'journey.studio.mapCoastDetail.simple': 'Simplified',
|
||||
'journey.studio.mapScopeCountry': 'One country',
|
||||
'journey.studio.mapScopeDay': 'One day',
|
||||
'journey.studio.mapScopeStop': 'One stop',
|
||||
'journey.studio.mapScopeTrip': 'One trip',
|
||||
'journey.studio.mapView': 'Framing',
|
||||
'journey.studio.mapViewDown': 'Pan down',
|
||||
'journey.studio.mapViewLeft': 'Pan left',
|
||||
'journey.studio.mapViewOwn': 'Custom',
|
||||
'journey.studio.mapViewRight': 'Pan right',
|
||||
'journey.studio.mapViewUp': 'Pan up',
|
||||
'journey.studio.tileDetail': 'Tile detail',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -775,7 +775,8 @@ const journey: TranslationStrings = {
|
||||
'journey.recording.error.recording_changed': 'La grabación cambió desde la vista previa.',
|
||||
'journey.recording.error.recording_empty': 'Dawarich no grabó nada ese día.',
|
||||
'journey.recording.gpx.error.unreadable': 'Este archivo no es un archivo GPX.',
|
||||
'journey.recording.gpx.error.noTimes': 'Los puntos de track de este archivo GPX no tienen horas, así que no se pueden distinguir sus días.',
|
||||
'journey.recording.gpx.error.noTimes':
|
||||
'Los puntos de track de este archivo GPX no tienen horas, así que no se pueden distinguir sus días.',
|
||||
'journey.recording.gpx.error.emptyDay': 'El archivo GPX no grabó nada ese día.',
|
||||
'journey.recording.gpx.error.tooManyDays': 'Este archivo GPX abarca demasiados días. Divídelo en partes más cortas.',
|
||||
'journey.recording.gpx.error.tooLarge': 'Este archivo GPX es demasiado grande.',
|
||||
@@ -939,5 +940,100 @@ const journey: TranslationStrings = {
|
||||
'journey.fromPhotos.nothingCreated': 'Ninguna de estas fotos pudo convertirse en una entrada. No se creó nada.',
|
||||
'journey.fromPhotos.createFailed': 'No se crearon entradas. No se guardó nada, inténtalo de nuevo.',
|
||||
'journey.fromPhotos.previewFailed': 'No se pudieron agrupar las fotos. Inténtalo de nuevo.',
|
||||
'journey.comments.closed': 'Los comentarios están cerrados para este enlace.',
|
||||
'journey.comments.count.one': '{count} comentario',
|
||||
'journey.comments.count': '{count} comentarios',
|
||||
'journey.comments.deletedUser': 'Cuenta eliminada',
|
||||
'journey.comments.failed': 'No se pudo guardar el comentario. Inténtalo de nuevo.',
|
||||
'journey.comments.guest': 'Invitado',
|
||||
'journey.comments.hidden': 'Oculto',
|
||||
'journey.comments.hide': 'Ocultar comentario',
|
||||
'journey.comments.invalid': 'Ingresa un nombre y un comentario dentro del límite de caracteres.',
|
||||
'journey.comments.locked': 'Abre el enlace compartido nuevamente para continuar.',
|
||||
'journey.comments.publicHint':
|
||||
'Si los comentarios de invitados están habilitados, las personas con el enlace público pueden leer los comentarios de las entradas publicadas.',
|
||||
'journey.comments.send': 'Enviar comentario',
|
||||
'journey.comments.show': 'Mostrar comentario',
|
||||
'journey.comments.title': 'Comentarios',
|
||||
'journey.comments.write': 'Escribe un comentario',
|
||||
'journey.follow.closed': 'Las suscripciones están cerradas para este enlace.',
|
||||
'journey.follow.confirmedText': 'Recibirás nuevos posts de {title} por correo electrónico.',
|
||||
'journey.follow.confirmedTitle': 'Suscripción confirmada',
|
||||
'journey.follow.failed': 'No se pudo actualizar la suscripción. Inténtalo de nuevo.',
|
||||
'journey.follow.invalid': 'Ingresa una dirección de correo electrónico válida.',
|
||||
'journey.follow.invalidText':
|
||||
'Este enlace de confirmación o cancelación de la suscripción no es válido o ha caducado.',
|
||||
'journey.follow.invalidTitle': 'Enlace de suscripción no disponible',
|
||||
'journey.follow.privacy': 'Puedes darte de baja de cualquier correo de actualización.',
|
||||
'journey.follow.sentText':
|
||||
'Si la dirección puede suscribirse, recibirás un correo electrónico con un enlace de confirmación.',
|
||||
'journey.follow.sentTitle': 'Revisa tu bandeja de entrada',
|
||||
'journey.follow.text': 'Recibe un correo electrónico los días en que se publiquen nuevas entradas.',
|
||||
'journey.follow.title': 'Suscribirse',
|
||||
'journey.follow.unsubscribedText': 'Ya no recibirás correos electrónicos sobre este viaje.',
|
||||
'journey.follow.unsubscribedTitle': 'Suscrito',
|
||||
'journey.fromPhotos.create.one': 'Crear {count} borrador',
|
||||
'journey.fromPhotos.create': 'Crear {count} borradores',
|
||||
'journey.fromPhotos.empty': 'No hay fotos de galería con hora de captura disponibles para nuevas entradas.',
|
||||
'journey.fromPhotos.noPlace': 'Sin ubicación',
|
||||
'journey.fromPhotos.photoCount.one': '{count} foto',
|
||||
'journey.fromPhotos.photoCount': '{count} fotos',
|
||||
'journey.fromPhotos.text': 'Revisa los grupos y elige qué borradores crear.',
|
||||
'journey.fromPhotos.timeRange': '{start} a {end}',
|
||||
'journey.fromPhotos.title': 'Crear entradas a partir de fotos',
|
||||
'journey.fromPhotos.withoutTime.one': '{count} foto sin hora de captura fue omitida.',
|
||||
'journey.fromPhotos.withoutTime': '{count} fotos sin hora de captura fueron omitidas.',
|
||||
'journey.public.expiredText': 'Pide al propietario del viaje un nuevo enlace.',
|
||||
'journey.public.expiredTitle': 'Este enlace ha expirado',
|
||||
'journey.public.lockedText': 'Ingresa la contraseña que el propietario compartió contigo.',
|
||||
'journey.public.lockedTitle': 'Viaje protegido con contraseña',
|
||||
'journey.public.passwordFailed': 'No se pudo desbloquear el enlace. Intenta de nuevo.',
|
||||
'journey.public.passwordWrong': 'Esa contraseña es incorrecta.',
|
||||
'journey.public.unlock': 'Desbloquear',
|
||||
'journey.recording.gpx.failed': 'No se pudo importar la ruta GPX.',
|
||||
'journey.recording.gpx.import': 'Importar ruta GPX',
|
||||
'journey.recording.gpx.imported.one': 'Se importó una ruta para {count} día',
|
||||
'journey.recording.gpx.imported': 'Se importaron rutas para {count} días',
|
||||
'journey.recording.gpx.removeFailed': 'No se pudo eliminar la ruta GPX.',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed.one': 'Se omitió {count} punto de ruta sin marca de tiempo.',
|
||||
'journey.recording.gpx.untimed': 'Se omitieron {count} puntos de ruta sin marca de tiempo.',
|
||||
'journey.share.allowComments': 'Permitir comentarios de invitados',
|
||||
'journey.share.allowCommentsHint': 'Los lectores pueden comentar en las entradas publicadas.',
|
||||
'journey.share.allowFollowers': 'Permitir suscripciones por correo electrónico',
|
||||
'journey.share.allowFollowersHint': 'Los lectores pueden recibir un correo electrónico cuando haya nuevas entradas.',
|
||||
'journey.share.expires': 'Expira el',
|
||||
'journey.share.expiresNever': 'Sin fecha de vencimiento',
|
||||
'journey.share.followerRemoveFailed': 'No se pudo eliminar al subscriptor.',
|
||||
'journey.share.followers.one': '{count} subscriptor',
|
||||
'journey.share.followers': '{count} subscriptores',
|
||||
'journey.share.followersPending.one': '{count} pendiente de confirmación',
|
||||
'journey.share.followersPending': '{count} pendientes de confirmación',
|
||||
'journey.share.lastViewed': 'Última vez que se abrió {date}',
|
||||
'journey.share.needsTimeline': 'Comparte el cronograma para permitir comentarios de invitados.',
|
||||
'journey.share.passwordRemoved': 'Contraseña eliminada',
|
||||
'journey.share.passwordRule': 'Usa al menos {minLength} caracteres.',
|
||||
'journey.share.passwordSaved': 'Contraseña guardada',
|
||||
'journey.share.passwordSet': 'Establecer contraseña',
|
||||
'journey.share.passwordText': 'Los lectores necesitarán esta contraseña para abrir el enlace compartido.',
|
||||
'journey.share.passwordTitle': 'Contraseña del enlace',
|
||||
'journey.share.removeFollower': 'Eliminar subscriptor',
|
||||
'journey.share.views.one': 'Visitas: {count}',
|
||||
'journey.share.views': 'Visitas: {count}',
|
||||
'journey.studio.mapCoastDetail': 'Detalle de la costa',
|
||||
'journey.studio.mapCoastDetail.auto': 'Automático',
|
||||
'journey.studio.mapCoastDetail.detailed': 'Detallado',
|
||||
'journey.studio.mapCoastDetail.simple': 'Simplificado',
|
||||
'journey.studio.mapScopeCountry': 'Un país',
|
||||
'journey.studio.mapScopeDay': 'Un día',
|
||||
'journey.studio.mapScopeStop': 'Una parada',
|
||||
'journey.studio.mapScopeTrip': 'Un viaje',
|
||||
'journey.studio.mapView': 'Ajuste',
|
||||
'journey.studio.mapViewDown': 'Desplazar hacia abajo',
|
||||
'journey.studio.mapViewLeft': 'Desplazar hacia la izquierda',
|
||||
'journey.studio.mapViewOwn': 'Personalizado',
|
||||
'journey.studio.mapViewRight': 'Desplazar hacia la derecha',
|
||||
'journey.studio.mapViewUp': 'Desplazar hacia arriba',
|
||||
'journey.studio.tileDetail': 'Detalle de las teselas',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -931,5 +931,99 @@ const journey: TranslationStrings = {
|
||||
'journey.fromPhotos.nothingCreated': 'Ükski neist fotodest ei saanud sissekandeks. Midagi ei loodud.',
|
||||
'journey.fromPhotos.createFailed': 'Sissekandeid ei loodud. Midagi ei salvestatud, proovi uuesti.',
|
||||
'journey.fromPhotos.previewFailed': 'Fotosid ei õnnestunud rühmitada. Proovi uuesti.',
|
||||
'journey.comments.closed': 'See lingil on kommenteerimine sulgitud.',
|
||||
'journey.comments.count.one': '{count} komment',
|
||||
'journey.comments.count': '{count} kommenti',
|
||||
'journey.comments.deletedUser': 'Kustutatud konto',
|
||||
'journey.comments.failed': 'Kommenti salvestamisel tekkis viga. Proovi uuesti.',
|
||||
'journey.comments.guest': 'Külaline',
|
||||
'journey.comments.hidden': 'Põhjendatud',
|
||||
'journey.comments.hide': 'Peida komment',
|
||||
'journey.comments.invalid': 'Sisesta nimi ja kommentaar tähtsimäärani.',
|
||||
'journey.comments.locked': 'Avalehekülg on sulgitud. Ava ühislingi uuesti jätkamiseks.',
|
||||
'journey.comments.publicHint':
|
||||
'Kui külaliste kommentaarid on lubatud, saavad avaliku lingi saanud inimesed lugeda avaldatud kirjete kommentaare.',
|
||||
'journey.comments.send': 'Saada komment',
|
||||
'journey.comments.show': 'Näita komment',
|
||||
'journey.comments.title': 'Kommentid',
|
||||
'journey.comments.write': 'Kirjuta komment',
|
||||
'journey.follow.closed': 'Tellimused on selle lingi eesmärgiks kinni.',
|
||||
'journey.follow.confirmedText': 'Saad uudishimulikud postitused {title} e-maili kaudu.',
|
||||
'journey.follow.confirmedTitle': 'Sisemärgistus on kinnitatud',
|
||||
'journey.follow.failed': 'Sisemärgistuse vormimisel tekkis viga. Proovi uuesti.',
|
||||
'journey.follow.invalid': 'Sisesta kehtiv e-maili aadress.',
|
||||
'journey.follow.invalidText': 'See kinnitamis- või tellimuse lõpetamise link ei kehti või on aegunud.',
|
||||
'journey.follow.invalidTitle': 'Sisemärgistuslink on kättesaavutamatu',
|
||||
'journey.follow.privacy': 'Saad saada e-maili kinnituse kogukondliku sisemärgistuse eest.',
|
||||
'journey.follow.sentText': 'Kui aadressi saab tellida, saad e-maili, kus on kinnituse lingi.',
|
||||
'journey.follow.sentTitle': 'Kontrolli oma postitist',
|
||||
'journey.follow.text': 'Saada e-maili päeviti, kui uus sisu avaldatakse.',
|
||||
'journey.follow.title': 'Sisemärgistus',
|
||||
'journey.follow.unsubscribedText': 'Sina ei saa enam e-maili selle reisist.',
|
||||
'journey.follow.unsubscribedTitle': 'Tellimine on lõpetatud',
|
||||
'journey.fromPhotos.create.one': 'Loo {count} mustand',
|
||||
'journey.fromPhotos.create': 'Loo {count} mustandit',
|
||||
'journey.fromPhotos.empty':
|
||||
'Ei ole fotode kogukonda, mis sisaldavad kattumisaega, mis on saadaval uute sisendite jaoks.',
|
||||
'journey.fromPhotos.noPlace': 'Ei asukohta',
|
||||
'journey.fromPhotos.photoCount.one': '{count} pilt',
|
||||
'journey.fromPhotos.photoCount': '{count} pilti',
|
||||
'journey.fromPhotos.text': 'Vaata gruppide ja vali, millised käsitsid looda.',
|
||||
'journey.fromPhotos.timeRange': '{start} kuni {end}',
|
||||
'journey.fromPhotos.title': 'Loo fotodest päevikukirjeid',
|
||||
'journey.fromPhotos.withoutTime.one': '{count} pilt ilma kattumisaega tõsteti üle.',
|
||||
'journey.fromPhotos.withoutTime': '{count} pilti ilma kattumisaega tõsteti üle.',
|
||||
'journey.public.expiredText': 'Pöörake teekonna omaja juhtidele uue lingi.',
|
||||
'journey.public.expiredTitle': 'See ling on aegunud',
|
||||
'journey.public.lockedText': 'Sisesta parool, mida omakaitseja teil on.',
|
||||
'journey.public.lockedTitle': 'Parooliga kaitstud reisipäevik',
|
||||
'journey.public.passwordFailed': 'Lingi avamiseks ei õnnestunud. Proovi uuesti.',
|
||||
'journey.public.passwordWrong': 'See parool on vale.',
|
||||
'journey.public.unlock': 'Avale',
|
||||
'journey.recording.gpx.failed': 'GPX tee impordimine ebaõnnestus.',
|
||||
'journey.recording.gpx.import': 'Impordi GPX tee',
|
||||
'journey.recording.gpx.imported.one': 'Impordis {count} päeva tee',
|
||||
'journey.recording.gpx.imported': 'Impordis {count} päeva teed',
|
||||
'journey.recording.gpx.removeFailed': 'GPX teed ei õnnestunud eemaldada.',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed.one': 'Tõsteti üle {count} ajatempu ilma',
|
||||
'journey.recording.gpx.untimed': '{count} pistet ei ole ajatseisuga.',
|
||||
'journey.share.allowComments': 'Luba külastajate kommentaarid',
|
||||
'journey.share.allowCommentsHint': 'Külastajad saavad kommentida avalikke sisu.',
|
||||
'journey.share.allowFollowers': 'Luba e-maili tellimused',
|
||||
'journey.share.allowFollowersHint': 'Külastajad saavad saada e-maili, kui on uusi sisu.',
|
||||
'journey.share.expires': 'Jagamine aegub',
|
||||
'journey.share.expiresNever': 'Ei aegu',
|
||||
'journey.share.followerRemoveFailed': 'Ei saa eemaldada tellimust.',
|
||||
'journey.share.followers.one': '{count} tellija',
|
||||
'journey.share.followers': '{count} tellijat',
|
||||
'journey.share.followersPending.one': '{count} kinnitamata',
|
||||
'journey.share.followersPending': '{count} kinnitamata',
|
||||
'journey.share.lastViewed': 'Viimane avamise aeg {date}',
|
||||
'journey.share.needsTimeline': 'Jagamine ajatabeliga lubab külastajate kommentaare.',
|
||||
'journey.share.passwordRemoved': 'Parool eemaldatud',
|
||||
'journey.share.passwordRule': 'Kasuta vähemalt {minLength} tähemärki.',
|
||||
'journey.share.passwordSaved': 'Parool salvestatud',
|
||||
'journey.share.passwordSet': 'Seeta parool',
|
||||
'journey.share.passwordText': 'Lugemiseks jagatud lingist on vajalik see parool.',
|
||||
'journey.share.passwordTitle': 'Lingi parool',
|
||||
'journey.share.removeFollower': 'Eemalda tellija',
|
||||
'journey.share.views.one': 'Avamisi: {count}',
|
||||
'journey.share.views': 'Avamisi: {count}',
|
||||
'journey.studio.mapCoastDetail': 'Läbimõõt detail',
|
||||
'journey.studio.mapCoastDetail.auto': 'Automaatne',
|
||||
'journey.studio.mapCoastDetail.detailed': 'Täpne',
|
||||
'journey.studio.mapCoastDetail.simple': 'Lihtne',
|
||||
'journey.studio.mapScopeCountry': 'Üks riik',
|
||||
'journey.studio.mapScopeDay': 'Üks päev',
|
||||
'journey.studio.mapScopeStop': 'Üks peatus',
|
||||
'journey.studio.mapScopeTrip': 'Üks reis',
|
||||
'journey.studio.mapView': 'Kokkuvõte',
|
||||
'journey.studio.mapViewDown': 'Liigu alla',
|
||||
'journey.studio.mapViewLeft': 'Liigu vasakule',
|
||||
'journey.studio.mapViewOwn': 'Kohandatud',
|
||||
'journey.studio.mapViewRight': 'Liigu paremale',
|
||||
'journey.studio.mapViewUp': 'Liigu üles',
|
||||
'journey.studio.tileDetail': 'Kaardipaanide detailsus',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -774,9 +774,11 @@ const journey: TranslationStrings = {
|
||||
'journey.recording.error.recording_changed': 'L’enregistrement a changé depuis l’aperçu.',
|
||||
'journey.recording.error.recording_empty': 'Dawarich n’a rien enregistré ce jour-là.',
|
||||
'journey.recording.gpx.error.unreadable': 'Ce fichier n’est pas un fichier GPX.',
|
||||
'journey.recording.gpx.error.noTimes': 'Les points de trace de ce fichier GPX n’ont pas d’heure, ses jours ne peuvent donc pas être distingués.',
|
||||
'journey.recording.gpx.error.noTimes':
|
||||
'Les points de trace de ce fichier GPX n’ont pas d’heure, ses jours ne peuvent donc pas être distingués.',
|
||||
'journey.recording.gpx.error.emptyDay': 'Le fichier GPX n’a rien enregistré ce jour-là.',
|
||||
'journey.recording.gpx.error.tooManyDays': 'Ce fichier GPX couvre trop de jours. Découpez-le en parties plus courtes.',
|
||||
'journey.recording.gpx.error.tooManyDays':
|
||||
'Ce fichier GPX couvre trop de jours. Découpez-le en parties plus courtes.',
|
||||
'journey.recording.gpx.error.tooLarge': 'Ce fichier GPX est trop volumineux.',
|
||||
'journey.recording.mode.walking': 'À pied',
|
||||
'journey.recording.mode.running': 'Course',
|
||||
@@ -940,5 +942,99 @@ const journey: TranslationStrings = {
|
||||
'journey.fromPhotos.nothingCreated': 'Aucune de ces photos n’a pu devenir une entrée. Rien n’a été créé.',
|
||||
'journey.fromPhotos.createFailed': 'Aucune entrée n’a été créée. Rien n’a été enregistré, réessayez.',
|
||||
'journey.fromPhotos.previewFailed': 'Les photos n’ont pas pu être regroupées. Réessayez.',
|
||||
'journey.comments.closed': 'Commentaires fermés pour ce lien.',
|
||||
'journey.comments.count.one': '{count} commentaire',
|
||||
'journey.comments.count': '{count} commentaires',
|
||||
'journey.comments.deletedUser': 'Compte supprimé',
|
||||
'journey.comments.failed': "Impossible d'enregistrer le commentaire. Réessayez.",
|
||||
'journey.comments.guest': 'Invité',
|
||||
'journey.comments.hidden': 'Masqué',
|
||||
'journey.comments.hide': 'Masquer le commentaire',
|
||||
'journey.comments.invalid': 'Entrez un nom et un commentaire dans la limite de caractères.',
|
||||
'journey.comments.locked': 'Ouvrez à nouveau le lien partagé pour continuer.',
|
||||
'journey.comments.publicHint':
|
||||
'Lorsque les commentaires des invités sont activés, les personnes qui ont le lien public peuvent lire les commentaires des entrées publiées.',
|
||||
'journey.comments.send': 'Envoyer un commentaire',
|
||||
'journey.comments.show': 'Afficher le commentaire',
|
||||
'journey.comments.title': 'Commentaires',
|
||||
'journey.comments.write': 'Écrire un commentaire',
|
||||
'journey.follow.closed': 'Les abonnements sont fermés pour ce lien.',
|
||||
'journey.follow.confirmedText': 'Vous recevrez des nouvelles publications de {title} par e-mail.',
|
||||
'journey.follow.confirmedTitle': 'Abonnement confirmé',
|
||||
'journey.follow.failed': "Impossible de mettre à jour l'abonnement. Réessayez.",
|
||||
'journey.follow.invalid': 'Entrez une adresse e-mail valide.',
|
||||
'journey.follow.invalidText': 'Ce lien de confirmation ou de désabonnement est invalide ou a expiré.',
|
||||
'journey.follow.invalidTitle': "Lien d'abonnement indisponible",
|
||||
'journey.follow.privacy': "Vous pouvez vous désabonner de tout e-mail d'actualisation.",
|
||||
'journey.follow.sentText': "Si l'adresse peut être abonnée, vous recevrez un e-mail avec un lien de confirmation.",
|
||||
'journey.follow.sentTitle': 'Vérifiez votre boîte de réception',
|
||||
'journey.follow.text': 'Recevez un e-mail les jours où de nouvelles entrées sont publiées.',
|
||||
'journey.follow.title': "S'abonner",
|
||||
'journey.follow.unsubscribedText': "Vous ne recevrez plus d'e-mails concernant ce voyage.",
|
||||
'journey.follow.unsubscribedTitle': 'Désabonné',
|
||||
'journey.fromPhotos.create.one': 'Créer {count} brouillon',
|
||||
'journey.fromPhotos.create': 'Créer {count} brouillons',
|
||||
'journey.fromPhotos.empty':
|
||||
"Il n'y a pas de photos de galerie avec une heure de capture disponible pour de nouveaux entrées.",
|
||||
'journey.fromPhotos.noPlace': 'Aucun lieu',
|
||||
'journey.fromPhotos.photoCount.one': '{count} image',
|
||||
'journey.fromPhotos.photoCount': '{count} images',
|
||||
'journey.fromPhotos.text': 'Vérifiez les groupes et choisissez quels brouillons créer.',
|
||||
'journey.fromPhotos.timeRange': '{start} à {end}',
|
||||
'journey.fromPhotos.title': 'Créer des entrées à partir de photos',
|
||||
'journey.fromPhotos.withoutTime.one': '{count} photo sans heure de capture a été ignorée.',
|
||||
'journey.fromPhotos.withoutTime': '{count} photos sans heure de capture ont été ignorées.',
|
||||
'journey.public.expiredText': "Demandez à l'administrateur du voyage un nouveau lien.",
|
||||
'journey.public.expiredTitle': 'Ce lien a expiré',
|
||||
'journey.public.lockedText': "Entrez le mot de passe que l'administrateur vous a partagé.",
|
||||
'journey.public.lockedTitle': 'Voyage protégé par mot de passe',
|
||||
'journey.public.passwordFailed': 'Impossible de déverrouiller le lien. Réessayez.',
|
||||
'journey.public.passwordWrong': 'Ce mot de passe est incorrect.',
|
||||
'journey.public.unlock': 'Déverrouiller',
|
||||
'journey.recording.gpx.failed': "Impossible d'importer le parcours GPX.",
|
||||
'journey.recording.gpx.import': 'Importer le parcours GPX',
|
||||
'journey.recording.gpx.imported.one': 'Importé un parcours pour {count} jour',
|
||||
'journey.recording.gpx.imported': 'Importé des parcours pour {count} jours',
|
||||
'journey.recording.gpx.removeFailed': 'Impossible de supprimer le parcours GPX.',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed.one': 'Ignoré {count} point de trajectoire sans horodatage.',
|
||||
'journey.recording.gpx.untimed': '{count} points de trajectoire ignorés sans horodatage.',
|
||||
'journey.share.allowComments': 'Autoriser les commentaires des invités',
|
||||
'journey.share.allowCommentsHint': 'Les lecteurs peuvent commenter les entrées publiées.',
|
||||
'journey.share.allowFollowers': 'Autoriser les abonnements par e-mail',
|
||||
'journey.share.allowFollowersHint': 'Les lecteurs peuvent recevoir un e-mail lorsqu’il y a de nouvelles entrées.',
|
||||
'journey.share.expires': 'Expiré le',
|
||||
'journey.share.expiresNever': 'Aucune date d’expiration',
|
||||
'journey.share.followerRemoveFailed': 'Impossible de supprimer l’abonné.',
|
||||
'journey.share.followers.one': '{count} abonné',
|
||||
'journey.share.followers': '{count} abonnés',
|
||||
'journey.share.followersPending.one': '{count} en attente de confirmation',
|
||||
'journey.share.followersPending': '{count} en attente de confirmations',
|
||||
'journey.share.lastViewed': 'Dernière ouverture {date}',
|
||||
'journey.share.needsTimeline': 'Partagez le chronologie pour permettre les commentaires des invités.',
|
||||
'journey.share.passwordRemoved': 'Mot de passe supprimé',
|
||||
'journey.share.passwordRule': 'Utilisez au moins {minLength} caractères.',
|
||||
'journey.share.passwordSaved': 'Mot de passe enregistré',
|
||||
'journey.share.passwordSet': 'Définir un mot de passe',
|
||||
'journey.share.passwordText': 'Les lecteurs auront besoin de ce mot de passe pour ouvrir le lien partagé.',
|
||||
'journey.share.passwordTitle': 'Mot de passe du lien',
|
||||
'journey.share.removeFollower': 'Supprimer l’abonné',
|
||||
'journey.share.views.one': 'Vues : {count}',
|
||||
'journey.share.views': 'Vues : {count}',
|
||||
'journey.studio.mapCoastDetail': 'Détail de la côte',
|
||||
'journey.studio.mapCoastDetail.auto': 'Automatique',
|
||||
'journey.studio.mapCoastDetail.detailed': 'Détailé',
|
||||
'journey.studio.mapCoastDetail.simple': 'Simplifié',
|
||||
'journey.studio.mapScopeCountry': 'Un pays',
|
||||
'journey.studio.mapScopeDay': 'Une journée',
|
||||
'journey.studio.mapScopeStop': 'Un arrêt',
|
||||
'journey.studio.mapScopeTrip': 'Un voyage',
|
||||
'journey.studio.mapView': 'Cadre',
|
||||
'journey.studio.mapViewDown': 'Déplacer vers le bas',
|
||||
'journey.studio.mapViewLeft': 'Déplacer vers la gauche',
|
||||
'journey.studio.mapViewOwn': 'Personnalisé',
|
||||
'journey.studio.mapViewRight': 'Déplacer vers la droite',
|
||||
'journey.studio.mapViewUp': 'Déplacer vers le haut',
|
||||
'journey.studio.tileDetail': 'Détail des tuiles',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -786,9 +786,11 @@ const journey: TranslationStrings = {
|
||||
'journey.recording.error.recording_changed': 'Η καταγραφή άλλαξε από την προεπισκόπηση.',
|
||||
'journey.recording.error.recording_empty': 'Το Dawarich δεν κατέγραψε τίποτα εκείνη τη μέρα.',
|
||||
'journey.recording.gpx.error.unreadable': 'Αυτό το αρχείο δεν είναι αρχείο GPX.',
|
||||
'journey.recording.gpx.error.noTimes': 'Τα σημεία διαδρομής αυτού του αρχείου GPX δεν έχουν ώρες, οπότε οι μέρες του δεν ξεχωρίζουν.',
|
||||
'journey.recording.gpx.error.noTimes':
|
||||
'Τα σημεία διαδρομής αυτού του αρχείου GPX δεν έχουν ώρες, οπότε οι μέρες του δεν ξεχωρίζουν.',
|
||||
'journey.recording.gpx.error.emptyDay': 'Το αρχείο GPX δεν κατέγραψε τίποτα εκείνη τη μέρα.',
|
||||
'journey.recording.gpx.error.tooManyDays': 'Αυτό το αρχείο GPX καλύπτει πάρα πολλές μέρες. Χωρίστε το σε μικρότερα κομμάτια.',
|
||||
'journey.recording.gpx.error.tooManyDays':
|
||||
'Αυτό το αρχείο GPX καλύπτει πάρα πολλές μέρες. Χωρίστε το σε μικρότερα κομμάτια.',
|
||||
'journey.recording.gpx.error.tooLarge': 'Αυτό το αρχείο GPX είναι πολύ μεγάλο.',
|
||||
'journey.recording.mode.walking': 'Με τα πόδια',
|
||||
'journey.recording.mode.running': 'Τρέξιμο',
|
||||
@@ -953,5 +955,99 @@ const journey: TranslationStrings = {
|
||||
'Καμία από αυτές τις φωτογραφίες δεν μπόρεσε να γίνει καταχώριση. Δεν δημιουργήθηκε τίποτα.',
|
||||
'journey.fromPhotos.createFailed': 'Δεν δημιουργήθηκαν καταχωρίσεις. Δεν αποθηκεύτηκε τίποτα, δοκιμάστε ξανά.',
|
||||
'journey.fromPhotos.previewFailed': 'Δεν ήταν δυνατή η ομαδοποίηση των φωτογραφιών. Δοκιμάστε ξανά.',
|
||||
'journey.comments.closed': 'Σχόλια είναι κλειστά για αυτό το σύνδεσμο.',
|
||||
'journey.comments.count.one': '{count} σχόλιο',
|
||||
'journey.comments.count': '{count} σχόλια',
|
||||
'journey.comments.deletedUser': 'Διαγραμμένο λογαριασμό',
|
||||
'journey.comments.failed': 'Δεν μπορεί να αποθηκευτεί το σχόλιο. Προσπάθεια ξανά.',
|
||||
'journey.comments.guest': 'Καλεσμένος',
|
||||
'journey.comments.hidden': 'Κρυμμένο',
|
||||
'journey.comments.hide': 'Κρύψε σχόλιο',
|
||||
'journey.comments.invalid': 'Εισάγετε ένα όνομα και ένα σχόλιο μέσα στο όριο χαρακτήρων.',
|
||||
'journey.comments.locked': 'Ανοίξτε ξανά το κοινό σύνδεσμο για να συνεχίσετε.',
|
||||
'journey.comments.publicHint':
|
||||
'Όταν επιτρέπονται τα σχόλια επισκεπτών, όσοι έχουν τον δημόσιο σύνδεσμο μπορούν να διαβάζουν τα σχόλια στις δημοσιευμένες καταχωρίσεις.',
|
||||
'journey.comments.send': 'Στείλε σχόλιο',
|
||||
'journey.comments.show': 'Εμφάνιση σχόλιου',
|
||||
'journey.comments.title': 'Σχόλια',
|
||||
'journey.comments.write': 'Γράψε ένα σχόλιο',
|
||||
'journey.follow.closed': 'Οι διακοπές είναι κλειστές για αυτό το σύνδεσμο.',
|
||||
'journey.follow.confirmedText': 'Θα λαμβάνετε νέα αναρτήσεις από {title} μέσω email.',
|
||||
'journey.follow.confirmedTitle': 'Επιβεβαίωση ακολούθησης',
|
||||
'journey.follow.failed': 'Δεν μπορεί να ενημερωθεί η ακολούθηση. Προσπάθεια ξανά.',
|
||||
'journey.follow.invalid': 'Εισάγετε ένα έγκυρο email address.',
|
||||
'journey.follow.invalidText': 'Ο σύνδεσμος επιβεβαίωσης ή κατάργησης εγγραφής δεν είναι έγκυρος ή έχει λήξει.',
|
||||
'journey.follow.invalidTitle': 'Αποσύνδεσμος ακολούθησης',
|
||||
'journey.follow.privacy': 'Μπορείτε να αποσυνδεθείτε από οποιοδήποτε email ενημέρωσης.',
|
||||
'journey.follow.sentText': 'Αν η διεύθυνση μπορεί να επισυναπτεται, θα λάβετε ένα email με έναν σύνδεσμο επικύρωσης.',
|
||||
'journey.follow.sentTitle': 'Ελέγξτε το κουτί εισόδου σας',
|
||||
'journey.follow.text': 'Πάρτε ένα email στις ημέρες που κυκλοφορούν νέες εισαγωγές.',
|
||||
'journey.follow.title': 'Ακολούθηση',
|
||||
'journey.follow.unsubscribedText': 'Θα παραλαβείς πλέον ειδοποιήσεις για αυτήν την ταξιδιωτική ιστορία.',
|
||||
'journey.follow.unsubscribedTitle': 'Αναστολή επισύνδεσης',
|
||||
'journey.fromPhotos.create.one': 'Δημιουργία {count} προσχεδίου',
|
||||
'journey.fromPhotos.create': 'Δημιουργία {count} προσχεδίων',
|
||||
'journey.fromPhotos.empty': 'Δεν υπάρχουν φωτογραφίες από γκαλλερί με ώρα καταγραφής προς χρήση σε νέες εισαγωγές.',
|
||||
'journey.fromPhotos.noPlace': 'Καμία θέση',
|
||||
'journey.fromPhotos.photoCount.one': '{count} φωτογραφία',
|
||||
'journey.fromPhotos.photoCount': '{count} φωτογραφίες',
|
||||
'journey.fromPhotos.text': 'Επεξεργαστείτε τις ομάδες και επιλέξτε ποιες αναρτήσεις να δημιουργήσετε.',
|
||||
'journey.fromPhotos.timeRange': '{start} έως {end}',
|
||||
'journey.fromPhotos.title': 'Δημιουργία καταχωρίσεων από φωτογραφίες',
|
||||
'journey.fromPhotos.withoutTime.one': '{count} φωτογραφία χωρίς ώρα καταγραφής παραβλέπεται.',
|
||||
'journey.fromPhotos.withoutTime': '{count} φωτογραφίες χωρίς ώρα καταγραφής παραβλέπονται.',
|
||||
'journey.public.expiredText': 'Περιμένετε από τον ιδιοκτήτη της ταξιδιωτικής διαδρομής για νέο σύνδεσμο.',
|
||||
'journey.public.expiredTitle': 'Αυτός ο σύνδεσμος έχει λήξει',
|
||||
'journey.public.lockedText': 'Εισάγετε τον κωδικό που ο ιδιοκτήτης σας έδωσε.',
|
||||
'journey.public.lockedTitle': 'Ταξίδι με προστασία κωδικού',
|
||||
'journey.public.passwordFailed': 'Δεν μπόρεσα να ανοίξω τον σύνδεσμο. Προσπαθήστε ξανά.',
|
||||
'journey.public.passwordWrong': 'Ο κωδικός πρόσβασης είναι λανθασμένος.',
|
||||
'journey.public.unlock': 'Ανοίξτε',
|
||||
'journey.recording.gpx.failed': 'Δεν μπόρεσα να εισαγάγω την διαδρομή GPX.',
|
||||
'journey.recording.gpx.import': 'Εισαγωγή διαδρομής GPX',
|
||||
'journey.recording.gpx.imported.one': 'Εισαγάγησα μια διαδρομή για {count} ημέρα',
|
||||
'journey.recording.gpx.imported': 'Εισαγάγησα διαδρομές για {count} ημέρες',
|
||||
'journey.recording.gpx.removeFailed': 'Δεν μπόρεσα να αφαιρέσω τη διαδρομή GPX.',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed.one': 'Αποσυρθεί {count} σημείο διαδρομής χωρίς χρονική σημείωση.',
|
||||
'journey.recording.gpx.untimed': 'Άρνηση {count} σημείων διαδρομής χωρίς ώρα στιγμής.',
|
||||
'journey.share.allowComments': 'Επιτρέπεται σχολιασμός από επισκέπτες',
|
||||
'journey.share.allowCommentsHint': 'Οι αναγνώστες μπορούν να σχολιάσουν τις δημοσιευμένες εισαγωγές.',
|
||||
'journey.share.allowFollowers': 'Επιτρέπεται η ηλεκτρονική αποστολή ειδοποιήσεων',
|
||||
'journey.share.allowFollowersHint':
|
||||
'Οι αναγνώστες μπορούν να λαμβάνουν ηλεκτρονικό μήνυμα όταν υπάρχουν νέες εισαγωγές.',
|
||||
'journey.share.expires': 'Λήγει στις',
|
||||
'journey.share.expiresNever': 'Δεν υπάρχει λήξη',
|
||||
'journey.share.followerRemoveFailed': 'Δεν μπόρεσα να αφαιρέσω τον αναγνώστη.',
|
||||
'journey.share.followers.one': '{count} αναγνώστης',
|
||||
'journey.share.followers': '{count} αναγνώστες',
|
||||
'journey.share.followersPending.one': '{count} περιμένει επικύρωση',
|
||||
'journey.share.followersPending': '{count} περιμένει επικύρωση',
|
||||
'journey.share.lastViewed': 'Τελευταία ανοίγματα {date}',
|
||||
'journey.share.needsTimeline': 'Αναρτήστε το χρονολόγιο για να επιτραπεί ο σχολιασμός από επισκέπτες.',
|
||||
'journey.share.passwordRemoved': 'Κωδικός αφαιρέθηκε',
|
||||
'journey.share.passwordRule': 'Χρησιμοποιήστε τουλάχιστον {minLength} χαρακτήρες.',
|
||||
'journey.share.passwordSaved': 'Κωδικός αποθηκεύτηκε',
|
||||
'journey.share.passwordSet': 'Ανάθεση κωδικού',
|
||||
'journey.share.passwordText': 'Οι αναγνώστες θα χρειαστούν αυτόν τον κωδικό για να ανοίξουν το κοινό σύνδεσμο.',
|
||||
'journey.share.passwordTitle': 'Κωδικός σύνδεσμου',
|
||||
'journey.share.removeFollower': 'Αφαίρεση αναγνώστη',
|
||||
'journey.share.views.one': 'Προβολές: {count}',
|
||||
'journey.share.views': 'Προβολές: {count}',
|
||||
'journey.studio.mapCoastDetail': 'Περισσότερα στοιχεία για την ακτή',
|
||||
'journey.studio.mapCoastDetail.auto': 'Αυτόματο',
|
||||
'journey.studio.mapCoastDetail.detailed': 'Λεπτομερής',
|
||||
'journey.studio.mapCoastDetail.simple': 'Απλοποιημένο',
|
||||
'journey.studio.mapScopeCountry': 'Ένας χώρα',
|
||||
'journey.studio.mapScopeDay': 'Ένας ημέρα',
|
||||
'journey.studio.mapScopeStop': 'Ένας σταμάτημα',
|
||||
'journey.studio.mapScopeTrip': 'Ένας ταξίδι',
|
||||
'journey.studio.mapView': 'Πλαισιωματική επιλογή',
|
||||
'journey.studio.mapViewDown': 'Μετακίνηση προς τα κάτω',
|
||||
'journey.studio.mapViewLeft': 'Μετακίνηση προς τα αριστερά',
|
||||
'journey.studio.mapViewOwn': 'Προσαρμοσμένο',
|
||||
'journey.studio.mapViewRight': 'Μετακίνηση προς τα δεξιά',
|
||||
'journey.studio.mapViewUp': 'Μετακίνηση προς τα πάνω',
|
||||
'journey.studio.tileDetail': 'Λεπτομέρεια πλακιδίων',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -938,6 +938,108 @@ const journey: TranslationStrings = {
|
||||
'journey.fromPhotos.nothingCreated': 'אף אחת מהתמונות האלה לא יכלה להפוך לרשומה. לא נוצר דבר.',
|
||||
'journey.fromPhotos.createFailed': 'לא נוצרו רשומות. דבר לא נשמר, נסו שוב.',
|
||||
'journey.fromPhotos.previewFailed': 'לא ניתן היה לקבץ את התמונות. נסו שוב.',
|
||||
'journey.comments.closed': 'ההערות סגורות עבור הקישור הזה.',
|
||||
'journey.comments.count.one': '{count} הערה',
|
||||
'journey.comments.count.two': '{count} הערות',
|
||||
'journey.comments.count': '{count} הערות',
|
||||
'journey.comments.deletedUser': 'חשבון מוחזק',
|
||||
'journey.comments.failed': 'לא ניתן לשמור את ההערה. נסה שוב.',
|
||||
'journey.comments.guest': 'גוסט',
|
||||
'journey.comments.hidden': 'מוסתר',
|
||||
'journey.comments.hide': 'התר את ההערה',
|
||||
'journey.comments.invalid': 'הזן שם וتعليق בתוך הגבול של האותיות.',
|
||||
'journey.comments.locked': 'פתח את הקישור המשותף שוב כדי להמשיך.',
|
||||
'journey.comments.publicHint':
|
||||
'כאשר תגובות אורחים מופעלות, כל מי שיש לו את הקישור הציבורי יכול לקרוא תגובות לרשומות שפורסמו.',
|
||||
'journey.comments.send': 'שלח הערה',
|
||||
'journey.comments.show': 'הצג הערה',
|
||||
'journey.comments.title': 'הערות',
|
||||
'journey.comments.write': 'כתוב הערה',
|
||||
'journey.follow.closed': 'ה구독ים סגורים לינק זה',
|
||||
'journey.follow.confirmedText': 'אתה תקבל נספחים חדשים מ-{title} בדוא',
|
||||
'journey.follow.confirmedTitle': 'ר.',
|
||||
'journey.follow.failed': 'הרישוי הושלם',
|
||||
'journey.follow.invalid': 'לא ניתן לעדכן את הרישוי. נסה שוב.',
|
||||
'journey.follow.invalidText': 'הקישור לאישור או לביטול המינוי אינו תקף או שתוקפו פג.',
|
||||
'journey.follow.invalidTitle': 'ר חוקי.',
|
||||
'journey.follow.privacy': 'הקישור לยтвержות או להסרת הרישוי אינו חוקי או שהגיע לסיומו.',
|
||||
'journey.follow.sentText': 'אם הכתובת יכולה להירשם, תקבל דוא',
|
||||
'journey.follow.sentTitle': 'אתה יכול להירשם להודעות עדכויות בכל זמן.',
|
||||
'journey.follow.text': 'אם הכתובת יכולה להירשם, תקבלו דוא',
|
||||
'journey.follow.title': 'התווך',
|
||||
'journey.follow.unsubscribedText': 'יותר לא תקבל דוא',
|
||||
'journey.follow.unsubscribedTitle': 'לא רשום',
|
||||
'journey.fromPhotos.create.one': 'יצירת {count} גרסה מתוכנה',
|
||||
'journey.fromPhotos.create.two': 'יצר {count} טיוטה',
|
||||
'journey.fromPhotos.create': 'יצר {count} טיוטות',
|
||||
'journey.fromPhotos.empty': 'אין תמונות של גלריה עם זמן צילום זמין ליציאות חדשות.',
|
||||
'journey.fromPhotos.noPlace': 'אין תמונות גלריה עם זמן צילום זמין ליציאות חדשות.',
|
||||
'journey.fromPhotos.photoCount.one': '{count} תמונה',
|
||||
'journey.fromPhotos.photoCount.two': '{count} תמונה',
|
||||
'journey.fromPhotos.photoCount': '{count} תמונות',
|
||||
'journey.fromPhotos.text': 'עיין בקבוצות ולבחור באיזה גרסאות מתוכנות ליצור.',
|
||||
'journey.fromPhotos.timeRange': '{start} עד {end}',
|
||||
'journey.fromPhotos.title': 'יצירת רשומות מתמונות',
|
||||
'journey.fromPhotos.withoutTime.one': '{count} תמונה ללא זמן צילום נדחתה.',
|
||||
'journey.fromPhotos.withoutTime.two': '{count} תמונה ללא זמן צילום נדחתה.',
|
||||
'journey.fromPhotos.withoutTime': '{count} תמונות ללא זמן צילום נדחתו.',
|
||||
'journey.public.expiredText': 'שאול את הבעלים של הנספח על לינק חדש',
|
||||
'journey.public.expiredTitle': 'הlien פגש',
|
||||
'journey.public.lockedText': 'הקישור פגוע',
|
||||
'journey.public.lockedTitle': 'יומן מסע מוגן בסיסמה',
|
||||
'journey.public.passwordFailed': 'לא ניתן להפעילה את הlien. נסה שוב.',
|
||||
'journey.public.passwordWrong': 'הסיסמה שגורה',
|
||||
'journey.public.unlock': 'הסיסמה ששלחת שגויה.',
|
||||
'journey.recording.gpx.failed': 'פקח',
|
||||
'journey.recording.gpx.import': 'לא ניתן לייבא את מסלול GPX.',
|
||||
'journey.recording.gpx.imported.one': 'הובא מסלול ל-{count} יום',
|
||||
'journey.recording.gpx.imported.two': 'ביצוע תרגילים ל-{count} ימים',
|
||||
'journey.recording.gpx.imported': 'ביצוע תרגילים ל-{count} ימים',
|
||||
'journey.recording.gpx.removeFailed': 'לא ניתן להסיר את מסלול GPX.',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed.one': 'שוחרר {count} נקודה מסלול ללא תאריך.',
|
||||
'journey.recording.gpx.untimed.two': 'שוחררו {count} נקודות מסלול ללא תאריך.',
|
||||
'journey.recording.gpx.untimed': 'שוחררו {count} נקודות מסלול ללא תאריך.',
|
||||
'journey.share.allowComments': 'הפשרתتعليقات מוזמנים',
|
||||
'journey.share.allowCommentsHint': 'aders יכולים לפרסםتعليقات על הכניסות שפורסמו.',
|
||||
'journey.share.allowFollowers': 'הפשרת الاشتراكات באימייל',
|
||||
'journey.share.allowFollowersHint': 'aders יכולים לקבל אימייל כאשר יש nouvelות.',
|
||||
'journey.share.expires': 'מתי מתיישן',
|
||||
'journey.share.expiresNever': 'אין תאריך מתיישן',
|
||||
'journey.share.followerRemoveFailed': 'לא ניתן להסיר את המتابع.',
|
||||
'journey.share.followers.one': '{count} מتابع',
|
||||
'journey.share.followers.two': '{count} מتابعים',
|
||||
'journey.share.followers': '{count} מتابعים',
|
||||
'journey.share.followersPending.one': '{count} בבדיקה',
|
||||
'journey.share.followersPending.two': '{count} בבדיקה',
|
||||
'journey.share.followersPending': '{count} בבדיקה',
|
||||
'journey.share.lastViewed': 'הפתוח אחרון {date}',
|
||||
'journey.share.needsTimeline': 'חלק את הזמן כדי לה lehetתتعليقات מוזמנים.',
|
||||
'journey.share.passwordRemoved': 'הסתרת הסיסמה',
|
||||
'journey.share.passwordRule': 'השתמש במספר של {minLength} תווים לפחות.',
|
||||
'journey.share.passwordSaved': 'הסיסמה נשמרה',
|
||||
'journey.share.passwordSet': 'קביעת סיסמה',
|
||||
'journey.share.passwordText': 'aders יצטרכו את הסיסמה כדי לפתוח את הקישור 공유.',
|
||||
'journey.share.passwordTitle': 'סיסמה לرابط',
|
||||
'journey.share.removeFollower': 'הסר Subscriber',
|
||||
'journey.share.views.one': 'מספר צפיות: {count}',
|
||||
'journey.share.views.two': 'מספר צפיות: {count}',
|
||||
'journey.share.views': 'מספר צפיות: {count}',
|
||||
'journey.studio.mapCoastDetail': 'פרטים של החוף',
|
||||
'journey.studio.mapCoastDetail.auto': 'אוטומטי',
|
||||
'journey.studio.mapCoastDetail.detailed': 'מפורט',
|
||||
'journey.studio.mapCoastDetail.simple': 'מינימלי',
|
||||
'journey.studio.mapScopeCountry': 'מדינה אחת',
|
||||
'journey.studio.mapScopeDay': 'יום אחד',
|
||||
'journey.studio.mapScopeStop': 'עצירה אחת',
|
||||
'journey.studio.mapScopeTrip': 'מסע אחד',
|
||||
'journey.studio.mapView': 'העתקה',
|
||||
'journey.studio.mapViewDown': 'הזזה למטה',
|
||||
'journey.studio.mapViewLeft': 'הזזה שמאלה',
|
||||
'journey.studio.mapViewOwn': 'מותאם אישית',
|
||||
'journey.studio.mapViewRight': 'הזזה ימינה',
|
||||
'journey.studio.mapViewUp': 'הזזה למעלה',
|
||||
'journey.studio.tileDetail': 'פירוט אריחי המפה',
|
||||
};
|
||||
|
||||
export default journey;
|
||||
|
||||
@@ -772,7 +772,8 @@ const journey: TranslationStrings = {
|
||||
'journey.recording.error.recording_changed': 'A felvétel az előnézet óta megváltozott.',
|
||||
'journey.recording.error.recording_empty': 'A Dawarich azon a napon nem rögzített semmit.',
|
||||
'journey.recording.gpx.error.unreadable': 'Ez a fájl nem GPX-fájl.',
|
||||
'journey.recording.gpx.error.noTimes': 'Ennek a GPX-fájlnak a nyomvonalpontjain nincs időpont, így a napjai nem különíthetők el.',
|
||||
'journey.recording.gpx.error.noTimes':
|
||||
'Ennek a GPX-fájlnak a nyomvonalpontjain nincs időpont, így a napjai nem különíthetők el.',
|
||||
'journey.recording.gpx.error.emptyDay': 'A GPX-fájl azon a napon nem rögzített semmit.',
|
||||
'journey.recording.gpx.error.tooManyDays': 'Ez a GPX-fájl túl sok napot fed le. Oszd rövidebb részekre.',
|
||||
'journey.recording.gpx.error.tooLarge': 'Ez a GPX-fájl túl nagy.',
|
||||
@@ -937,5 +938,99 @@ const journey: TranslationStrings = {
|
||||
'Ezek közül a fotók közül egyikből sem lehetett bejegyzés. Semmi sem jött létre.',
|
||||
'journey.fromPhotos.createFailed': 'Nem jött létre bejegyzés. Semmi sem mentődött, próbáld újra.',
|
||||
'journey.fromPhotos.previewFailed': 'A fotókat nem sikerült csoportosítani. Próbáld újra.',
|
||||
'journey.comments.closed': 'A hivatalos link megjegyzései zártak.',
|
||||
'journey.comments.count.one': '{count} megjegyzés',
|
||||
'journey.comments.count': '{count} megjegyzés',
|
||||
'journey.comments.deletedUser': 'Törölt fiók',
|
||||
'journey.comments.failed': 'Nem lehetett menteni a megjegyzést. Próbáld újra.',
|
||||
'journey.comments.guest': 'Vendég',
|
||||
'journey.comments.hidden': 'Rejtett',
|
||||
'journey.comments.hide': 'Megjegyzés elrejtése',
|
||||
'journey.comments.invalid': 'Írj egy nevet és egy megjegyzést a karakterhatár belső határain belül.',
|
||||
'journey.comments.locked': 'Nyisd meg újra a megosztott linket a folytatáshoz.',
|
||||
'journey.comments.publicHint':
|
||||
'Ha a vendéghozzászólások engedélyezve vannak, a nyilvános link birtokában bárki olvashatja a közzétett bejegyzések hozzászólásait.',
|
||||
'journey.comments.send': 'Megjegyzés küldése',
|
||||
'journey.comments.show': 'Megjegyzés megjelenítése',
|
||||
'journey.comments.title': 'Megjegyzések',
|
||||
'journey.comments.write': 'Írj egy megjegyzést',
|
||||
'journey.follow.closed': 'A hivatalos link előfizetései zártak.',
|
||||
'journey.follow.confirmedText': 'Új bejegyzéseket e-mailben kapni {title}-től.',
|
||||
'journey.follow.confirmedTitle': 'Előfizetés megerősítve',
|
||||
'journey.follow.failed': 'Nem lehetett frissíteni az előfizetést. Próbáld újra.',
|
||||
'journey.follow.invalid': 'Írj egy érvényes e-mail címet.',
|
||||
'journey.follow.invalidText': 'A megerősítő vagy leiratkozási hivatkozás érvénytelen vagy lejárt.',
|
||||
'journey.follow.invalidTitle': 'Előfizetési hivatkozó elérhetetlen',
|
||||
'journey.follow.privacy': 'Előfizetést bármilyen frissítési e-mailről le lehet mondani.',
|
||||
'journey.follow.sentText':
|
||||
'Ha az e-mail cím előfizetésre alkalmas, e-mailben fogsz kapni egy megerősítési hivatkozót.',
|
||||
'journey.follow.sentTitle': 'Ellenőrizd a postafiókod',
|
||||
'journey.follow.text': 'E-mailt kapni azoknap, amikor új bejegyzések jelentkeznek.',
|
||||
'journey.follow.title': 'Előfizetés',
|
||||
'journey.follow.unsubscribedText': 'E-mail értesítések ezzel a utazással már nem jelennek meg.',
|
||||
'journey.follow.unsubscribedTitle': 'Előfizetés megszüntetve',
|
||||
'journey.fromPhotos.create.one': '{count} vázlat létrehozása',
|
||||
'journey.fromPhotos.create': '{count} vázlat létrehozása',
|
||||
'journey.fromPhotos.empty': 'Nincsenek galériafotók, amelyekhez időpont van rendelve új bejegyzésekhez.',
|
||||
'journey.fromPhotos.noPlace': 'Nincs hely',
|
||||
'journey.fromPhotos.photoCount.one': '{count} fotó',
|
||||
'journey.fromPhotos.photoCount': '{count} fotó',
|
||||
'journey.fromPhotos.text': 'Nézd végig a csoportokat, és válaszd ki, mely vázlatokat szeretnéd létrehozni.',
|
||||
'journey.fromPhotos.timeRange': '{start} - {end}',
|
||||
'journey.fromPhotos.title': 'Bejegyzések létrehozása fotókból',
|
||||
'journey.fromPhotos.withoutTime.one': '{count} fotó nincs időponttal, ezért elmaradt.',
|
||||
'journey.fromPhotos.withoutTime': '{count} fotó nincs időponttal, ezért elmaradt.',
|
||||
'journey.public.expiredText': 'Kérj a utazás tulajdonosától egy új linket.',
|
||||
'journey.public.expiredTitle': 'Ez a link lejárt',
|
||||
'journey.public.lockedText': 'Írd be a jelszót, amit a tulajdonos osztott meg veled.',
|
||||
'journey.public.lockedTitle': 'Jelszóval védett útinapló',
|
||||
'journey.public.passwordFailed': 'Nem sikerült megnyitni a linket. Próbáld újra.',
|
||||
'journey.public.passwordWrong': 'Ez a jelszó helytelen.',
|
||||
'journey.public.unlock': 'Nyitás',
|
||||
'journey.recording.gpx.failed': 'Nem sikerült importálni a GPX utat.',
|
||||
'journey.recording.gpx.import': 'GPX utat importál',
|
||||
'journey.recording.gpx.imported.one': '{count} napi utat importáltam',
|
||||
'journey.recording.gpx.imported': '{count} napi utat importáltam',
|
||||
'journey.recording.gpx.removeFailed': 'Nem sikerült eltávolítani a GPX utat.',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed.one': '{count} nyomkövetési pont nincs időbélyeggel.',
|
||||
'journey.recording.gpx.untimed': '{count} nyomkövetési pontot ugráltunk át, mivel nincs időbélyeg',
|
||||
'journey.share.allowComments': 'Engedélyezés külföldi megjegyzéseket',
|
||||
'journey.share.allowCommentsHint': 'A olvasók megjegyzést írhatnak a közzétett bejegyzésekre.',
|
||||
'journey.share.allowFollowers': 'Engedélyezés e-mail feliratkozás',
|
||||
'journey.share.allowFollowersHint': 'A olvasók e-mailt kapnak, ha új bejegyzések jelennek meg.',
|
||||
'journey.share.expires': 'Érvényesség',
|
||||
'journey.share.expiresNever': 'Soha nem érvényesül',
|
||||
'journey.share.followerRemoveFailed': 'Nem lehet eltávolítani a feliratkozót.',
|
||||
'journey.share.followers.one': '{count} feliratkozó',
|
||||
'journey.share.followers': '{count} feliratkozó',
|
||||
'journey.share.followersPending.one': '{count} várólistára kerülő',
|
||||
'journey.share.followersPending': '{count} várólistára kerülő',
|
||||
'journey.share.lastViewed': 'Utoljára megnyitva {date}',
|
||||
'journey.share.needsTimeline': 'Megosztani a idővonalat, hogy engedélyezze a külföldi megjegyzéseket.',
|
||||
'journey.share.passwordRemoved': 'Jelszó eltávolítva',
|
||||
'journey.share.passwordRule': 'Használj legalább {minLength} karaktert.',
|
||||
'journey.share.passwordSaved': 'Jelszó mentve',
|
||||
'journey.share.passwordSet': 'Jelszó beállítása',
|
||||
'journey.share.passwordText': 'A olvasók ezt a jelszót kell használni a megosztott hivatkozás megnyitásához.',
|
||||
'journey.share.passwordTitle': 'Hivatkozás jelszava',
|
||||
'journey.share.removeFollower': 'Feliratkozó eltávolítása',
|
||||
'journey.share.views.one': 'Megnyitások: {count}',
|
||||
'journey.share.views': 'Megnyitások: {count}',
|
||||
'journey.studio.mapCoastDetail': 'Tengerpart részletesség',
|
||||
'journey.studio.mapCoastDetail.auto': 'Automatikus',
|
||||
'journey.studio.mapCoastDetail.detailed': 'Részletes',
|
||||
'journey.studio.mapCoastDetail.simple': 'Egyszerűsített',
|
||||
'journey.studio.mapScopeCountry': 'Egy ország',
|
||||
'journey.studio.mapScopeDay': 'Egy nap',
|
||||
'journey.studio.mapScopeStop': 'Egy állomás',
|
||||
'journey.studio.mapScopeTrip': 'Egy utazás',
|
||||
'journey.studio.mapView': 'Keret',
|
||||
'journey.studio.mapViewDown': 'Lépjen le',
|
||||
'journey.studio.mapViewLeft': 'Lépjen balra',
|
||||
'journey.studio.mapViewOwn': 'Egyéni',
|
||||
'journey.studio.mapViewRight': 'Lépjen jobbra',
|
||||
'journey.studio.mapViewUp': 'Lépjen felfelé',
|
||||
'journey.studio.tileDetail': 'Térképcsempék részletessége',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -759,9 +759,11 @@ const journey: TranslationStrings = {
|
||||
'journey.recording.error.recording_changed': 'Rekaman berubah sejak pratinjau.',
|
||||
'journey.recording.error.recording_empty': 'Dawarich tidak merekam apa pun pada hari itu.',
|
||||
'journey.recording.gpx.error.unreadable': 'File ini bukan file GPX.',
|
||||
'journey.recording.gpx.error.noTimes': 'Titik jejak di file GPX ini tidak memiliki waktu, sehingga hari-harinya tidak dapat dibedakan.',
|
||||
'journey.recording.gpx.error.noTimes':
|
||||
'Titik jejak di file GPX ini tidak memiliki waktu, sehingga hari-harinya tidak dapat dibedakan.',
|
||||
'journey.recording.gpx.error.emptyDay': 'File GPX tidak merekam apa pun pada hari itu.',
|
||||
'journey.recording.gpx.error.tooManyDays': 'File GPX ini mencakup terlalu banyak hari. Bagi menjadi bagian yang lebih pendek.',
|
||||
'journey.recording.gpx.error.tooManyDays':
|
||||
'File GPX ini mencakup terlalu banyak hari. Bagi menjadi bagian yang lebih pendek.',
|
||||
'journey.recording.gpx.error.tooLarge': 'File GPX ini terlalu besar.',
|
||||
'journey.recording.mode.walking': 'Jalan kaki',
|
||||
'journey.recording.mode.running': 'Lari',
|
||||
@@ -910,5 +912,89 @@ const journey: TranslationStrings = {
|
||||
'journey.fromPhotos.nothingCreated': 'Tidak ada foto ini yang bisa menjadi entri. Tidak ada yang dibuat.',
|
||||
'journey.fromPhotos.createFailed': 'Tidak ada entri yang dibuat. Tidak ada yang disimpan, coba lagi.',
|
||||
'journey.fromPhotos.previewFailed': 'Foto tidak dapat dikelompokkan. Coba lagi.',
|
||||
'journey.comments.closed': 'Komentar ditutup untuk tautan ini.',
|
||||
'journey.comments.count': '{count} komentar',
|
||||
'journey.comments.deletedUser': 'Akun dihapus',
|
||||
'journey.comments.failed': 'Tidak dapat menyimpan komentar. Coba lagi.',
|
||||
'journey.comments.guest': 'Tamu',
|
||||
'journey.comments.hidden': 'Tersembunyi',
|
||||
'journey.comments.hide': 'Sembunyikan komentar',
|
||||
'journey.comments.invalid': 'Masukkan nama dan komentar dalam batas karakter.',
|
||||
'journey.comments.locked': 'Buka tautan berbagi lagi untuk melanjutkan.',
|
||||
'journey.comments.publicHint':
|
||||
'Jika komentar tamu diaktifkan, orang yang memiliki tautan publik dapat membaca komentar pada entri yang telah diterbitkan.',
|
||||
'journey.comments.send': 'Kirim komentar',
|
||||
'journey.comments.show': 'Tampilkan komentar',
|
||||
'journey.comments.title': 'Komentar',
|
||||
'journey.comments.write': 'Tulis komentar',
|
||||
'journey.follow.closed': 'Subskripsi ditutup untuk tautan ini.',
|
||||
'journey.follow.confirmedText': 'Anda akan menerima posting baru dari {title} via email.',
|
||||
'journey.follow.confirmedTitle': 'Subskripsi dikonfirmasi',
|
||||
'journey.follow.failed': 'Tidak dapat memperbarui subskripsi. Coba lagi.',
|
||||
'journey.follow.invalid': 'Masukkan alamat email yang valid.',
|
||||
'journey.follow.invalidText': 'Tautan konfirmasi atau pembatalan langganan ini tidak valid atau sudah kedaluwarsa.',
|
||||
'journey.follow.invalidTitle': 'Tautan berlangganan tidak tersedia',
|
||||
'journey.follow.privacy': 'Anda dapat membatalkan berlangganan dari email pembaruan apa pun.',
|
||||
'journey.follow.sentText': 'Jika alamat dapat berlangganan, Anda akan menerima email dengan tautan konfirmasi.',
|
||||
'journey.follow.sentTitle': 'Periksa kotak masuk Anda',
|
||||
'journey.follow.text': 'Dapatkan email ketika ada entri baru yang dipublikasikan.',
|
||||
'journey.follow.title': 'Berlangganan',
|
||||
'journey.follow.unsubscribedText': 'Anda tidak akan menerima email lagi tentang perjalanan ini.',
|
||||
'journey.follow.unsubscribedTitle': 'Tidak berlangganan',
|
||||
'journey.fromPhotos.create': 'Buat {count} draft',
|
||||
'journey.fromPhotos.empty': 'Tidak ada foto galeri dengan waktu pengambilan yang tersedia untuk entri baru.',
|
||||
'journey.fromPhotos.noPlace': 'Tidak ada lokasi',
|
||||
'journey.fromPhotos.photoCount': '{count} foto',
|
||||
'journey.fromPhotos.text': 'Tinjau kelompok dan pilih draft mana yang ingin dibuat.',
|
||||
'journey.fromPhotos.timeRange': '{start} sampai {end}',
|
||||
'journey.fromPhotos.title': 'Buat entri dari foto',
|
||||
'journey.fromPhotos.withoutTime': '{count} foto tanpa waktu pengambilan dilewati.',
|
||||
'journey.public.expiredText': 'Tanyakan kepada pemilik perjalanan untuk link baru.',
|
||||
'journey.public.expiredTitle': 'Link ini telah kedaluwarsa',
|
||||
'journey.public.lockedText': 'Masukkan kata sandi yang dibagikan oleh pemilik untuk Anda.',
|
||||
'journey.public.lockedTitle': 'Jurnal perjalanan yang dilindungi kata sandi',
|
||||
'journey.public.passwordFailed': 'Tidak dapat membuka link. Coba lagi.',
|
||||
'journey.public.passwordWrong': 'Kata sandi tersebut salah.',
|
||||
'journey.public.unlock': 'Buka',
|
||||
'journey.recording.gpx.failed': 'Tidak dapat mengimpor jalur GPX.',
|
||||
'journey.recording.gpx.import': 'Impor jalur GPX',
|
||||
'journey.recording.gpx.imported': 'Jalur diimpor untuk {count} hari',
|
||||
'journey.recording.gpx.removeFailed': 'Tidak dapat menghapus jalur GPX.',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed': 'Melewatkan {count} titik jalur tanpa timestamp.',
|
||||
'journey.share.allowComments': 'Izinkan komentar tamu',
|
||||
'journey.share.allowCommentsHint': 'Pembaca dapat berkomentar pada entri yang dipublikasikan.',
|
||||
'journey.share.allowFollowers': 'Izinkan langganan email',
|
||||
'journey.share.allowFollowersHint': 'Pembaca dapat menerima email saat ada entri baru.',
|
||||
'journey.share.expires': 'Berakhir pada /no_think',
|
||||
'journey.share.expiresNever': 'Tidak berakhir',
|
||||
'journey.share.followerRemoveFailed': 'Tidak dapat menghapus pengikut.',
|
||||
'journey.share.followers': '{count} pengikut',
|
||||
'journey.share.followersPending': '{count} pending konfirmasi',
|
||||
'journey.share.lastViewed': 'Terakhir dibuka {date}',
|
||||
'journey.share.needsTimeline': 'Bagikan timeline untuk memungkinkan komentar tamu.',
|
||||
'journey.share.passwordRemoved': 'Kata sandi dihapus',
|
||||
'journey.share.passwordRule': 'Gunakan minimal {minLength} karakter.',
|
||||
'journey.share.passwordSaved': 'Kata sandi disimpan',
|
||||
'journey.share.passwordSet': 'Tetapkan kata sandi',
|
||||
'journey.share.passwordText': 'Pembaca memerlukan kata sandi ini untuk membuka tautan yang dibagikan.',
|
||||
'journey.share.passwordTitle': 'Kata sandi tautan',
|
||||
'journey.share.removeFollower': 'Hapus pengikut',
|
||||
'journey.share.views': 'Dibuka: {count} kali',
|
||||
'journey.studio.mapCoastDetail': 'Detail garis pantai',
|
||||
'journey.studio.mapCoastDetail.auto': 'Otomatis',
|
||||
'journey.studio.mapCoastDetail.detailed': 'Detail',
|
||||
'journey.studio.mapCoastDetail.simple': 'Sederhana',
|
||||
'journey.studio.mapScopeCountry': 'Satu negara',
|
||||
'journey.studio.mapScopeDay': 'Satu hari',
|
||||
'journey.studio.mapScopeStop': 'Satu titik berhenti',
|
||||
'journey.studio.mapScopeTrip': 'Satu perjalanan',
|
||||
'journey.studio.mapView': 'Penyesuaian pandangan',
|
||||
'journey.studio.mapViewDown': 'Geser ke bawah',
|
||||
'journey.studio.mapViewLeft': 'Geser ke kiri',
|
||||
'journey.studio.mapViewOwn': 'Kustom',
|
||||
'journey.studio.mapViewRight': 'Geser ke kanan',
|
||||
'journey.studio.mapViewUp': 'Geser ke atas',
|
||||
'journey.studio.tileDetail': 'Detail petak peta',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -775,7 +775,8 @@ const journey: TranslationStrings = {
|
||||
'journey.recording.error.recording_changed': 'La registrazione è cambiata dall’anteprima.',
|
||||
'journey.recording.error.recording_empty': 'Dawarich non ha registrato nulla quel giorno.',
|
||||
'journey.recording.gpx.error.unreadable': 'Questo file non è un file GPX.',
|
||||
'journey.recording.gpx.error.noTimes': 'I punti traccia di questo file GPX non hanno orari, quindi i suoi giorni non si possono distinguere.',
|
||||
'journey.recording.gpx.error.noTimes':
|
||||
'I punti traccia di questo file GPX non hanno orari, quindi i suoi giorni non si possono distinguere.',
|
||||
'journey.recording.gpx.error.emptyDay': 'Il file GPX non ha registrato nulla quel giorno.',
|
||||
'journey.recording.gpx.error.tooManyDays': 'Questo file GPX copre troppi giorni. Dividilo in parti più brevi.',
|
||||
'journey.recording.gpx.error.tooLarge': 'Questo file GPX è troppo grande.',
|
||||
@@ -938,5 +939,98 @@ const journey: TranslationStrings = {
|
||||
'journey.fromPhotos.nothingCreated': 'Nessuna di queste foto è potuta diventare una voce. Non è stato creato nulla.',
|
||||
'journey.fromPhotos.createFailed': 'Nessuna voce creata. Non è stato salvato nulla, riprova.',
|
||||
'journey.fromPhotos.previewFailed': 'Non è stato possibile raggruppare le foto. Riprova.',
|
||||
'journey.comments.closed': 'I commenti sono chiusi per questo link.',
|
||||
'journey.comments.count.one': '{count} commento',
|
||||
'journey.comments.count': '{count} commenti',
|
||||
'journey.comments.deletedUser': 'Account cancellato',
|
||||
'journey.comments.failed': 'Non è stato possibile salvare il commento. Riprova.',
|
||||
'journey.comments.guest': 'Ospite',
|
||||
'journey.comments.hidden': 'Nascosto',
|
||||
'journey.comments.hide': 'Nascondi commento',
|
||||
'journey.comments.invalid': 'Inserisci un nome e un commento entro il limite di caratteri.',
|
||||
'journey.comments.locked': 'Apri nuovamente il link condiviso per continuare.',
|
||||
'journey.comments.publicHint':
|
||||
'Se i commenti degli ospiti sono abilitati, chi ha il link pubblico può leggere i commenti alle voci pubblicate.',
|
||||
'journey.comments.send': 'Invia commento',
|
||||
'journey.comments.show': 'Mostra commento',
|
||||
'journey.comments.title': 'Commenti',
|
||||
'journey.comments.write': 'Scrivi un commento',
|
||||
'journey.follow.closed': 'Le iscrizioni sono chiuse per questo link.',
|
||||
'journey.follow.confirmedText': 'Riceverai nuove pubblicazioni da {title} via email.',
|
||||
'journey.follow.confirmedTitle': 'Iscrizione confermata',
|
||||
'journey.follow.failed': "Non è stato possibile aggiornare l'iscrizione. Riprova.",
|
||||
'journey.follow.invalid': 'Inserisci un indirizzo email valido.',
|
||||
'journey.follow.invalidText': 'Questo link di conferma o di annullamento dell’iscrizione non è valido o è scaduto.',
|
||||
'journey.follow.invalidTitle': 'Link di iscrizione non disponibile',
|
||||
'journey.follow.privacy': "Puoi annullare l'iscrizione a qualsiasi email di aggiornamento.",
|
||||
'journey.follow.sentText': "Se l'indirizzo può essere iscritto, riceverai un'email con un link di conferma.",
|
||||
'journey.follow.sentTitle': 'Controlla la tua casella di posta',
|
||||
'journey.follow.text': "Ricevi un'email nei giorni in cui vengono pubblicati nuovi contenuti.",
|
||||
'journey.follow.title': 'Iscriviti',
|
||||
'journey.follow.unsubscribedText': 'Non riceverai più email riguardo a questa avventura.',
|
||||
'journey.follow.unsubscribedTitle': 'Sottoscritto',
|
||||
'journey.fromPhotos.create.one': 'Crea {count} bozza',
|
||||
'journey.fromPhotos.create': 'Crea {count} bozze',
|
||||
'journey.fromPhotos.empty': "Non ci sono foto della galleria con un'ora di cattura disponibile per nuove entrate.",
|
||||
'journey.fromPhotos.noPlace': 'Nessun luogo',
|
||||
'journey.fromPhotos.photoCount.one': '{count} foto',
|
||||
'journey.fromPhotos.photoCount': '{count} foto',
|
||||
'journey.fromPhotos.text': 'Rivolgiti ai gruppi e scegli quali bozze creare.',
|
||||
'journey.fromPhotos.timeRange': '{start} a {end}',
|
||||
'journey.fromPhotos.title': 'Crea voci dalle foto',
|
||||
'journey.fromPhotos.withoutTime.one': "{count} foto senza un'ora di cattura è stata saltata.",
|
||||
'journey.fromPhotos.withoutTime': "{count} foto senza un'ora di cattura sono state saltate.",
|
||||
'journey.public.expiredText': "Chiedi al proprietario dell'avventura un nuovo link.",
|
||||
'journey.public.expiredTitle': 'Questo link è scaduto',
|
||||
'journey.public.lockedText': 'Inserisci la password che il proprietario ti ha condiviso.',
|
||||
'journey.public.lockedTitle': 'Viaggio protetto da password',
|
||||
'journey.public.passwordFailed': 'Non è stato possibile sbloccare il link. Riprova.',
|
||||
'journey.public.passwordWrong': 'Questa password è errata.',
|
||||
'journey.public.unlock': 'Sblocca',
|
||||
'journey.recording.gpx.failed': 'Non è stato possibile importare la rotta GPX.',
|
||||
'journey.recording.gpx.import': 'Importa rotta GPX',
|
||||
'journey.recording.gpx.imported.one': 'Importata una rotta per {count} giorno',
|
||||
'journey.recording.gpx.imported': 'Importate le rotte per {count} giorni',
|
||||
'journey.recording.gpx.removeFailed': 'Non è stato possibile rimuovere la rotta GPX.',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed.one': 'Saltato {count} punto di traccia senza timestamp.',
|
||||
'journey.recording.gpx.untimed': 'Saltati {count} punti di traccia senza timestamp.',
|
||||
'journey.share.allowComments': 'Consentire commenti degli ospiti',
|
||||
'journey.share.allowCommentsHint': 'Gli lettori possono commentare gli articoli pubblicati.',
|
||||
'journey.share.allowFollowers': 'Consentire iscrizioni via email',
|
||||
'journey.share.allowFollowersHint': "Gli lettori possono ricevere un'email quando vengono pubblicati nuovi articoli.",
|
||||
'journey.share.expires': 'Scade il',
|
||||
'journey.share.expiresNever': 'Nessuna scadenza',
|
||||
'journey.share.followerRemoveFailed': "Non è stato possibile rimuovere l'iscritto.",
|
||||
'journey.share.followers.one': '{count} iscritto',
|
||||
'journey.share.followers': '{count} iscritti',
|
||||
'journey.share.followersPending.one': '{count} in attesa di conferma',
|
||||
'journey.share.followersPending': '{count} in attesa di conferma',
|
||||
'journey.share.lastViewed': 'Ultima apertura {date}',
|
||||
'journey.share.needsTimeline': 'Condividi la timeline per permettere commenti degli ospiti.',
|
||||
'journey.share.passwordRemoved': 'Password rimosso',
|
||||
'journey.share.passwordRule': 'Usa almeno {minLength} caratteri.',
|
||||
'journey.share.passwordSaved': 'Password salvata',
|
||||
'journey.share.passwordSet': 'Imposta password',
|
||||
'journey.share.passwordText': 'I lettori avranno bisogno di questa password per aprire il link condiviso.',
|
||||
'journey.share.passwordTitle': 'Password del link',
|
||||
'journey.share.removeFollower': 'Rimuovi iscritto',
|
||||
'journey.share.views.one': 'Visite: {count}',
|
||||
'journey.share.views': 'Visite: {count}',
|
||||
'journey.studio.mapCoastDetail': 'Dettaglio costa',
|
||||
'journey.studio.mapCoastDetail.auto': 'Automatico',
|
||||
'journey.studio.mapCoastDetail.detailed': 'Dettagliato',
|
||||
'journey.studio.mapCoastDetail.simple': 'Semplificato',
|
||||
'journey.studio.mapScopeCountry': 'Un paese',
|
||||
'journey.studio.mapScopeDay': 'Una giornata',
|
||||
'journey.studio.mapScopeStop': 'Un stop',
|
||||
'journey.studio.mapScopeTrip': 'Un viaggio',
|
||||
'journey.studio.mapView': 'Inquadratura',
|
||||
'journey.studio.mapViewDown': 'Muovi verso il basso',
|
||||
'journey.studio.mapViewLeft': 'Muovi a sinistra',
|
||||
'journey.studio.mapViewOwn': 'Personalizzata',
|
||||
'journey.studio.mapViewRight': 'Muovi a destra',
|
||||
'journey.studio.mapViewUp': "Muovi verso l'alto",
|
||||
'journey.studio.tileDetail': 'Dettaglio delle tessere',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -753,7 +753,8 @@ const journey: TranslationStrings = {
|
||||
'journey.recording.error.recording_changed': 'プレビュー以降に記録が変わりました。',
|
||||
'journey.recording.error.recording_empty': 'Dawarichはその日に何も記録していません。',
|
||||
'journey.recording.gpx.error.unreadable': 'このファイルはGPXファイルではありません。',
|
||||
'journey.recording.gpx.error.noTimes': 'このGPXファイルのトラックポイントには時刻がないため、日ごとに分けられません。',
|
||||
'journey.recording.gpx.error.noTimes':
|
||||
'このGPXファイルのトラックポイントには時刻がないため、日ごとに分けられません。',
|
||||
'journey.recording.gpx.error.emptyDay': 'GPXファイルにはその日の記録がありません。',
|
||||
'journey.recording.gpx.error.tooManyDays': 'このGPXファイルは日数が多すぎます。短い部分に分けてください。',
|
||||
'journey.recording.gpx.error.tooLarge': 'このGPXファイルは大きすぎます。',
|
||||
@@ -897,5 +898,89 @@ const journey: TranslationStrings = {
|
||||
'journey.fromPhotos.createFailed':
|
||||
'エントリーは作成されませんでした。何も保存されていません。もう一度お試しください。',
|
||||
'journey.fromPhotos.previewFailed': '写真をグループ分けできませんでした。もう一度お試しください。',
|
||||
'journey.comments.closed': 'コメントはこのリンクで閉じられています。',
|
||||
'journey.comments.count': '{count} コメント',
|
||||
'journey.comments.deletedUser': '削除されたアカウント',
|
||||
'journey.comments.failed': 'コメントを保存できませんでした。もう一度お試しください。',
|
||||
'journey.comments.guest': 'ゲスト',
|
||||
'journey.comments.hidden': '非表示',
|
||||
'journey.comments.hide': 'コメントを非表示',
|
||||
'journey.comments.invalid': '無効な入力です。文字数制限内で名前とコメントを入力してください。',
|
||||
'journey.comments.locked': 'リンクを再開して続きをどうぞ。',
|
||||
'journey.comments.publicHint':
|
||||
'ゲストのコメントが許可されていると、公開リンクを持つ人は公開済みの記事へのコメントを読めます。',
|
||||
'journey.comments.send': 'コメントを送信',
|
||||
'journey.comments.show': 'コメントを表示',
|
||||
'journey.comments.title': 'コメント',
|
||||
'journey.comments.write': 'コメントを書く',
|
||||
'journey.follow.closed': 'このリンクのサブスクリプションは終了しています。',
|
||||
'journey.follow.confirmedText': '{title} から新しい投稿がメールで届きます。',
|
||||
'journey.follow.confirmedTitle': 'サブスクリプションが確認されました。',
|
||||
'journey.follow.failed': 'サブスクリプションを更新できませんでした。もう一度お試しください。',
|
||||
'journey.follow.invalid': '有効なメールアドレスを入力してください。',
|
||||
'journey.follow.invalidText': '確認または購読解除用のリンクが無効か、期限切れです。',
|
||||
'journey.follow.invalidTitle': 'サブスクリプションリンクが利用できません。',
|
||||
'journey.follow.privacy': 'プライバシー設定により、更新メールからサブスクリプションを解除できます。',
|
||||
'journey.follow.sentText': 'アドレスがサブスク可能であれば、確認リンクを含むメールが届きます。',
|
||||
'journey.follow.sentTitle': 'メールを確認してください。',
|
||||
'journey.follow.text': '新しいエントリが公開された日にはメールを送信します。',
|
||||
'journey.follow.title': 'サブスク',
|
||||
'journey.follow.unsubscribedText': 'このジャーニーについてのメールはもう届きません。',
|
||||
'journey.follow.unsubscribedTitle': 'アンサブスクされました',
|
||||
'journey.fromPhotos.create': '{count}下書きを作成',
|
||||
'journey.fromPhotos.empty': '新しいエントリに使用可能な撮影日時を持つギャラリーの写真はありません。',
|
||||
'journey.fromPhotos.noPlace': '位置情報なし',
|
||||
'journey.fromPhotos.photoCount': '{count} 枚の写真',
|
||||
'journey.fromPhotos.text': 'グループを確認し、どの下書きをエントリに変換するか選んでください。',
|
||||
'journey.fromPhotos.timeRange': '{start} から {end}',
|
||||
'journey.fromPhotos.title': '写真から記事を作成',
|
||||
'journey.fromPhotos.withoutTime': '撮影日時が記録されていない {count} 枚の写真はスキップされました。',
|
||||
'journey.public.expiredText': 'この旅の所有者に新しいリンクを依頼してください。',
|
||||
'journey.public.expiredTitle': 'このリンクは期限切れです',
|
||||
'journey.public.lockedText': '所有者が共有したパスワードを入力してください。',
|
||||
'journey.public.lockedTitle': 'パスワードで保護された旅日記',
|
||||
'journey.public.passwordFailed': 'リンクを解除できませんでした。もう一度お試しください。',
|
||||
'journey.public.passwordWrong': 'そのパスワードは間違っています。',
|
||||
'journey.public.unlock': 'リンクを解除',
|
||||
'journey.recording.gpx.failed': 'GPXルートをインポートできませんでした。',
|
||||
'journey.recording.gpx.import': 'GPXルートをインポート',
|
||||
'journey.recording.gpx.imported': '{count} 日分のルートをインポートしました',
|
||||
'journey.recording.gpx.removeFailed': 'GPXルートを削除できませんでした。',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed': '時間スタンプが記録されていない {count} 個のトラックポイントはスキップされました。',
|
||||
'journey.share.allowComments': 'ゲストによるコメントを許可',
|
||||
'journey.share.allowCommentsHint': '読者に公開エントリへのコメントを許可します。',
|
||||
'journey.share.allowFollowers': 'エマールでのフォロワーを許可',
|
||||
'journey.share.allowFollowersHint': '新しいエントリが投稿されたときに読者にメールを送信します。',
|
||||
'journey.share.expires': '有効期限:',
|
||||
'journey.share.expiresNever': '期限なし',
|
||||
'journey.share.followerRemoveFailed': 'サブスクライバーを削除できませんでした。',
|
||||
'journey.share.followers': '{count} サブスクライバー',
|
||||
'journey.share.followersPending': '{count} 未承認',
|
||||
'journey.share.lastViewed': '最後に開いた{date}',
|
||||
'journey.share.needsTimeline': 'ゲストコメントを許可するにはタイムラインを共有してください。',
|
||||
'journey.share.passwordRemoved': 'パスワードを削除しました',
|
||||
'journey.share.passwordRule': '{minLength}文字以上を使用してください。',
|
||||
'journey.share.passwordSaved': 'パスワードを保存しました',
|
||||
'journey.share.passwordSet': 'パスワードを設定',
|
||||
'journey.share.passwordText': '読み込みにはこのパスワードが必要です。',
|
||||
'journey.share.passwordTitle': 'リンクパスワード',
|
||||
'journey.share.removeFollower': 'サブスクライバーを削除',
|
||||
'journey.share.views': '閲覧回数: {count}',
|
||||
'journey.studio.mapCoastDetail': '海岸線の詳細',
|
||||
'journey.studio.mapCoastDetail.auto': '自動',
|
||||
'journey.studio.mapCoastDetail.detailed': '詳細',
|
||||
'journey.studio.mapCoastDetail.simple': '簡略',
|
||||
'journey.studio.mapScopeCountry': '1国',
|
||||
'journey.studio.mapScopeDay': '1日',
|
||||
'journey.studio.mapScopeStop': '1停留所',
|
||||
'journey.studio.mapScopeTrip': '1旅行',
|
||||
'journey.studio.mapView': 'フレーミング',
|
||||
'journey.studio.mapViewDown': '下にスクロール',
|
||||
'journey.studio.mapViewLeft': '左にスクロール',
|
||||
'journey.studio.mapViewOwn': 'カスタム',
|
||||
'journey.studio.mapViewRight': '右にスクロール',
|
||||
'journey.studio.mapViewUp': '上にスクロール',
|
||||
'journey.studio.tileDetail': '地図タイルの詳細度',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -890,5 +890,89 @@ const journey: TranslationStrings = {
|
||||
'journey.fromPhotos.nothingCreated': '이 사진들로는 기록을 만들 수 없었습니다. 아무것도 만들어지지 않았습니다.',
|
||||
'journey.fromPhotos.createFailed': '기록이 만들어지지 않았습니다. 아무것도 저장되지 않았으니 다시 시도하세요.',
|
||||
'journey.fromPhotos.previewFailed': '사진을 묶을 수 없었습니다. 다시 시도하세요.',
|
||||
'journey.comments.closed': '댓글은 이 링크에 대해 닫았습니다.',
|
||||
'journey.comments.count': '{count}개의 댓글',
|
||||
'journey.comments.deletedUser': '삭제된 계정',
|
||||
'journey.comments.failed': '댓글을 저장할 수 없습니다. 다시 시도해 주세요.',
|
||||
'journey.comments.guest': '게스트',
|
||||
'journey.comments.hidden': '숨김',
|
||||
'journey.comments.hide': '댓글 숨기기',
|
||||
'journey.comments.invalid': '잘못된 입력입니다. 문자 제한 내에서 이름과 댓글을 입력해 주세요.',
|
||||
'journey.comments.locked': '공유 링크를 다시 열어 계속하세요.',
|
||||
'journey.comments.publicHint':
|
||||
'게스트 댓글이 허용되면 공개 링크를 가진 사람이 게시된 항목의 댓글을 읽을 수 있습니다.',
|
||||
'journey.comments.send': '댓글 보내기',
|
||||
'journey.comments.show': '댓글 보기',
|
||||
'journey.comments.title': '댓글 작성',
|
||||
'journey.comments.write': '구독은 이 링크에 대해 닫았습니다.',
|
||||
'journey.follow.closed': '이 링크의 구독은 종료되었습니다.',
|
||||
'journey.follow.confirmedText': '{title}에서 새 글이 도착할 때 이메일을 받을 것입니다.',
|
||||
'journey.follow.confirmedTitle': '구독을 업데이트할 수 없습니다. 다시 시도해 주세요.',
|
||||
'journey.follow.failed': '유효한 이메일 주소를 입력해 주세요.',
|
||||
'journey.follow.invalid': '이 확인 또는 구독 취소 링크는 유효하지 않거나 만료되었습니다.',
|
||||
'journey.follow.invalidText': '확인 또는 구독 취소 링크가 유효하지 않거나 만료되었습니다.',
|
||||
'journey.follow.invalidTitle': '개인정보',
|
||||
'journey.follow.privacy': '업데이트 이메일에서 구독을 취소할 수 있습니다.',
|
||||
'journey.follow.sentText': '주소가 구독 가능한 경우, 확인 링크가 담긴 이메일을 받게 됩니다.',
|
||||
'journey.follow.sentTitle': '이메일 확인',
|
||||
'journey.follow.text': '새로운 항목이 게시되는 날에 이메일을 받을 수 있습니다.',
|
||||
'journey.follow.title': '구독',
|
||||
'journey.follow.unsubscribedText': '이 여행에 대한 이메일 알림을 더 이상 받지 않습니다.',
|
||||
'journey.follow.unsubscribedTitle': '구독 취소됨',
|
||||
'journey.fromPhotos.create': '{count} 초안 생성',
|
||||
'journey.fromPhotos.empty': '새 항목에 사용할 캡처 시간이 있는 갤러리 사진이 없습니다.',
|
||||
'journey.fromPhotos.noPlace': '위치 없음',
|
||||
'journey.fromPhotos.photoCount': '{count} 사진',
|
||||
'journey.fromPhotos.text': '그룹을 확인하고 생성할 초안을 선택하세요.',
|
||||
'journey.fromPhotos.timeRange': '{start} ~ {end}',
|
||||
'journey.fromPhotos.title': '사진으로 일지 항목 만들기',
|
||||
'journey.fromPhotos.withoutTime': '캡처 시간이 없는 {count} 사진은 건너뜁니다.',
|
||||
'journey.public.expiredText': '여행 주인에게 새 링크를 요청하세요.',
|
||||
'journey.public.expiredTitle': '이 링크는 만료되었습니다',
|
||||
'journey.public.lockedText': '주인과 공유된 비밀번호를 입력하세요.',
|
||||
'journey.public.lockedTitle': '비밀번호로 보호된 여행 일지',
|
||||
'journey.public.passwordFailed': '링크를 해제할 수 없습니다. 다시 시도해 주세요.',
|
||||
'journey.public.passwordWrong': '암호가 잘못되었습니다.',
|
||||
'journey.public.unlock': '해제',
|
||||
'journey.recording.gpx.failed': 'GPX 경로를 가져올 수 없습니다.',
|
||||
'journey.recording.gpx.import': 'GPX 경로 가져오기',
|
||||
'journey.recording.gpx.imported': '{count}일 분의 경로가 가져왔습니다.',
|
||||
'journey.recording.gpx.removeFailed': 'GPX 경로를 제거할 수 없습니다.',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed': '타임스탬프가 없는 {count} 개 트랙 포인트는 건너뜁니다.',
|
||||
'journey.share.allowComments': '게스트 댓글 허용',
|
||||
'journey.share.allowCommentsHint': '읽는 사람들은 게시된 항목에 댓글을 달 수 있습니다.',
|
||||
'journey.share.allowFollowers': '이메일 구독 허용',
|
||||
'journey.share.allowFollowersHint': '새 항목이 등록되면 읽는 사람들이 이메일을 받을 수 있습니다.',
|
||||
'journey.share.expires': '만료일',
|
||||
'journey.share.expiresNever': '만료 없음',
|
||||
'journey.share.followerRemoveFailed': '구독자를 제거할 수 없습니다.',
|
||||
'journey.share.followers': '{count} 구독자',
|
||||
'journey.share.followersPending': '{count} 대기 중인 확인',
|
||||
'journey.share.lastViewed': '{date}에 마지막으로 열람됨',
|
||||
'journey.share.needsTimeline': '게스트 댓글을 허용하려면 타임라인을 공유하세요.',
|
||||
'journey.share.passwordRemoved': '암호 제거됨',
|
||||
'journey.share.passwordRule': '최소 {minLength}자 이상 사용하세요.',
|
||||
'journey.share.passwordSaved': '암호 저장됨',
|
||||
'journey.share.passwordSet': '암호 설정',
|
||||
'journey.share.passwordText': '읽는 사람들은 이 암호를 통해 공유 링크를 열 수 있습니다.',
|
||||
'journey.share.passwordTitle': '링크 암호',
|
||||
'journey.share.removeFollower': '구독자 제거',
|
||||
'journey.share.views': '열람 횟수: {count}',
|
||||
'journey.studio.mapCoastDetail': '해안선 세부 정보',
|
||||
'journey.studio.mapCoastDetail.auto': '자동',
|
||||
'journey.studio.mapCoastDetail.detailed': '세부',
|
||||
'journey.studio.mapCoastDetail.simple': '간소화',
|
||||
'journey.studio.mapScopeCountry': '한 국가',
|
||||
'journey.studio.mapScopeDay': '하루',
|
||||
'journey.studio.mapScopeStop': '하나의 정류장',
|
||||
'journey.studio.mapScopeTrip': '하나의 여행',
|
||||
'journey.studio.mapView': '프레임',
|
||||
'journey.studio.mapViewDown': '아래로 이동',
|
||||
'journey.studio.mapViewLeft': '왼쪽으로 이동',
|
||||
'journey.studio.mapViewOwn': '직접 설정',
|
||||
'journey.studio.mapViewRight': '오른쪽으로 이동',
|
||||
'journey.studio.mapViewUp': '위로 이동',
|
||||
'journey.studio.tileDetail': '지도 타일 세부 수준',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -777,7 +777,8 @@ const journey: TranslationStrings = {
|
||||
'journey.recording.error.recording_changed': 'De opname is sinds het voorbeeld veranderd.',
|
||||
'journey.recording.error.recording_empty': 'Dawarich heeft op die dag niets opgenomen.',
|
||||
'journey.recording.gpx.error.unreadable': 'Dit bestand is geen GPX-bestand.',
|
||||
'journey.recording.gpx.error.noTimes': 'De trackpunten van dit GPX-bestand hebben geen tijden, dus de dagen zijn niet uit elkaar te houden.',
|
||||
'journey.recording.gpx.error.noTimes':
|
||||
'De trackpunten van dit GPX-bestand hebben geen tijden, dus de dagen zijn niet uit elkaar te houden.',
|
||||
'journey.recording.gpx.error.emptyDay': 'Het GPX-bestand heeft op die dag niets opgenomen.',
|
||||
'journey.recording.gpx.error.tooManyDays': 'Dit GPX-bestand beslaat te veel dagen. Splits het in kortere delen.',
|
||||
'journey.recording.gpx.error.tooLarge': 'Dit GPX-bestand is te groot.',
|
||||
@@ -942,5 +943,98 @@ const journey: TranslationStrings = {
|
||||
'journey.fromPhotos.nothingCreated': 'Geen van deze foto’s kon een bericht worden. Er is niets gemaakt.',
|
||||
'journey.fromPhotos.createFailed': 'Er zijn geen berichten gemaakt. Er is niets opgeslagen, probeer het opnieuw.',
|
||||
'journey.fromPhotos.previewFailed': 'De foto’s konden niet worden gegroepeerd. Probeer het opnieuw.',
|
||||
'journey.comments.closed': 'Opmerkingen zijn gesloten voor deze link.',
|
||||
'journey.comments.count.one': '{count} opmerking',
|
||||
'journey.comments.count': '{count} opmerkingen',
|
||||
'journey.comments.deletedUser': 'Verwijderde account',
|
||||
'journey.comments.failed': 'De opmerking kon niet worden opgeslagen. Probeer opnieuw.',
|
||||
'journey.comments.guest': 'Gast',
|
||||
'journey.comments.hidden': 'Verborgen',
|
||||
'journey.comments.hide': 'Opmerking verbergen',
|
||||
'journey.comments.invalid': 'Voer een naam en een opmerking binnen de karakterlimiet in.',
|
||||
'journey.comments.locked': 'Open de gedeelde link opnieuw om verder te gaan.',
|
||||
'journey.comments.publicHint':
|
||||
'Als gastreacties zijn ingeschakeld, kan iedereen met de openbare link reacties op gepubliceerde dagboekitems lezen.',
|
||||
'journey.comments.send': 'Opmerking sturen',
|
||||
'journey.comments.show': 'Opmerking tonen',
|
||||
'journey.comments.title': 'Opmerkingen',
|
||||
'journey.comments.write': 'Schrijf een opmerking',
|
||||
'journey.follow.closed': 'Abonnementen zijn gesloten voor deze link.',
|
||||
'journey.follow.confirmedText': 'Je krijgt nieuwe berichten van {title} per e-mail.',
|
||||
'journey.follow.confirmedTitle': 'Abonnement bevestigd',
|
||||
'journey.follow.failed': 'Het abonnement kon niet worden bijgewerkt. Probeer opnieuw.',
|
||||
'journey.follow.invalid': 'Voer een geldig e-mailadres in.',
|
||||
'journey.follow.invalidText': 'Deze bevestigings- of afmeldlink is ongeldig of verlopen.',
|
||||
'journey.follow.invalidTitle': 'Abonnementslink niet beschikbaar',
|
||||
'journey.follow.privacy': 'Je kunt je afmelden van elke update-e-mail.',
|
||||
'journey.follow.sentText': 'Als het adres kan worden geabonneerd, krijg je een e-mail met een bevestigingslink.',
|
||||
'journey.follow.sentTitle': 'Controleer je inbox',
|
||||
'journey.follow.text': 'Krijg een e-mail op dagen dat nieuwe berichten worden gepubliceerd.',
|
||||
'journey.follow.title': 'Abonneren',
|
||||
'journey.follow.unsubscribedText': 'Je ontvangt geen e-mails meer over deze reis.',
|
||||
'journey.follow.unsubscribedTitle': 'Geabonneerd is uitgeschakeld',
|
||||
'journey.fromPhotos.create.one': 'Maak {count} concept',
|
||||
'journey.fromPhotos.create': 'Maak {count} concepten',
|
||||
'journey.fromPhotos.empty': 'Er zijn geen galerijafbeeldingen met een opname tijd beschikbaar voor nieuwe entries.',
|
||||
'journey.fromPhotos.noPlace': 'Geen locatie',
|
||||
'journey.fromPhotos.photoCount.one': '{count} foto',
|
||||
'journey.fromPhotos.photoCount': "{count} foto's",
|
||||
'journey.fromPhotos.text': 'Bezoek de groepen en kies welke ontwerpen je wilt maken.',
|
||||
'journey.fromPhotos.timeRange': '{start} tot {end}',
|
||||
'journey.fromPhotos.title': "Maak dagboekitems van foto's",
|
||||
'journey.fromPhotos.withoutTime.one': '{count} foto zonder opname tijd is overgeslagen.',
|
||||
'journey.fromPhotos.withoutTime': "{count} foto's zonder opname tijd zijn overgeslagen.",
|
||||
'journey.public.expiredText': 'Vraag de eigenaar van de reis om een nieuwe link.',
|
||||
'journey.public.expiredTitle': 'Deze link is verlopen',
|
||||
'journey.public.lockedText': 'Voer het wachtwoord in dat de eigenaar met je heeft gedeeld.',
|
||||
'journey.public.lockedTitle': 'Reisdagboek beveiligd met een wachtwoord',
|
||||
'journey.public.passwordFailed': 'De link kon niet worden opengesloten. Probeer opnieuw.',
|
||||
'journey.public.passwordWrong': 'Dat wachtwoord is fout.',
|
||||
'journey.public.unlock': 'Ontgrendelen',
|
||||
'journey.recording.gpx.failed': 'De GPX route kon niet worden geïmporteerd.',
|
||||
'journey.recording.gpx.import': 'GPX route importeren',
|
||||
'journey.recording.gpx.imported.one': 'Een route is geïmporteerd voor {count} dag',
|
||||
'journey.recording.gpx.imported': 'Routes zijn geïmporteerd voor {count} dagen',
|
||||
'journey.recording.gpx.removeFailed': 'De GPX route kon niet worden verwijderd.',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed.one': '{count} trackpunt zonder tijdstempel is overgeslagen.',
|
||||
'journey.recording.gpx.untimed': '{count} track points zonder tijdstempel zijn overgeslagen.',
|
||||
'journey.share.allowComments': 'Gasten mogen commentaren plaatsen',
|
||||
'journey.share.allowCommentsHint': 'Lezers kunnen commentaren plaatsen op gepubliceerde entries.',
|
||||
'journey.share.allowFollowers': 'Email abonnementen toestaan',
|
||||
'journey.share.allowFollowersHint': 'Lezers kunnen een e-mail ontvangen bij nieuwe entries.',
|
||||
'journey.share.expires': 'Verloopt op',
|
||||
'journey.share.expiresNever': 'Geen verlooptijd',
|
||||
'journey.share.followerRemoveFailed': 'Abonnee kon niet worden verwijderd.',
|
||||
'journey.share.followers.one': '{count} abonnee',
|
||||
'journey.share.followers': '{count} abonnees',
|
||||
'journey.share.followersPending.one': '{count} in behandeling',
|
||||
'journey.share.followersPending': '{count} in behandeling',
|
||||
'journey.share.lastViewed': 'Laatst geopend {date}',
|
||||
'journey.share.needsTimeline': 'Deel de timeline om gasten commentaren te laten plaatsen.',
|
||||
'journey.share.passwordRemoved': 'Wachtwoord verwijderd',
|
||||
'journey.share.passwordRule': 'Gebruik minstens {minLength} tekens.',
|
||||
'journey.share.passwordSaved': 'Wachtwoord opgeslagen',
|
||||
'journey.share.passwordSet': 'Wachtwoord instellen',
|
||||
'journey.share.passwordText': 'Lezers zullen dit wachtwoord nodig hebben om de gedeelde link te openen.',
|
||||
'journey.share.passwordTitle': 'Link wachtwoord',
|
||||
'journey.share.removeFollower': 'Abonnee verwijderen',
|
||||
'journey.share.views.one': 'Weergaven: {count}',
|
||||
'journey.share.views': 'Weergaven: {count}',
|
||||
'journey.studio.mapCoastDetail': 'Kustlijn detail',
|
||||
'journey.studio.mapCoastDetail.auto': 'Automatisch',
|
||||
'journey.studio.mapCoastDetail.detailed': 'Gedetailleerd',
|
||||
'journey.studio.mapCoastDetail.simple': 'Vereenvoudigd',
|
||||
'journey.studio.mapScopeCountry': 'Een land',
|
||||
'journey.studio.mapScopeDay': 'Een dag',
|
||||
'journey.studio.mapScopeStop': 'Een stop',
|
||||
'journey.studio.mapScopeTrip': 'Een trip',
|
||||
'journey.studio.mapView': 'Beeldin',
|
||||
'journey.studio.mapViewDown': 'Onderuit',
|
||||
'journey.studio.mapViewLeft': 'Linksaf',
|
||||
'journey.studio.mapViewOwn': 'Aangepast',
|
||||
'journey.studio.mapViewRight': 'Rechtsaf',
|
||||
'journey.studio.mapViewUp': 'Bovenaf',
|
||||
'journey.studio.tileDetail': 'Detailniveau kaarttegels',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -805,7 +805,8 @@ const journey: TranslationStrings = {
|
||||
'journey.recording.error.recording_changed': 'Nagranie zmieniło się od podglądu.',
|
||||
'journey.recording.error.recording_empty': 'Dawarich nic nie zarejestrował tego dnia.',
|
||||
'journey.recording.gpx.error.unreadable': 'Ten plik nie jest plikiem GPX.',
|
||||
'journey.recording.gpx.error.noTimes': 'Punkty śladu w tym pliku GPX nie mają czasu, więc nie da się rozróżnić jego dni.',
|
||||
'journey.recording.gpx.error.noTimes':
|
||||
'Punkty śladu w tym pliku GPX nie mają czasu, więc nie da się rozróżnić jego dni.',
|
||||
'journey.recording.gpx.error.emptyDay': 'Plik GPX nic nie zarejestrował tego dnia.',
|
||||
'journey.recording.gpx.error.tooManyDays': 'Ten plik GPX obejmuje zbyt wiele dni. Podziel go na krótsze części.',
|
||||
'journey.recording.gpx.error.tooLarge': 'Ten plik GPX jest za duży.',
|
||||
@@ -985,5 +986,116 @@ const journey: TranslationStrings = {
|
||||
'journey.fromPhotos.nothingCreated': 'Z żadnego z tych zdjęć nie mógł powstać wpis. Nic nie utworzono.',
|
||||
'journey.fromPhotos.createFailed': 'Nie utworzono żadnych wpisów. Nic nie zapisano, spróbuj ponownie.',
|
||||
'journey.fromPhotos.previewFailed': 'Nie udało się pogrupować zdjęć. Spróbuj ponownie.',
|
||||
'journey.comments.closed': 'Komentarze są zamknięte dla tego linku.',
|
||||
'journey.comments.count.many': '{count} komentarzy',
|
||||
'journey.comments.count.one': '{count} komentarz',
|
||||
'journey.comments.count.few': '{count} komentarze',
|
||||
'journey.comments.count': '{count} komentarze',
|
||||
'journey.comments.deletedUser': 'Usunięte konto',
|
||||
'journey.comments.failed': 'Nie można zapisać komentarza. Spróbuj ponownie.',
|
||||
'journey.comments.guest': 'Gość',
|
||||
'journey.comments.hidden': 'Ukryte',
|
||||
'journey.comments.hide': 'Ukryj komentarz',
|
||||
'journey.comments.invalid': 'Wprowadź nazwę i komentarz w granicach znaków.',
|
||||
'journey.comments.locked': 'Otwórz ponownie udostępniony link, aby kontynuować.',
|
||||
'journey.comments.publicHint':
|
||||
'Jeśli komentarze gości są włączone, osoby z publicznym linkiem mogą czytać komentarze pod opublikowanymi wpisami.',
|
||||
'journey.comments.send': 'Wyślij komentarz',
|
||||
'journey.comments.show': 'Pokaż komentarz',
|
||||
'journey.comments.title': 'Komentarze',
|
||||
'journey.comments.write': 'Napisz komentarz',
|
||||
'journey.follow.closed': 'Subskrypcje są zamknięte dla tego linku.',
|
||||
'journey.follow.confirmedText': 'Otrzymasz nowe wpisy z {title} na pocztek.',
|
||||
'journey.follow.confirmedTitle': 'Potwierdzenie subskrypcji',
|
||||
'journey.follow.failed': 'Nie można zaktualizować subskrypcji. Spróbuj ponownie.',
|
||||
'journey.follow.invalid': 'Wprowadź poprawny adres e-mail.',
|
||||
'journey.follow.invalidText': 'Link do potwierdzenia lub anulowania subskrypcji jest nieprawidłowy albo wygasł.',
|
||||
'journey.follow.invalidTitle': 'Link do subskrypcji niedostępny',
|
||||
'journey.follow.privacy': 'Możesz się odsubskrybować z dowolnego e-maila z aktualizacjami.',
|
||||
'journey.follow.sentText': 'Jeśli adres można subskrybować, otrzymasz e-mail z linkiem potwierdzającym.',
|
||||
'journey.follow.sentTitle': 'Sprawdź swoją skrzynkę nadgodzinową',
|
||||
'journey.follow.text': 'Otrzymuj e-mail w dniach, gdy nowe wpisy zostaną opublikowane.',
|
||||
'journey.follow.title': 'Subskrybuj',
|
||||
'journey.follow.unsubscribedText': 'Nie otrzymasz już e-maili dotyczących tej podróży.',
|
||||
'journey.follow.unsubscribedTitle': 'Odblokowano',
|
||||
'journey.fromPhotos.create.many': 'Utwórz {count} wersje robocze',
|
||||
'journey.fromPhotos.create.one': 'Utwórz {count} wersję roboczą',
|
||||
'journey.fromPhotos.create.few': 'Utwórz {count} wersje robocze',
|
||||
'journey.fromPhotos.create': 'Utwórz {count} wersje robocze',
|
||||
'journey.fromPhotos.empty': 'Brak zdjęć z galerii z czasem zapisu dostępnych do nowych wpisów.',
|
||||
'journey.fromPhotos.noPlace': 'Brak lokalizacji',
|
||||
'journey.fromPhotos.photoCount.many': '{count} zdjęć',
|
||||
'journey.fromPhotos.photoCount.one': '{count} zdjęcie',
|
||||
'journey.fromPhotos.photoCount.few': '{count} zdjęć',
|
||||
'journey.fromPhotos.photoCount': '{count} zdjęć',
|
||||
'journey.fromPhotos.text': 'Przejrzyj grupy i wybierz, które wersje robocze chcesz utworzyć.',
|
||||
'journey.fromPhotos.timeRange': '{start} do {end}',
|
||||
'journey.fromPhotos.title': 'Utwórz wpisy ze zdjęć',
|
||||
'journey.fromPhotos.withoutTime.many': '{count} zdjęć bez czasu zapisu zostały pominięte.',
|
||||
'journey.fromPhotos.withoutTime.one': '{count} zdjęcie bez czasu zapisu zostało pominięte.',
|
||||
'journey.fromPhotos.withoutTime.few': '{count} zdjęć bez czasu zapisu zostały pominięte.',
|
||||
'journey.fromPhotos.withoutTime': '{count} zdjęć bez czasu zapisu zostały pominięte.',
|
||||
'journey.public.expiredText': 'Poproś właściciela podróży o nowy link.',
|
||||
'journey.public.expiredTitle': 'Ten link wygasł',
|
||||
'journey.public.lockedText': 'Wprowadź hasło, które właściciel podzielił z Tobią.',
|
||||
'journey.public.lockedTitle': 'Dziennik podróży chroniony hasłem',
|
||||
'journey.public.passwordFailed': 'Nie udało się odblokować linku. Spróbuj ponownie.',
|
||||
'journey.public.passwordWrong': 'To hasło jest niepoprawne.',
|
||||
'journey.public.unlock': 'Odblokuj',
|
||||
'journey.recording.gpx.failed': 'Nie można zaimportować trasy GPX.',
|
||||
'journey.recording.gpx.import': 'Zaimportuj trasę GPX',
|
||||
'journey.recording.gpx.imported.many': 'Zaimportowano trasy dla {count} dni',
|
||||
'journey.recording.gpx.imported.one': 'Zaimportowano trasę dla {count} dnia',
|
||||
'journey.recording.gpx.imported.few': 'Zaimportowano trasy dla {count} dni',
|
||||
'journey.recording.gpx.imported': 'Zaimportowano trasy dla {count} dni',
|
||||
'journey.recording.gpx.removeFailed': 'Nie można usunąć trasy GPX.',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed.many': 'Pominięto {count} punktów śledzenia bez czasu.',
|
||||
'journey.recording.gpx.untimed.one': 'Pominięto {count} punkt śledzenia bez czasu.',
|
||||
'journey.recording.gpx.untimed.few': 'Pominięto {count} punktów śledzenia bez czasu.',
|
||||
'journey.recording.gpx.untimed': 'Pominięto {count} punktów śledzenia bez czasu.',
|
||||
'journey.share.allowComments': 'Pozwól na komentarze od gości',
|
||||
'journey.share.allowCommentsHint': 'Czytelnicy mogą komentować opublikowane wpisy.',
|
||||
'journey.share.allowFollowers': 'Pozwól na subskrypcje e-mail',
|
||||
'journey.share.allowFollowersHint': 'Czytelnicy mogą otrzymywać e-mail w przypadku nowych wpisów.',
|
||||
'journey.share.expires': 'Wygasa dnia',
|
||||
'journey.share.expiresNever': 'Brak daty wygaśnięcia',
|
||||
'journey.share.followerRemoveFailed': 'Nie można usunąć subskrybenta.',
|
||||
'journey.share.followers.many': '{count} subskrybentów',
|
||||
'journey.share.followers.one': '{count} subskrybenta',
|
||||
'journey.share.followers.few': '{count} subskrybentów',
|
||||
'journey.share.followers': '{count} subskrybentów',
|
||||
'journey.share.followersPending.many': '{count} oczekujących potwierdzeń',
|
||||
'journey.share.followersPending.one': '{count} oczekujące potwierdzenie',
|
||||
'journey.share.followersPending.few': '{count} oczekujące potwierdzenia',
|
||||
'journey.share.followersPending': '{count} oczekujących potwierdzeń',
|
||||
'journey.share.lastViewed': 'Ostatnio otwarte {date}',
|
||||
'journey.share.needsTimeline': 'Udostępnij czasownik, aby pozwolić komentarze odwiedzającym.',
|
||||
'journey.share.passwordRemoved': 'Hasło usunięte',
|
||||
'journey.share.passwordRule': 'Użyj co najmniej {minLength} znaków.',
|
||||
'journey.share.passwordSaved': 'Hasło zapisane',
|
||||
'journey.share.passwordSet': 'Ustaw hasło',
|
||||
'journey.share.passwordText': 'Czytelnicy będą potrzebować tego hasła, aby otworzyć udostępniony link.',
|
||||
'journey.share.passwordTitle': 'Hasło do linku',
|
||||
'journey.share.removeFollower': 'Usuń subskrybenta',
|
||||
'journey.share.views.many': 'Wyświetlenia: {count}',
|
||||
'journey.share.views.one': 'Wyświetlenia: {count}',
|
||||
'journey.share.views.few': 'Wyświetlenia: {count}',
|
||||
'journey.share.views': 'Wyświetlenia: {count}',
|
||||
'journey.studio.mapCoastDetail': 'Szczegóły wybrzeża',
|
||||
'journey.studio.mapCoastDetail.auto': 'Automatyczne',
|
||||
'journey.studio.mapCoastDetail.detailed': 'Szczegółowe',
|
||||
'journey.studio.mapCoastDetail.simple': 'Uproszczone',
|
||||
'journey.studio.mapScopeCountry': 'Jedno państwo',
|
||||
'journey.studio.mapScopeDay': 'Jednego dnia',
|
||||
'journey.studio.mapScopeStop': 'Jednego punktu zatrzymania',
|
||||
'journey.studio.mapScopeTrip': 'Jednej wycieczki',
|
||||
'journey.studio.mapView': 'Przygotowanie mapy',
|
||||
'journey.studio.mapViewDown': 'Przesuń w dół',
|
||||
'journey.studio.mapViewLeft': 'Przesuń w lewo',
|
||||
'journey.studio.mapViewOwn': 'Własny',
|
||||
'journey.studio.mapViewRight': 'Przesuń w prawo',
|
||||
'journey.studio.mapViewUp': 'W górę',
|
||||
'journey.studio.tileDetail': 'Szczegółowość kafelków',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -806,9 +806,11 @@ const journey: TranslationStrings = {
|
||||
'journey.recording.error.recording_changed': 'Запись изменилась после предпросмотра.',
|
||||
'journey.recording.error.recording_empty': 'Dawarich ничего не записал в этот день.',
|
||||
'journey.recording.gpx.error.unreadable': 'Этот файл не является файлом GPX.',
|
||||
'journey.recording.gpx.error.noTimes': 'У точек трека в этом файле GPX нет времени, поэтому его дни нельзя различить.',
|
||||
'journey.recording.gpx.error.noTimes':
|
||||
'У точек трека в этом файле GPX нет времени, поэтому его дни нельзя различить.',
|
||||
'journey.recording.gpx.error.emptyDay': 'Файл GPX ничего не записал в этот день.',
|
||||
'journey.recording.gpx.error.tooManyDays': 'Этот файл GPX охватывает слишком много дней. Разделите его на части покороче.',
|
||||
'journey.recording.gpx.error.tooManyDays':
|
||||
'Этот файл GPX охватывает слишком много дней. Разделите его на части покороче.',
|
||||
'journey.recording.gpx.error.tooLarge': 'Этот файл GPX слишком большой.',
|
||||
'journey.recording.mode.walking': 'Пешком',
|
||||
'journey.recording.mode.running': 'Бег',
|
||||
@@ -985,5 +987,116 @@ const journey: TranslationStrings = {
|
||||
'journey.fromPhotos.nothingCreated': 'Ни одно из этих фото не стало записью. Ничего не создано.',
|
||||
'journey.fromPhotos.createFailed': 'Записи не созданы. Ничего не сохранено, попробуйте ещё раз.',
|
||||
'journey.fromPhotos.previewFailed': 'Не удалось сгруппировать фото. Попробуйте ещё раз.',
|
||||
'journey.comments.closed': 'Комментарии закрыты для этой ссылки.',
|
||||
'journey.comments.count.many': '{count} комментариев',
|
||||
'journey.comments.count.one': '{count} комментарий',
|
||||
'journey.comments.count.few': '{count} комментария',
|
||||
'journey.comments.count': '{count} комментариев',
|
||||
'journey.comments.deletedUser': 'Удаленный аккаунт',
|
||||
'journey.comments.failed': 'Не удалось сохранить комментарий. Попробуйте снова.',
|
||||
'journey.comments.guest': 'Гость',
|
||||
'journey.comments.hidden': 'Скрыто',
|
||||
'journey.comments.hide': 'Скрыть комментарий',
|
||||
'journey.comments.invalid': 'Введите имя и комментарий в пределах количества символов.',
|
||||
'journey.comments.locked': 'Откройте общую ссылку снова, чтобы продолжить.',
|
||||
'journey.comments.publicHint':
|
||||
'Если гостевые комментарии включены, люди с публичной ссылкой могут читать комментарии к опубликованным записям.',
|
||||
'journey.comments.send': 'Отправить комментарий',
|
||||
'journey.comments.show': 'Показать комментарий',
|
||||
'journey.comments.title': 'Комментарии',
|
||||
'journey.comments.write': 'Написать комментарий',
|
||||
'journey.follow.closed': 'Подписки закрыты для этой ссылки.',
|
||||
'journey.follow.confirmedText': 'Вы будете получать новые посты от {title} по электронной почте.',
|
||||
'journey.follow.confirmedTitle': 'Подписка подтверждена',
|
||||
'journey.follow.failed': 'Не удалось обновить подписку. Попробуйте снова.',
|
||||
'journey.follow.invalid': 'Введите действительный адрес электронной почты.',
|
||||
'journey.follow.invalidText': 'Ссылка для подтверждения или отмены подписки недействительна или устарела.',
|
||||
'journey.follow.invalidTitle': 'Ссылка на подписку недоступна',
|
||||
'journey.follow.privacy': 'Вы можете отписаться от любых электронных писем об обновлениях.',
|
||||
'journey.follow.sentText': 'Если адрес можно подписаться, вы получите электронное письмо с ссылкой на подтверждение.',
|
||||
'journey.follow.sentTitle': 'Проверьте ваш почтовый ящик',
|
||||
'journey.follow.text': 'Получайте email в дни, когда новые записи публикуются.',
|
||||
'journey.follow.title': 'Подписаться',
|
||||
'journey.follow.unsubscribedText': 'Вы больше не будете получать email о этом путешествии.',
|
||||
'journey.follow.unsubscribedTitle': 'Отписан',
|
||||
'journey.fromPhotos.create.many': 'Создать {count} черновиков',
|
||||
'journey.fromPhotos.create.one': 'Создать {count} черновик',
|
||||
'journey.fromPhotos.create.few': 'Создать {count} черновика',
|
||||
'journey.fromPhotos.create': 'Создать {count} черновиков',
|
||||
'journey.fromPhotos.empty': 'Нет фотографий галереи с временем съёмки, доступных для новых записей.',
|
||||
'journey.fromPhotos.noPlace': 'Нет местоположения',
|
||||
'journey.fromPhotos.photoCount.many': '{count} фотографий',
|
||||
'journey.fromPhotos.photoCount.one': '{count} фотография',
|
||||
'journey.fromPhotos.photoCount.few': '{count} фотографии',
|
||||
'journey.fromPhotos.photoCount': '{count} фотографий',
|
||||
'journey.fromPhotos.text': 'Просмотрите группы и выберите, какие черновики создать.',
|
||||
'journey.fromPhotos.timeRange': '{start} до {end}',
|
||||
'journey.fromPhotos.title': 'Создать записи из фотографий',
|
||||
'journey.fromPhotos.withoutTime.many': '{count} фотографий без времени съёмки были пропущены.',
|
||||
'journey.fromPhotos.withoutTime.one': '{count} фотография без времени съёмки была пропущена.',
|
||||
'journey.fromPhotos.withoutTime.few': '{count} фотографии без времени съёмки были пропущены.',
|
||||
'journey.fromPhotos.withoutTime': '{count} фотографии без времени съёмки были пропущены.',
|
||||
'journey.public.expiredText': 'Задайте владельцу путешествия новый ссылку.',
|
||||
'journey.public.expiredTitle': 'Ссылка просрочена',
|
||||
'journey.public.lockedText': 'Введите пароль, который владелец поделился с вами.',
|
||||
'journey.public.lockedTitle': 'Дневник путешествия защищён паролем',
|
||||
'journey.public.passwordFailed': 'Не удалось разблокировать ссылку. Попробуйте снова.',
|
||||
'journey.public.passwordWrong': 'Этот пароль неверный.',
|
||||
'journey.public.unlock': 'Разблокировать',
|
||||
'journey.recording.gpx.failed': 'Не удалось импортировать маршрут GPX.',
|
||||
'journey.recording.gpx.import': 'Импортировать маршрут GPX',
|
||||
'journey.recording.gpx.imported.many': 'Импортировано маршрутов для {count} дней',
|
||||
'journey.recording.gpx.imported.one': 'Импортирован маршрут для {count} дня',
|
||||
'journey.recording.gpx.imported.few': 'Импортировано маршрутов для {count} дней',
|
||||
'journey.recording.gpx.imported': 'Импортировано маршрутов для {count} дней',
|
||||
'journey.recording.gpx.removeFailed': 'Не удалось удалить маршрут GPX.',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed.many': 'Пропущено {count} точек трека без временной метки.',
|
||||
'journey.recording.gpx.untimed.one': 'Пропущена {count} точка трека без временной метки.',
|
||||
'journey.recording.gpx.untimed.few': 'Пропущено {count} точки трека без временной метки.',
|
||||
'journey.recording.gpx.untimed': 'Пропущено {count} точек трека без временной метки.',
|
||||
'journey.share.allowComments': 'Разрешить комментарии гостям',
|
||||
'journey.share.allowCommentsHint': 'Читатели могут комментировать опубликованные записи.',
|
||||
'journey.share.allowFollowers': 'Разрешить email-подписки',
|
||||
'journey.share.allowFollowersHint': 'Читатели могут получать email при появлении новых записей.',
|
||||
'journey.share.expires': 'Истекает на',
|
||||
'journey.share.expiresNever': 'Нет срока действия',
|
||||
'journey.share.followerRemoveFailed': 'Не удалось удалить подписчика.',
|
||||
'journey.share.followers.many': '{count} подписчиков',
|
||||
'journey.share.followers.one': '{count} подписчик',
|
||||
'journey.share.followers.few': '{count} подписчика',
|
||||
'journey.share.followers': '{count} подписчиков',
|
||||
'journey.share.followersPending.many': '{count} ожидающих подтверждений',
|
||||
'journey.share.followersPending.one': '{count} ожидающего подтверждения',
|
||||
'journey.share.followersPending.few': '{count} ожидающих подтверждений',
|
||||
'journey.share.followersPending': '{count} ожидающих подтверждений',
|
||||
'journey.share.lastViewed': 'Последний раз открыт {date}',
|
||||
'journey.share.needsTimeline': 'Поделитесь таймлайном, чтобы гости могли оставлять комментарии.',
|
||||
'journey.share.passwordRemoved': 'Пароль удалён',
|
||||
'journey.share.passwordRule': 'Используйте минимум {minLength} символов.',
|
||||
'journey.share.passwordSaved': 'Пароль сохранён',
|
||||
'journey.share.passwordSet': 'Установить пароль',
|
||||
'journey.share.passwordText': 'Читателям понадобится этот пароль, чтобы открыть общий ссылку.',
|
||||
'journey.share.passwordTitle': 'Пароль ссылки',
|
||||
'journey.share.removeFollower': 'Удалить подписчика',
|
||||
'journey.share.views.many': 'Открытий: {count}',
|
||||
'journey.share.views.one': 'Открытий: {count}',
|
||||
'journey.share.views.few': 'Открытий: {count}',
|
||||
'journey.share.views': 'Открытий: {count}',
|
||||
'journey.studio.mapCoastDetail': 'Подробности побережья',
|
||||
'journey.studio.mapCoastDetail.auto': 'Автоматически',
|
||||
'journey.studio.mapCoastDetail.detailed': 'Подробно',
|
||||
'journey.studio.mapCoastDetail.simple': 'Упрощённо',
|
||||
'journey.studio.mapScopeCountry': 'Одна страна',
|
||||
'journey.studio.mapScopeDay': 'Один день',
|
||||
'journey.studio.mapScopeStop': 'Один остановочный пункт',
|
||||
'journey.studio.mapScopeTrip': 'Одна поездка',
|
||||
'journey.studio.mapView': 'Настройка',
|
||||
'journey.studio.mapViewDown': 'Сдвинуть вниз',
|
||||
'journey.studio.mapViewLeft': 'Сдвинуть влево',
|
||||
'journey.studio.mapViewOwn': 'Свой',
|
||||
'journey.studio.mapViewRight': 'Сдвинуть вправо',
|
||||
'journey.studio.mapViewUp': 'Вверх',
|
||||
'journey.studio.tileDetail': 'Детализация тайлов',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -956,5 +956,107 @@ const journey: TranslationStrings = {
|
||||
'journey.fromPhotos.nothingCreated': 'Zo žiadnej z týchto fotiek nemohol vzniknúť záznam. Nič nebolo vytvorené.',
|
||||
'journey.fromPhotos.createFailed': 'Neboli vytvorené žiadne záznamy. Nič sa neuložilo, skúste to znova.',
|
||||
'journey.fromPhotos.previewFailed': 'Fotky sa nepodarilo zoskupiť. Skúste to znova.',
|
||||
'journey.comments.closed': 'Komentáre sú uzavreté pre túto zásadu.',
|
||||
'journey.comments.count.one': '{count} komentár',
|
||||
'journey.comments.count.few': '{count} komentáre',
|
||||
'journey.comments.count': '{count} komentáre',
|
||||
'journey.comments.deletedUser': 'Odstránené účty',
|
||||
'journey.comments.failed': 'Nepodarilo sa uložiť komentár. Skúste znovu.',
|
||||
'journey.comments.guest': 'Host',
|
||||
'journey.comments.hidden': 'Skryté',
|
||||
'journey.comments.hide': 'Skryť komentár',
|
||||
'journey.comments.invalid': 'Zadajte meno a komentár do povoleného počtu znakov.',
|
||||
'journey.comments.locked': 'Otvorte zásadu pre pokračovanie.',
|
||||
'journey.comments.publicHint':
|
||||
'Ak sú komentáre hostí povolené, ľudia s verejným odkazom môžu čítať komentáre k zverejneným záznamom.',
|
||||
'journey.comments.send': 'Odoslať komentár',
|
||||
'journey.comments.show': 'Zobraziť komentár',
|
||||
'journey.comments.title': 'Komentáre',
|
||||
'journey.comments.write': 'Napísať komentár',
|
||||
'journey.follow.closed': 'Prenášanie je zatvorené pre tento odkaz.',
|
||||
'journey.follow.confirmedText': 'Dostanete nové príspevky od {title} poštom.',
|
||||
'journey.follow.confirmedTitle': 'Potvrdenie prenotovania',
|
||||
'journey.follow.failed': 'Nepodarilo sa aktualizovať prenotovanie. Skúste znovu.',
|
||||
'journey.follow.invalid': 'Zadajte platnú e-mailovú adresu.',
|
||||
'journey.follow.invalidText': 'Odkaz na potvrdenie alebo odhlásenie je neplatný alebo vypršal.',
|
||||
'journey.follow.invalidTitle': 'Prenosový odkaz nedostupný',
|
||||
'journey.follow.privacy': 'Zásady súčasnej súkromnosti',
|
||||
'journey.follow.sentText': 'Ak sa adresa dá preniesť, dostanete e-mail s potvrdením odkazu.',
|
||||
'journey.follow.sentTitle': 'Ak je adresa prijateľná, dostanete e-mail s potvrdením odkazu.',
|
||||
'journey.follow.text': 'Skontrolujte svoj poštový schránku',
|
||||
'journey.follow.title': 'Prihlásiť sa',
|
||||
'journey.follow.unsubscribedText': 'Už nebudete dostávať e-maily ohľadom tohto cestovania.',
|
||||
'journey.follow.unsubscribedTitle': 'Odhlásené',
|
||||
'journey.fromPhotos.create.one': 'Vytvoriť {count} návrh',
|
||||
'journey.fromPhotos.create.few': 'Vytvoriť {count} návrhy',
|
||||
'journey.fromPhotos.create': 'Vytvoriť {count} návrhy',
|
||||
'journey.fromPhotos.empty': 'Nie sú dostupné fotky galérie s časom zaznamenania pre nové príspevky.',
|
||||
'journey.fromPhotos.noPlace': 'Žiadna lokalita',
|
||||
'journey.fromPhotos.photoCount.one': '{count} foto',
|
||||
'journey.fromPhotos.photoCount.few': '{count} fotky',
|
||||
'journey.fromPhotos.photoCount': '{count} fotky',
|
||||
'journey.fromPhotos.text': 'Prezrite skupiny a zvoľte, ktoré návrhy vytvoriť.',
|
||||
'journey.fromPhotos.timeRange': '{start} do {end}',
|
||||
'journey.fromPhotos.title': 'Vytvoriť záznamy z fotografií',
|
||||
'journey.fromPhotos.withoutTime.one': '{count} foto bez času zaznamenania bolo preskočené.',
|
||||
'journey.fromPhotos.withoutTime.few': '{count} fotky bez času zaznamenania boli preskočené.',
|
||||
'journey.fromPhotos.withoutTime': '{count} fotky bez času zaznamenania boli preskočené.',
|
||||
'journey.public.expiredText': 'Požiadajte vlastníka cesty o nový odkaz.',
|
||||
'journey.public.expiredTitle': 'Tento odkaz je vypršal',
|
||||
'journey.public.lockedText': 'Zadajte heslo, ktoré vlastník zdieľal so vami.',
|
||||
'journey.public.lockedTitle': 'Cesta chránená heslom',
|
||||
'journey.public.passwordFailed': 'Nepodarilo sa odklúčiť odkaz. Skúste znova.',
|
||||
'journey.public.passwordWrong': 'To heslo je nesprávne.',
|
||||
'journey.public.unlock': 'Odzamknúť',
|
||||
'journey.recording.gpx.failed': 'Nemohol sa importovať trasovací súbor GPX.',
|
||||
'journey.recording.gpx.import': 'Importovať trasovací súbor GPX',
|
||||
'journey.recording.gpx.imported.one': 'Importovaná trasa pre {count} deň',
|
||||
'journey.recording.gpx.imported.few': 'Importované trasy pre {count} dni',
|
||||
'journey.recording.gpx.imported': 'Importované trasy pre {count} dni',
|
||||
'journey.recording.gpx.removeFailed': 'Nemožno odstrániť trasu GPX.',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed.one': 'Preskočená {count} bod trasy bez časového razu.',
|
||||
'journey.recording.gpx.untimed.few': 'Preskočené {count} bodov trasy bez časového razu.',
|
||||
'journey.recording.gpx.untimed': 'Preskočené {count} bodov trasy bez časového razu.',
|
||||
'journey.share.allowComments': 'Umožniť komentáre pre návštevníkov',
|
||||
'journey.share.allowCommentsHint': 'Návštevníci môžu komentovať publikované príspevky.',
|
||||
'journey.share.allowFollowers': 'Umožniť emailové prihlásenie',
|
||||
'journey.share.allowFollowersHint': 'Návštevníci môžu dostávať email, keď sa objavia nové príspevky.',
|
||||
'journey.share.expires': 'Skončí na',
|
||||
'journey.share.expiresNever': 'Žiadna platnosť',
|
||||
'journey.share.followerRemoveFailed': 'Nemožno odstrániť prihláseného čitateľa.',
|
||||
'journey.share.followers.one': '{count} prihlásený čitateľ',
|
||||
'journey.share.followers.few': '{count} prihlásených čitateľov',
|
||||
'journey.share.followers': '{count} prihlásených čitateľov',
|
||||
'journey.share.followersPending.one': '{count} čakajúce potvrdenie',
|
||||
'journey.share.followersPending.few': '{count} čakajúcich potvrdení',
|
||||
'journey.share.followersPending': '{count} čakajúcich potvrdení',
|
||||
'journey.share.lastViewed': 'Posledný návštev {date}',
|
||||
'journey.share.needsTimeline': 'Zdieľaj časový rámec, aby boli možné komentovať príspevky.',
|
||||
'journey.share.passwordRemoved': 'Heslo odstránené',
|
||||
'journey.share.passwordRule': 'Použi aspoň {minLength} znakov.',
|
||||
'journey.share.passwordSaved': 'Heslo uložené',
|
||||
'journey.share.passwordSet': 'Nastaviť heslo',
|
||||
'journey.share.passwordText': 'Návštevníci budú potrebovať toto heslo na otvorenie zdieľaného odkazu.',
|
||||
'journey.share.passwordTitle': 'Heslo pre linku',
|
||||
'journey.share.removeFollower': 'Odstrániť prihláseného používateľa',
|
||||
'journey.share.views.one': 'Počet otvorení: {count}',
|
||||
'journey.share.views.few': 'Počet otvorení: {count}',
|
||||
'journey.share.views': 'Počet otvorení: {count}',
|
||||
'journey.studio.mapCoastDetail': 'Detail pobrežia',
|
||||
'journey.studio.mapCoastDetail.auto': 'Automatický',
|
||||
'journey.studio.mapCoastDetail.detailed': 'Podrobný',
|
||||
'journey.studio.mapCoastDetail.simple': 'Zjednodušený',
|
||||
'journey.studio.mapScopeCountry': 'Jedna krajina',
|
||||
'journey.studio.mapScopeDay': 'Jedna deň',
|
||||
'journey.studio.mapScopeStop': 'Jedna zastávka',
|
||||
'journey.studio.mapScopeTrip': 'Jedna cesta',
|
||||
'journey.studio.mapView': 'Rám',
|
||||
'journey.studio.mapViewDown': 'Presuň vpravo',
|
||||
'journey.studio.mapViewLeft': 'Presuň vľavo',
|
||||
'journey.studio.mapViewOwn': 'Vlastný',
|
||||
'journey.studio.mapViewRight': 'Presuň vpravo',
|
||||
'journey.studio.mapViewUp': 'Presuň nadol',
|
||||
'journey.studio.tileDetail': 'Detail mapových dlaždíc',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -770,9 +770,11 @@ const journey: TranslationStrings = {
|
||||
'journey.recording.error.recording_changed': 'Inspelningen har ändrats sedan förhandsvisningen.',
|
||||
'journey.recording.error.recording_empty': 'Dawarich spelade inte in något den dagen.',
|
||||
'journey.recording.gpx.error.unreadable': 'Den här filen är ingen GPX-fil.',
|
||||
'journey.recording.gpx.error.noTimes': 'Spårpunkterna i den här GPX-filen saknar tider, så dess dagar går inte att skilja åt.',
|
||||
'journey.recording.gpx.error.noTimes':
|
||||
'Spårpunkterna i den här GPX-filen saknar tider, så dess dagar går inte att skilja åt.',
|
||||
'journey.recording.gpx.error.emptyDay': 'GPX-filen spelade inte in något den dagen.',
|
||||
'journey.recording.gpx.error.tooManyDays': 'Den här GPX-filen omfattar för många dagar. Dela upp den i kortare delar.',
|
||||
'journey.recording.gpx.error.tooManyDays':
|
||||
'Den här GPX-filen omfattar för många dagar. Dela upp den i kortare delar.',
|
||||
'journey.recording.gpx.error.tooLarge': 'Den här GPX-filen är för stor.',
|
||||
'journey.recording.mode.walking': 'Till fots',
|
||||
'journey.recording.mode.running': 'Löpning',
|
||||
@@ -931,5 +933,98 @@ const journey: TranslationStrings = {
|
||||
'journey.fromPhotos.nothingCreated': 'Inget av dessa foton kunde bli ett inlägg. Inget skapades.',
|
||||
'journey.fromPhotos.createFailed': 'Inga inlägg skapades. Inget sparades, försök igen.',
|
||||
'journey.fromPhotos.previewFailed': 'Fotona kunde inte grupperas. Försök igen.',
|
||||
'journey.comments.closed': 'Kommentarer är stängda för denna länk.',
|
||||
'journey.comments.count.one': '{count} kommentar',
|
||||
'journey.comments.count': '{count} kommentarer',
|
||||
'journey.comments.deletedUser': 'Raderad konto',
|
||||
'journey.comments.failed': 'Kunde inte spara kommentaren. Försök igen.',
|
||||
'journey.comments.guest': 'Gäst',
|
||||
'journey.comments.hidden': 'Dold',
|
||||
'journey.comments.hide': 'Dölj kommentar',
|
||||
'journey.comments.invalid': 'Ange ett namn och en kommentar inom karaktärsläget.',
|
||||
'journey.comments.locked': 'Öppna den delade länken igen för att fortsätta.',
|
||||
'journey.comments.publicHint':
|
||||
'När gästkommentarer är aktiverade kan den som har den offentliga länken läsa kommentarer på publicerade inlägg.',
|
||||
'journey.comments.send': 'Skicka kommentar',
|
||||
'journey.comments.show': 'Visa kommentar',
|
||||
'journey.comments.title': 'Kommentarer',
|
||||
'journey.comments.write': 'Skriv en kommentar',
|
||||
'journey.follow.closed': 'Prenumerationer är stängda för denna länk.',
|
||||
'journey.follow.confirmedText': 'Du kommer att få nya inlägg från {title} per e-post.',
|
||||
'journey.follow.confirmedTitle': 'Prenumeration bekräftad',
|
||||
'journey.follow.failed': 'Kunde inte uppdatera prenumerationen. Försök igen.',
|
||||
'journey.follow.invalid': 'Ange en giltig e-postadress.',
|
||||
'journey.follow.invalidText': 'Länken för att bekräfta eller avsluta prenumerationen är ogiltig eller har gått ut.',
|
||||
'journey.follow.invalidTitle': 'Prenumerationslänk tillgänglig',
|
||||
'journey.follow.privacy': 'Du kan avsluta prenumerationen på alla uppdateringsmeddelanden.',
|
||||
'journey.follow.sentText': 'Om adressen kan prenumereras, får du en e-post med en bekräftelinks.',
|
||||
'journey.follow.sentTitle': 'Kontrollera din inbox',
|
||||
'journey.follow.text': 'Mottag ett e-postmeddelande varje dag när nya inlägg publiceras.',
|
||||
'journey.follow.title': 'Prenumerera',
|
||||
'journey.follow.unsubscribedText': 'Du får inte längre mejl om denna resa.',
|
||||
'journey.follow.unsubscribedTitle': 'Avsluta prenumeration',
|
||||
'journey.fromPhotos.create.one': 'Skapa {count} utkast',
|
||||
'journey.fromPhotos.create': 'Skapa {count} utkast',
|
||||
'journey.fromPhotos.empty': 'Det finns inga galleribilder med ett taggat datum tillgängliga för nya inlägg.',
|
||||
'journey.fromPhotos.noPlace': 'Inget platsnamn',
|
||||
'journey.fromPhotos.photoCount.one': '{count} bild',
|
||||
'journey.fromPhotos.photoCount': '{count} bilder',
|
||||
'journey.fromPhotos.text': 'Granska grupperna och välj vilka utkast du vill skapa.',
|
||||
'journey.fromPhotos.timeRange': '{start} till {end}',
|
||||
'journey.fromPhotos.title': 'Skapa inlägg från bilder',
|
||||
'journey.fromPhotos.withoutTime.one': '{count} bild utan taggat datum hoppades över.',
|
||||
'journey.fromPhotos.withoutTime': '{count} bilder utan taggat datum hoppades över.',
|
||||
'journey.public.expiredText': 'Fråga ägaren till resan om en ny länk.',
|
||||
'journey.public.expiredTitle': 'Denna länk har gått ut',
|
||||
'journey.public.lockedText': 'Ange lösenordet som ägaren delade med dig.',
|
||||
'journey.public.lockedTitle': 'Lösenordsskyddad resedagbok',
|
||||
'journey.public.passwordFailed': 'Kunde inte låsa upp länken. Försök igen.',
|
||||
'journey.public.passwordWrong': 'Det lösenordet är felaktigt.',
|
||||
'journey.public.unlock': 'Lås upp',
|
||||
'journey.recording.gpx.failed': 'Kunde inte importera GPX-väg.',
|
||||
'journey.recording.gpx.import': 'Importera GPX-väg',
|
||||
'journey.recording.gpx.imported.one': 'Importerade en väg för {count} dag',
|
||||
'journey.recording.gpx.imported': 'Importerade vägar för {count} dagar',
|
||||
'journey.recording.gpx.removeFailed': 'Kunde inte ta bort GPX-vägen.',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed.one': 'Öppnad {count} spårpunkt utan tidsstämpel.',
|
||||
'journey.recording.gpx.untimed': '{count} spårpunkter utan tidsstämpel har hoppats över.',
|
||||
'journey.share.allowComments': 'Tillåt gästkommentarer',
|
||||
'journey.share.allowCommentsHint': 'Läsare kan kommentera publicerade inlägg.',
|
||||
'journey.share.allowFollowers': 'Tillåt e-postprenumerationer',
|
||||
'journey.share.allowFollowersHint': 'Läsare kan få en e-post när det finns nya inlägg.',
|
||||
'journey.share.expires': 'Expirerar den',
|
||||
'journey.share.expiresNever': 'Inget utgångsdatum',
|
||||
'journey.share.followerRemoveFailed': 'Kunde inte ta bort prenumeranten.',
|
||||
'journey.share.followers.one': '{count} prenumerant',
|
||||
'journey.share.followers': '{count} prenumeranter',
|
||||
'journey.share.followersPending.one': '{count} väntande bekräftelse',
|
||||
'journey.share.followersPending': '{count} väntande bekräftelser',
|
||||
'journey.share.lastViewed': 'Senaste öppningen {date}',
|
||||
'journey.share.needsTimeline': 'Dela tidslinjen för att tillåta gästkommentarer.',
|
||||
'journey.share.passwordRemoved': 'Lösenordet har tagits bort',
|
||||
'journey.share.passwordRule': 'Använd minst {minLength} tecken.',
|
||||
'journey.share.passwordSaved': 'Lösenordet har sparas',
|
||||
'journey.share.passwordSet': 'Ställ in lösenord',
|
||||
'journey.share.passwordText': 'Läsare behöver detta lösenord för att öppna den delade länken.',
|
||||
'journey.share.passwordTitle': 'Länk-lösenord',
|
||||
'journey.share.removeFollower': 'Ta bort prenumerant',
|
||||
'journey.share.views.one': 'Visningar: {count}',
|
||||
'journey.share.views': 'Visningar: {count}',
|
||||
'journey.studio.mapCoastDetail': 'Kustlinje detalj',
|
||||
'journey.studio.mapCoastDetail.auto': 'Automatisk',
|
||||
'journey.studio.mapCoastDetail.detailed': 'Detaillert',
|
||||
'journey.studio.mapCoastDetail.simple': 'Enkel',
|
||||
'journey.studio.mapScopeCountry': 'En land',
|
||||
'journey.studio.mapScopeDay': 'En dag',
|
||||
'journey.studio.mapScopeStop': 'En stopp',
|
||||
'journey.studio.mapScopeTrip': 'En resa',
|
||||
'journey.studio.mapView': 'Framställning',
|
||||
'journey.studio.mapViewDown': 'Flytta ner',
|
||||
'journey.studio.mapViewLeft': 'Flytta till vänster',
|
||||
'journey.studio.mapViewOwn': 'Anpassat',
|
||||
'journey.studio.mapViewRight': 'Flytta till höger',
|
||||
'journey.studio.mapViewUp': 'Flytta upp',
|
||||
'journey.studio.tileDetail': 'Detaljnivå för kartrutor',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -869,5 +869,88 @@ const journey: TranslationStrings = {
|
||||
'journey.fromPhotos.nothingCreated': 'ไม่มีรูปภาพใดในชุดนี้ที่สร้างเป็นบันทึกได้ ไม่ได้สร้างอะไรเลย',
|
||||
'journey.fromPhotos.createFailed': 'ไม่ได้สร้างบันทึกใด ๆ และไม่มีอะไรถูกบันทึก ลองอีกครั้ง',
|
||||
'journey.fromPhotos.previewFailed': 'จัดกลุ่มรูปภาพไม่สำเร็จ ลองอีกครั้ง',
|
||||
'journey.comments.closed': 'ความคิดเห็นถูกปิดสำหรับลิงก์นี้。',
|
||||
'journey.comments.count': '{count} ความคิดเห็น',
|
||||
'journey.comments.deletedUser': 'บัญชีถูกลบ',
|
||||
'journey.comments.failed': 'ไม่สามารถบันทึกความคิดเห็นได้ ลองอีกครั้ง',
|
||||
'journey.comments.guest': 'ผู้เยี่ยมชม',
|
||||
'journey.comments.hidden': 'ซ่อน',
|
||||
'journey.comments.hide': 'กรอกชื่อและข้อความภายในขีดจำกัดตัวอักษร',
|
||||
'journey.comments.invalid': 'เปิดลิงก์ที่แบ่งปันอีกครั้งเพื่อต่อไป',
|
||||
'journey.comments.locked': 'ผู้ที่มีลิงก์สาธารณะสามารถอ่านความคิดเห็นในโพสต์นี้ได้',
|
||||
'journey.comments.publicHint': 'เมื่อเปิดให้ผู้เยี่ยมชมแสดงความคิดเห็น ผู้ที่มีลิงก์สาธารณะจะอ่านความคิดเห็นในบันทึกที่เผยแพร่แล้วได้',
|
||||
'journey.comments.send': 'แสดงความคิดเห็น',
|
||||
'journey.comments.show': 'ความคิดเห็น',
|
||||
'journey.comments.title': 'เขียนความคิดเห็น',
|
||||
'journey.comments.write': 'การสมัครสมาชิกถูกปิดสำหรับลิงก์นี้',
|
||||
'journey.follow.closed': 'การสมัครสมาชิกถูกปิดสำหรับลิงก์นี้',
|
||||
'journey.follow.confirmedText': 'คุณจะได้รับโพสต์ใหม่จาก {title} ทางอีเมล',
|
||||
'journey.follow.confirmedTitle': 'ไม่สามารถอัปเดตการสมัครสมาชิกได้ ลองอีกครั้ง',
|
||||
'journey.follow.failed': 'กรอกอีเมลที่ถูกต้อง',
|
||||
'journey.follow.invalid': 'ลิงก์ยืนยันหรือยกเลิกการสมัครสมาชิกนี้ไม่ถูกต้องหรือหมดอายุแล้ว',
|
||||
'journey.follow.invalidText': 'ลิงก์ยืนยันหรือยกเลิกการติดตามไม่ถูกต้องหรือหมดอายุแล้ว',
|
||||
'journey.follow.invalidTitle': 'คุณสามารถยกเลิกการสมัครสมาชิกเพื่อรับอีเมลการอัปเดตได้',
|
||||
'journey.follow.privacy': 'หากที่อยู่สามารถสมัครสมาชิกได้ คุณจะได้รับอีเมลพร้อมลิงก์ยืนยัน',
|
||||
'journey.follow.sentText': 'หากที่อยู่สามารถสมัครสมาชิกได้ คุณจะได้รับอีเมลพร้อมลิงก์ยืนยัน',
|
||||
'journey.follow.sentTitle': 'รับอีเมลเมื่อมีโพสต์ใหม่ในวันที่กำหนด',
|
||||
'journey.follow.text': 'สมัครสมาชิก',
|
||||
'journey.follow.title': 'คุณจะไม่ได้รับอีเมลเกี่ยวกับการเดินทางนี้อีกต่อไป',
|
||||
'journey.follow.unsubscribedText': 'ความคิดเห็นถูกซ่อน',
|
||||
'journey.follow.unsubscribedTitle': 'ยกเลิกการสมัครสมาชิกแล้ว',
|
||||
'journey.fromPhotos.create': 'สร้าง {count} ร่าง',
|
||||
'journey.fromPhotos.empty': 'ไม่มีรูปภาพในแกลเลอรี่ที่มีเวลาถ่ายทำสำหรับบทความใหม่',
|
||||
'journey.fromPhotos.noPlace': 'ไม่มีตำแหน่ง',
|
||||
'journey.fromPhotos.photoCount': '{count} รูปภาพ',
|
||||
'journey.fromPhotos.text': 'ตรวจสอบกลุ่มและเลือกร่างที่จะสร้าง',
|
||||
'journey.fromPhotos.timeRange': '{start} ถึง {end}',
|
||||
'journey.fromPhotos.title': 'สร้างบันทึกจากรูปภาพ',
|
||||
'journey.fromPhotos.withoutTime': '{count} รูปภาพที่ไม่มีเวลาถ่ายทำถูกข้าม',
|
||||
'journey.public.expiredText': 'ขอให้เจ้าของทริปให้ลิงก์ใหม่',
|
||||
'journey.public.expiredTitle': 'ลิงก์นี้หมดอายุแล้ว',
|
||||
'journey.public.lockedText': 'ป้อนรหัสผ่านที่เจ้าของแบ่งปันกับคุณ',
|
||||
'journey.public.lockedTitle': 'บันทึกการเดินทางที่มีรหัสผ่าน',
|
||||
'journey.public.passwordFailed': 'ไม่สามารถเปิดลิงก์ได้ ลองอีกครั้ง',
|
||||
'journey.public.passwordWrong': 'รหัสผ่านที่คุณป้อนผิด',
|
||||
'journey.public.unlock': 'เปิดล็อก',
|
||||
'journey.recording.gpx.failed': 'ไม่สามารถนำเข้าเส้นทาง GPX ได้',
|
||||
'journey.recording.gpx.import': 'นำเข้าเส้นทาง GPX',
|
||||
'journey.recording.gpx.imported': 'เส้นทางที่นำเข้าสำหรับ {count} วัน',
|
||||
'journey.recording.gpx.removeFailed': 'ไม่สามารถลบเส้นทาง GPX ได้',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed': 'ข้าม {count} จุดที่ไม่มีเวลาที่บันทึก',
|
||||
'journey.share.allowComments': 'อนุญาตให้ผู้ใช้ทั่วไปแสดงความคิดเห็น',
|
||||
'journey.share.allowCommentsHint': 'ผู้อ่านสามารถแสดงความคิดเห็นได้เมื่อบทความเผยแพร่',
|
||||
'journey.share.allowFollowers': 'อนุญาตให้สมัครสมาชิกทางอีเมล',
|
||||
'journey.share.allowFollowersHint': 'ผู้อ่านสามารถรับอีเมลเมื่อมีบทความใหม่',
|
||||
'journey.share.expires': 'หมดอายุวันที่ /no_think',
|
||||
'journey.share.expiresNever': 'ไม่มีวันหมดอายุ',
|
||||
'journey.share.followerRemoveFailed': 'ไม่สามารถลบผู้ติดตามได้',
|
||||
'journey.share.followers': '{count} ผู้ติดตาม',
|
||||
'journey.share.followersPending': '{count} รอการยืนยัน',
|
||||
'journey.share.lastViewed': 'เปิดครั้งสุดท้ายเมื่อ {date}',
|
||||
'journey.share.needsTimeline': 'แบ่งปันไทม์ไลน์เพื่อให้ผู้ใช้ทั่วไปสามารถแสดงความคิดเห็นได้',
|
||||
'journey.share.passwordRemoved': 'ลบรหัสผ่านแล้ว',
|
||||
'journey.share.passwordRule': 'ใช้ตัวอักษรอย่างน้อย {minLength} ตัว',
|
||||
'journey.share.passwordSaved': 'บันทึกรหัสผ่านแล้ว',
|
||||
'journey.share.passwordSet': 'ตั้งรหัสผ่าน',
|
||||
'journey.share.passwordText': 'ผู้อ่านจะต้องใช้รหัสผ่านนี้เพื่อเปิดลิงก์ที่แบ่งปัน',
|
||||
'journey.share.passwordTitle': 'รหัสผ่านลิงก์',
|
||||
'journey.share.removeFollower': 'ลบผู้ติดตาม',
|
||||
'journey.share.views': 'จำนวนครั้งที่เปิด: {count}',
|
||||
'journey.studio.mapCoastDetail': 'รายละเอียดชายฝั่ง',
|
||||
'journey.studio.mapCoastDetail.auto': 'อัตโนมัติ',
|
||||
'journey.studio.mapCoastDetail.detailed': 'ละเอียด',
|
||||
'journey.studio.mapCoastDetail.simple': 'ลดความละเอียด',
|
||||
'journey.studio.mapScopeCountry': 'ประเทศเดียว',
|
||||
'journey.studio.mapScopeDay': 'วันเดียว',
|
||||
'journey.studio.mapScopeStop': 'จุดหยุดพักเดียว',
|
||||
'journey.studio.mapScopeTrip': 'การเดินทางเดียว',
|
||||
'journey.studio.mapView': 'การจัดเฟรม',
|
||||
'journey.studio.mapViewDown': 'เลื่อนลง',
|
||||
'journey.studio.mapViewLeft': 'เลื่อนซ้าย',
|
||||
'journey.studio.mapViewOwn': 'กำหนดเอง',
|
||||
'journey.studio.mapViewRight': 'เลื่อนขวา',
|
||||
'journey.studio.mapViewUp': 'เลื่อนขึ้น',
|
||||
'journey.studio.tileDetail': 'ระดับรายละเอียดของแผ่นแผนที่',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -773,7 +773,8 @@ const journey: TranslationStrings = {
|
||||
'journey.recording.error.recording_changed': 'Kayıt önizlemeden bu yana değişti.',
|
||||
'journey.recording.error.recording_empty': 'Dawarich o gün hiçbir şey kaydetmedi.',
|
||||
'journey.recording.gpx.error.unreadable': 'Bu dosya bir GPX dosyası değil.',
|
||||
'journey.recording.gpx.error.noTimes': 'Bu GPX dosyasının iz noktalarında zaman yok, bu yüzden günleri ayırt edilemiyor.',
|
||||
'journey.recording.gpx.error.noTimes':
|
||||
'Bu GPX dosyasının iz noktalarında zaman yok, bu yüzden günleri ayırt edilemiyor.',
|
||||
'journey.recording.gpx.error.emptyDay': 'GPX dosyası o gün hiçbir şey kaydetmedi.',
|
||||
'journey.recording.gpx.error.tooManyDays': 'Bu GPX dosyası çok fazla günü kapsıyor. Daha kısa parçalara bölün.',
|
||||
'journey.recording.gpx.error.tooLarge': 'Bu GPX dosyası çok büyük.',
|
||||
@@ -931,5 +932,98 @@ const journey: TranslationStrings = {
|
||||
'journey.fromPhotos.nothingCreated': 'Bu fotoğrafların hiçbiri kayda dönüştürülemedi. Hiçbir şey oluşturulmadı.',
|
||||
'journey.fromPhotos.createFailed': 'Hiç kayıt oluşturulmadı. Hiçbir şey kaydedilmedi, tekrar deneyin.',
|
||||
'journey.fromPhotos.previewFailed': 'Fotoğraflar gruplanamadı. Tekrar deneyin.',
|
||||
'journey.comments.closed': 'Bu bağlantının yorumları kapatıldı.',
|
||||
'journey.comments.count.one': '{count} yorum',
|
||||
'journey.comments.count': '{count} yorum',
|
||||
'journey.comments.deletedUser': 'Silinmiş hesap',
|
||||
'journey.comments.failed': 'Yorumu kaydederken bir hata oluştu. Tekrar deneyin.',
|
||||
'journey.comments.guest': 'Misafir',
|
||||
'journey.comments.hidden': 'Gizli',
|
||||
'journey.comments.hide': 'Yorumu gizle',
|
||||
'journey.comments.invalid': 'Adınızı ve yorumunuzu karakter sınırına uygundan girin.',
|
||||
'journey.comments.locked': 'Paylaşılan bağlantıyı tekrar açarak devam edin.',
|
||||
'journey.comments.publicHint':
|
||||
'Misafir yorumları etkinse herkese açık bağlantıyı bilenler yayımlanan kayıtların yorumlarını okuyabilir.',
|
||||
'journey.comments.send': 'Yorum gönder',
|
||||
'journey.comments.show': 'Yorumu göster',
|
||||
'journey.comments.title': 'Yorumlar',
|
||||
'journey.comments.write': 'Yorum yaz',
|
||||
'journey.follow.closed': 'Bu bağlantının abonelikleri kapatıldı.',
|
||||
'journey.follow.confirmedText': '{title} adlı yeni gönderilerinizi e-posta ile alacaksınız.',
|
||||
'journey.follow.confirmedTitle': 'Abonelik onaylandı',
|
||||
'journey.follow.failed': 'Geçerli bir e-posta adresi girin.',
|
||||
'journey.follow.invalid': 'Bu onaylama veya abonelikten çıkma bağlantısı geçersiz veya süresi dolmuş olabilir.',
|
||||
'journey.follow.invalidText': 'Bu onay veya abonelikten çıkma bağlantısı geçersiz ya da süresi dolmuş.',
|
||||
'journey.follow.invalidTitle': 'Herhangi bir güncelleme e-postasından abonelikten çıkma seçeneği bulunur.',
|
||||
'journey.follow.privacy': 'E-posta adresi abone edilebiliyorsa, doğrulama bağlantısı içeren bir e-posta alacaksınız.',
|
||||
'journey.follow.sentText': 'E-posta kutunuzu kontrol edin',
|
||||
'journey.follow.sentTitle': 'Yeni girişlerin yayınlandığı günlerde e-posta almak için abone olun.',
|
||||
'journey.follow.text': 'Abone ol /no_check',
|
||||
'journey.follow.title': 'Sabit',
|
||||
'journey.follow.unsubscribedText': 'Bu yolculuk hakkında daha fazla e-posta almayacaksın.',
|
||||
'journey.follow.unsubscribedTitle': 'Aboneliği Kaldır',
|
||||
'journey.fromPhotos.create.one': '{count} taslak oluştur',
|
||||
'journey.fromPhotos.create': '{count} taslak oluştur',
|
||||
'journey.fromPhotos.empty': 'Yeni girişler için tarihli galeri fotoğrafları bulunmuyor.',
|
||||
'journey.fromPhotos.noPlace': 'Yer yok',
|
||||
'journey.fromPhotos.photoCount.one': '{count} foto',
|
||||
'journey.fromPhotos.photoCount': '{count} foto',
|
||||
'journey.fromPhotos.text': 'Grupları inceleyin ve hangi taslakları oluşturmak istediğini seçin.',
|
||||
'journey.fromPhotos.timeRange': '{start} - {end}',
|
||||
'journey.fromPhotos.title': 'Fotoğraflardan günlük kaydı oluştur',
|
||||
'journey.fromPhotos.withoutTime.one': '{count} tarihli olmayan foto atlandı.',
|
||||
'journey.fromPhotos.withoutTime': '{count} tarihli olmayan foto atlandı.',
|
||||
'journey.public.expiredText': 'Yolculuğun sahibinden yeni bir bağlantı isteyin.',
|
||||
'journey.public.expiredTitle': 'Bu bağlantı geçersiz',
|
||||
'journey.public.lockedText': 'Sahibine paylaştığı şifreyi girin.',
|
||||
'journey.public.lockedTitle': 'Parola korumalı seyahat günlüğü',
|
||||
'journey.public.passwordFailed': 'Bağlantıyı açmak mümkün değil. Tekrar deneyin.',
|
||||
'journey.public.passwordWrong': 'Bu şifre yanlış.',
|
||||
'journey.public.unlock': 'Şifreyi aç',
|
||||
'journey.recording.gpx.failed': 'GPX rotasını içe aktarlamak mümkün değil.',
|
||||
'journey.recording.gpx.import': 'GPX rotasını içe aktar',
|
||||
'journey.recording.gpx.imported.one': '{count} gün için bir yol haritası içe aktarıldı',
|
||||
'journey.recording.gpx.imported': '{count} gün için yol haritası içe aktarıldı',
|
||||
'journey.recording.gpx.removeFailed': 'GPX rotasını kaldırmak mümkün değil.',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed.one': '{count} zaman damgası olmayan izleme noktası atlandı.',
|
||||
'journey.recording.gpx.untimed': '{count} takip noktası zaman damgası olmadan atlandı.',
|
||||
'journey.share.allowComments': 'Misafir yorumlarını izin ver',
|
||||
'journey.share.allowCommentsHint': 'Yayımlanmış girişlere okuyucular yorum yapabilir.',
|
||||
'journey.share.allowFollowers': 'E-posta aboneliklerini izin ver',
|
||||
'journey.share.allowFollowersHint': 'Okuyucular yeni girişler olduğunda e-posta alabilir.',
|
||||
'journey.share.expires': 'Bitiş tarihi',
|
||||
'journey.share.expiresNever': 'Bitiş yok',
|
||||
'journey.share.followerRemoveFailed': 'Aboneyi kaldıramadık.',
|
||||
'journey.share.followers.one': '{count} abone',
|
||||
'journey.share.followers': '{count} abone',
|
||||
'journey.share.followersPending.one': '{count} onay bekliyor',
|
||||
'journey.share.followersPending': '{count} onay bekliyor',
|
||||
'journey.share.lastViewed': 'Son açılış {date}',
|
||||
'journey.share.needsTimeline': 'Misafir yorumlarını etkinleştirmek için zaman çizelgesini paylaşın.',
|
||||
'journey.share.passwordRemoved': 'Şifre kaldırıldı',
|
||||
'journey.share.passwordRule': 'En az {minLength} karakter kullanın.',
|
||||
'journey.share.passwordSaved': 'Şifre kaydedildi',
|
||||
'journey.share.passwordSet': 'Şifre ayarla',
|
||||
'journey.share.passwordText': 'Okuyucular bu şifreyi kullanarak paylaşılan bağlantıyı açmalıdır.',
|
||||
'journey.share.passwordTitle': 'Bağlantı şifresi',
|
||||
'journey.share.removeFollower': 'Aboneyi kaldır',
|
||||
'journey.share.views.one': 'Görüntüleme: {count}',
|
||||
'journey.share.views': 'Görüntüleme: {count}',
|
||||
'journey.studio.mapCoastDetail': 'Kıyı detayı',
|
||||
'journey.studio.mapCoastDetail.auto': 'Otomatik',
|
||||
'journey.studio.mapCoastDetail.detailed': 'Detaylı',
|
||||
'journey.studio.mapCoastDetail.simple': 'Basitleştirilmiş',
|
||||
'journey.studio.mapScopeCountry': 'Bir ülke',
|
||||
'journey.studio.mapScopeDay': 'Bir gün',
|
||||
'journey.studio.mapScopeStop': 'Bir durak',
|
||||
'journey.studio.mapScopeTrip': 'Bir seyahir',
|
||||
'journey.studio.mapView': 'Çerçeve',
|
||||
'journey.studio.mapViewDown': 'Aşağı kaydır',
|
||||
'journey.studio.mapViewLeft': 'Sol kaydır',
|
||||
'journey.studio.mapViewOwn': 'Özel',
|
||||
'journey.studio.mapViewRight': 'Sağ kaydır',
|
||||
'journey.studio.mapViewUp': 'Yukarı kaydır',
|
||||
'journey.studio.tileDetail': 'Harita döşemesi ayrıntısı',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -811,7 +811,8 @@ const journey: TranslationStrings = {
|
||||
'journey.recording.error.recording_changed': 'Запис змінився після попереднього перегляду.',
|
||||
'journey.recording.error.recording_empty': 'Dawarich нічого не записав цього дня.',
|
||||
'journey.recording.gpx.error.unreadable': 'Цей файл не є файлом GPX.',
|
||||
'journey.recording.gpx.error.noTimes': 'Точки треку в цьому файлі GPX не мають часу, тому його дні неможливо розрізнити.',
|
||||
'journey.recording.gpx.error.noTimes':
|
||||
'Точки треку в цьому файлі GPX не мають часу, тому його дні неможливо розрізнити.',
|
||||
'journey.recording.gpx.error.emptyDay': 'Файл GPX нічого не записав цього дня.',
|
||||
'journey.recording.gpx.error.tooManyDays': 'Цей файл GPX охоплює забагато днів. Розділіть його на коротші частини.',
|
||||
'journey.recording.gpx.error.tooLarge': 'Цей файл GPX завеликий.',
|
||||
@@ -991,5 +992,117 @@ const journey: TranslationStrings = {
|
||||
'journey.fromPhotos.nothingCreated': 'Жодне з цих фото не стало записом. Нічого не створено.',
|
||||
'journey.fromPhotos.createFailed': 'Записи не створено. Нічого не збережено, спробуйте ще раз.',
|
||||
'journey.fromPhotos.previewFailed': 'Не вдалося згрупувати фото. Спробуйте ще раз.',
|
||||
'journey.comments.closed': 'Коментарі закриті для цього посилання.',
|
||||
'journey.comments.count.many': '{count} коментарів',
|
||||
'journey.comments.count.one': '{count} коментар',
|
||||
'journey.comments.count.few': '{count} коментарів',
|
||||
'journey.comments.count': '{count} коментарів',
|
||||
'journey.comments.deletedUser': 'Видалений акаунт',
|
||||
'journey.comments.failed': 'Не вдалося зберегти коментар. Спробуйте ще раз.',
|
||||
'journey.comments.guest': 'Гість',
|
||||
'journey.comments.hidden': 'Приховано',
|
||||
'journey.comments.hide': 'Приховано',
|
||||
'journey.comments.invalid': 'Приховано',
|
||||
'journey.comments.locked': 'Приховано',
|
||||
'journey.comments.publicHint':
|
||||
'Якщо гостьові коментарі ввімкнено, люди з публічним посиланням можуть читати коментарі до опублікованих записів.',
|
||||
'journey.comments.send': 'Приховано',
|
||||
'journey.comments.show': 'Приховано',
|
||||
'journey.comments.title': 'Приховано',
|
||||
'journey.comments.write': 'Приховано',
|
||||
'journey.follow.closed': 'Підписки для цього посилання закриті.',
|
||||
'journey.follow.confirmedText': 'Нові записи з «{title}» надходитимуть електронною поштою.',
|
||||
'journey.follow.confirmedTitle': 'Приховано',
|
||||
'journey.follow.failed': 'Приховано',
|
||||
'journey.follow.invalid': 'Приховано',
|
||||
'journey.follow.invalidText': 'Посилання для підтвердження або скасування підписки недійсне чи прострочене.',
|
||||
'journey.follow.invalidTitle': 'Приховано',
|
||||
'journey.follow.privacy': 'Приховано',
|
||||
'journey.follow.sentText':
|
||||
'Якщо адресу можна підписати, ви отримаєте електронну пошту з посиланням для підтвердження.',
|
||||
'journey.follow.sentTitle': 'Приховано',
|
||||
'journey.follow.text': 'Отримуйте email у дні, коли виходить новий запис.',
|
||||
'journey.follow.title': 'Підписатися',
|
||||
'journey.follow.unsubscribedText': 'Ви більше не отримуватимете email про цю подорож.',
|
||||
'journey.follow.unsubscribedTitle': 'Підписка скасована',
|
||||
'journey.fromPhotos.create.many': 'Створити {count} чернеток',
|
||||
'journey.fromPhotos.create.one': 'Створити {count} чернетку',
|
||||
'journey.fromPhotos.create.few': 'Створити {count} чернетки',
|
||||
'journey.fromPhotos.create': 'Створити {count} чернеток',
|
||||
'journey.fromPhotos.empty': 'Немає фотографій галереї з часом зйомки, які можна використати для нових записів.',
|
||||
'journey.fromPhotos.noPlace': 'Немає місця',
|
||||
'journey.fromPhotos.photoCount.many': '{count} фотографій',
|
||||
'journey.fromPhotos.photoCount.one': '{count} фотографія',
|
||||
'journey.fromPhotos.photoCount.few': '{count} фотографій',
|
||||
'journey.fromPhotos.photoCount': '{count} фотографій',
|
||||
'journey.fromPhotos.text': 'Перегляньте групи та оберіть, які чернети створити.',
|
||||
'journey.fromPhotos.timeRange': '{start} до {end}',
|
||||
'journey.fromPhotos.title': 'Створити записи з фотографій',
|
||||
'journey.fromPhotos.withoutTime.many': '{count} фотографій без часу зйомки було пропущено.',
|
||||
'journey.fromPhotos.withoutTime.one': '{count} фотографія без часу зйомки була пропущена.',
|
||||
'journey.fromPhotos.withoutTime.few': '{count} фотографій без часу зйомки було пропущено.',
|
||||
'journey.fromPhotos.withoutTime': '{count} фотографій без часу зйомки було пропущено.',
|
||||
'journey.public.expiredText': 'Запитайте власника подорожі про нове посилання.',
|
||||
'journey.public.expiredTitle': 'Це посилання закінчилось',
|
||||
'journey.public.lockedText': 'Введіть пароль, який власник поділив з вами.',
|
||||
'journey.public.lockedTitle': 'Щоденник подорожі захищено паролем',
|
||||
'journey.public.passwordFailed': 'Не вдалося відкрити посилання. Спробуйте ще раз.',
|
||||
'journey.public.passwordWrong': 'Цей пароль неправильний.',
|
||||
'journey.public.unlock': 'Відкрити',
|
||||
'journey.recording.gpx.failed': 'Не вдалося імпортувати маршрут GPX.',
|
||||
'journey.recording.gpx.import': 'Імпортувати маршрут GPX',
|
||||
'journey.recording.gpx.imported.many': 'Імпортовано маршрути для {count} днів',
|
||||
'journey.recording.gpx.imported.one': 'Імпортовано маршрут для {count} дня',
|
||||
'journey.recording.gpx.imported.few': 'Імпортовано маршрути для {count} днів',
|
||||
'journey.recording.gpx.imported': 'Імпортовано маршрути для {count} днів',
|
||||
'journey.recording.gpx.removeFailed': 'Не вдалося видалити маршрут GPX.',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed.many': 'Пропущено {count} точок треку без часу.',
|
||||
'journey.recording.gpx.untimed.one': 'Пропущено {count} точку треку без часу.',
|
||||
'journey.recording.gpx.untimed.few': 'Пропущено {count} точок треку без часу.',
|
||||
'journey.recording.gpx.untimed': 'Пропущено {count} точок треку без часу.',
|
||||
'journey.share.allowComments': 'Дозволити коментарі гостей',
|
||||
'journey.share.allowCommentsHint': 'Читачі можуть коментувати опубліковані записи.',
|
||||
'journey.share.allowFollowers': 'Дозволити підписки на email',
|
||||
'journey.share.allowFollowersHint': 'Читачі можуть отримувати email при появи нових записів.',
|
||||
'journey.share.expires': 'Закінчується на',
|
||||
'journey.share.expiresNever': 'Немає дати закінчення',
|
||||
'journey.share.followerRemoveFailed': 'Не вдалося видалити підписника.',
|
||||
'journey.share.followers.many': '{count} підписників',
|
||||
'journey.share.followers.one': '{count} підписник',
|
||||
'journey.share.followers.few': '{count} підписників',
|
||||
'journey.share.followers': '{count} підписників',
|
||||
'journey.share.followersPending.many': '{count} очікування підтвердження',
|
||||
'journey.share.followersPending.one': '{count} очікування підтвердження',
|
||||
'journey.share.followersPending.few': '{count} очікування підтвердження',
|
||||
'journey.share.followersPending': '{count} відкладених підтверджень',
|
||||
'journey.share.lastViewed': 'Останній відкриття {date}',
|
||||
'journey.share.needsTimeline': 'Поділіться таймлінією, щоб дозволити гострим коментарі',
|
||||
'journey.share.passwordRemoved': 'Пароль видалено',
|
||||
'journey.share.passwordRule': 'Використовуйте принаймні {minLength} символів.',
|
||||
'journey.share.passwordSaved': 'Пароль збережено',
|
||||
'journey.share.passwordSet': 'Встановити пароль',
|
||||
'journey.share.passwordText': 'Читачі потрібен цей пароль, щоб відкрити спільне посилання.',
|
||||
'journey.share.passwordTitle': 'Пароль посилання',
|
||||
'journey.share.removeFollower': 'Видалити підписчика',
|
||||
'journey.share.views.many': 'Переглядів: {count}',
|
||||
'journey.share.views.one': 'Переглядів: {count}',
|
||||
'journey.share.views.few': 'Переглядів: {count}',
|
||||
'journey.share.views': 'Переглядів: {count}',
|
||||
'journey.studio.mapCoastDetail': 'Деталі берегової лінії',
|
||||
'journey.studio.mapCoastDetail.auto': 'Автоматично',
|
||||
'journey.studio.mapCoastDetail.detailed': 'Детально',
|
||||
'journey.studio.mapCoastDetail.simple': 'Спрощено',
|
||||
'journey.studio.mapScopeCountry': 'Один країна',
|
||||
'journey.studio.mapScopeDay': 'Один день',
|
||||
'journey.studio.mapScopeStop': 'Один зупинка',
|
||||
'journey.studio.mapScopeTrip': 'Один поїздка',
|
||||
'journey.studio.mapView': 'Фреймінг',
|
||||
'journey.studio.mapViewDown': 'Панувати вниз',
|
||||
'journey.studio.mapViewLeft': 'Панувати вліво',
|
||||
'journey.studio.mapViewOwn': 'Власний',
|
||||
'journey.studio.mapViewRight': 'Панувати вправо',
|
||||
'journey.studio.mapViewUp': 'Панувати вверх',
|
||||
'journey.studio.tileDetail': 'Деталізація плиток',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -755,9 +755,11 @@ const journey: TranslationStrings = {
|
||||
'journey.recording.error.recording_changed': 'Bản ghi đã thay đổi từ lúc xem trước.',
|
||||
'journey.recording.error.recording_empty': 'Dawarich không ghi lại gì vào ngày đó.',
|
||||
'journey.recording.gpx.error.unreadable': 'Tệp này không phải là tệp GPX.',
|
||||
'journey.recording.gpx.error.noTimes': 'Các điểm hành trình trong tệp GPX này không có thời gian nên không thể phân biệt các ngày.',
|
||||
'journey.recording.gpx.error.noTimes':
|
||||
'Các điểm hành trình trong tệp GPX này không có thời gian nên không thể phân biệt các ngày.',
|
||||
'journey.recording.gpx.error.emptyDay': 'Tệp GPX không ghi lại gì vào ngày đó.',
|
||||
'journey.recording.gpx.error.tooManyDays': 'Tệp GPX này trải dài quá nhiều ngày. Hãy chia nó thành các phần ngắn hơn.',
|
||||
'journey.recording.gpx.error.tooManyDays':
|
||||
'Tệp GPX này trải dài quá nhiều ngày. Hãy chia nó thành các phần ngắn hơn.',
|
||||
'journey.recording.gpx.error.tooLarge': 'Tệp GPX này quá lớn.',
|
||||
'journey.recording.mode.walking': 'Đi bộ',
|
||||
'journey.recording.mode.running': 'Chạy bộ',
|
||||
@@ -904,5 +906,89 @@ const journey: TranslationStrings = {
|
||||
'journey.fromPhotos.nothingCreated': 'Không ảnh nào trong số này có thể trở thành một mục. Không có gì được tạo.',
|
||||
'journey.fromPhotos.createFailed': 'Không có mục nào được tạo. Chưa lưu gì cả, hãy thử lại.',
|
||||
'journey.fromPhotos.previewFailed': 'Không thể nhóm ảnh. Hãy thử lại.',
|
||||
'journey.comments.closed': 'Bình luận đã đóng cho liên kết này.',
|
||||
'journey.comments.count': '{count} bình luận',
|
||||
'journey.comments.deletedUser': 'Tài khoản đã xóa',
|
||||
'journey.comments.failed': 'Không thể lưu bình luận. Vui lòng thử lại.',
|
||||
'journey.comments.guest': 'Khách',
|
||||
'journey.comments.hidden': 'Ẩn',
|
||||
'journey.comments.hide': 'Ẩn bình luận',
|
||||
'journey.comments.invalid': 'Nhập tên và bình luận trong giới hạn ký tự.',
|
||||
'journey.comments.locked': 'Mở lại liên kết chia sẻ để tiếp tục.',
|
||||
'journey.comments.publicHint':
|
||||
'Khi bật bình luận của khách, người có liên kết công khai có thể đọc bình luận trên các mục nhật ký đã đăng.',
|
||||
'journey.comments.send': 'Gửi bình luận',
|
||||
'journey.comments.show': 'Hiển thị bình luận',
|
||||
'journey.comments.title': 'Bình luận',
|
||||
'journey.comments.write': 'Viết bình luận',
|
||||
'journey.follow.closed': 'Đăng ký đã đóng cho liên kết này.',
|
||||
'journey.follow.confirmedText': 'Bạn sẽ nhận được các bài đăng mới từ {title} qua email.',
|
||||
'journey.follow.confirmedTitle': 'Đăng ký đã xác nhận',
|
||||
'journey.follow.failed': 'Không thể cập nhật đăng ký. Vui lòng thử lại.',
|
||||
'journey.follow.invalid': 'Nhập địa chỉ email hợp lệ.',
|
||||
'journey.follow.invalidText': 'Liên kết xác nhận hoặc hủy đăng ký không hợp lệ hoặc đã hết hạn.',
|
||||
'journey.follow.invalidTitle': 'Liên kết đăng ký không khả dụng',
|
||||
'journey.follow.privacy': 'Bạn có thể hủy đăng ký bất kỳ email cập nhật nào.',
|
||||
'journey.follow.sentText': 'Nếu địa chỉ có thể đăng ký, bạn sẽ nhận được email với liên kết xác nhận.',
|
||||
'journey.follow.sentTitle': 'Kiểm tra hộp thư',
|
||||
'journey.follow.text': 'Nhận email vào những ngày có bài đăng mới.',
|
||||
'journey.follow.title': 'Đăng ký',
|
||||
'journey.follow.unsubscribedText': 'Bạn sẽ không còn nhận được email về hành trình này.',
|
||||
'journey.follow.unsubscribedTitle': 'Đã hủy theo dõi',
|
||||
'journey.fromPhotos.create': 'Tạo {count} bản nháp',
|
||||
'journey.fromPhotos.empty': 'Không có hình ảnh thư viện nào có thời gian chụp để tạo bài viết mới.',
|
||||
'journey.fromPhotos.noPlace': 'Không có vị trí',
|
||||
'journey.fromPhotos.photoCount': '{count} hình ảnh',
|
||||
'journey.fromPhotos.text': 'Xem các nhóm và chọn những bản nháp nào sẽ được tạo.',
|
||||
'journey.fromPhotos.timeRange': '{start} đến {end}',
|
||||
'journey.fromPhotos.title': 'Tạo mục nhật ký từ ảnh',
|
||||
'journey.fromPhotos.withoutTime': '{count} hình ảnh không có thời gian chụp đã bị bỏ qua.',
|
||||
'journey.public.expiredText': 'Hỏi người sở hữu hành trình để lấy liên kết mới.',
|
||||
'journey.public.expiredTitle': 'Liên kết này đã hết hạn',
|
||||
'journey.public.lockedText': 'Nhập mật khẩu mà người sở hữu đã chia sẻ với bạn.',
|
||||
'journey.public.lockedTitle': 'Nhật ký hành trình có mật khẩu',
|
||||
'journey.public.passwordFailed': 'Không thể mở khóa liên kết. Hãy thử lại.',
|
||||
'journey.public.passwordWrong': 'Mật khẩu đó là sai.',
|
||||
'journey.public.unlock': 'Mở khóa',
|
||||
'journey.recording.gpx.failed': 'Không thể nhập tuyến đường GPX.',
|
||||
'journey.recording.gpx.import': 'Nhập tuyến đường GPX',
|
||||
'journey.recording.gpx.imported': 'Đã nhập tuyến đường cho {count} ngày',
|
||||
'journey.recording.gpx.removeFailed': 'Không thể xóa tuyến đường GPX.',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed': 'Đã bỏ qua {count} điểm theo dõi không có thời gian ghi dấu.',
|
||||
'journey.share.allowComments': 'Cho phép bình luận của khách',
|
||||
'journey.share.allowCommentsHint': 'Người đọc có thể bình luận trên các bài viết đã đăng.',
|
||||
'journey.share.allowFollowers': 'Cho phép đăng ký email',
|
||||
'journey.share.allowFollowersHint': 'Người đọc có thể nhận email khi có bài viết mới.',
|
||||
'journey.share.expires': 'Hết hạn vào',
|
||||
'journey.share.expiresNever': 'Không hết hạn',
|
||||
'journey.share.followerRemoveFailed': 'Không thể xóa người theo dõi.',
|
||||
'journey.share.followers': '{count} người theo dõi',
|
||||
'journey.share.followersPending': '{count} xác nhận chờ',
|
||||
'journey.share.lastViewed': 'Cuối cùng mở {date}',
|
||||
'journey.share.needsTimeline': 'Chia sẻ thời gian để cho phép bình luận của khách.',
|
||||
'journey.share.passwordRemoved': 'Mật khẩu đã được xóa',
|
||||
'journey.share.passwordRule': 'Sử dụng ít nhất {minLength} ký tự.',
|
||||
'journey.share.passwordSaved': 'Mật khẩu đã được lưu',
|
||||
'journey.share.passwordSet': 'Thiết lập mật khẩu',
|
||||
'journey.share.passwordText': 'Người đọc sẽ cần mật khẩu này để mở liên kết chia sẻ.',
|
||||
'journey.share.passwordTitle': 'Mật khẩu liên kết',
|
||||
'journey.share.removeFollower': 'Xóa người theo dõi',
|
||||
'journey.share.views': 'Lượt mở: {count}',
|
||||
'journey.studio.mapCoastDetail': 'Chi tiết bờ biển',
|
||||
'journey.studio.mapCoastDetail.auto': 'Tự động',
|
||||
'journey.studio.mapCoastDetail.detailed': 'Chi tiết',
|
||||
'journey.studio.mapCoastDetail.simple': 'Đơn giản',
|
||||
'journey.studio.mapScopeCountry': 'Một quốc gia',
|
||||
'journey.studio.mapScopeDay': 'Một ngày',
|
||||
'journey.studio.mapScopeStop': 'Một điểm dừng',
|
||||
'journey.studio.mapScopeTrip': 'Một chuyến đi',
|
||||
'journey.studio.mapView': 'Điều chỉnh',
|
||||
'journey.studio.mapViewDown': 'Cuốn xuống',
|
||||
'journey.studio.mapViewLeft': 'Cuốn sang trái',
|
||||
'journey.studio.mapViewOwn': 'Tùy chỉnh',
|
||||
'journey.studio.mapViewRight': 'Cuốn sang phải',
|
||||
'journey.studio.mapViewUp': 'Cuộn lên',
|
||||
'journey.studio.tileDetail': 'Mức chi tiết của ô bản đồ',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -869,5 +869,88 @@ const journey: TranslationStrings = {
|
||||
'journey.fromPhotos.nothingCreated': '這些照片都無法建立紀錄,未建立任何內容。',
|
||||
'journey.fromPhotos.createFailed': '未建立任何紀錄。沒有儲存任何內容,請再試一次。',
|
||||
'journey.fromPhotos.previewFailed': '無法為照片分組,請再試一次。',
|
||||
'journey.comments.closed': '這個連結的評論已關閉。',
|
||||
'journey.comments.count': '{count} 則評論',
|
||||
'journey.comments.deletedUser': '已刪除帳號',
|
||||
'journey.comments.failed': '無法儲存評論,請再試一次。',
|
||||
'journey.comments.guest': '客人',
|
||||
'journey.comments.hidden': '隱藏',
|
||||
'journey.comments.hide': '隱藏評論',
|
||||
'journey.comments.invalid': '請輸入一個名字和在字數限制內的評論。',
|
||||
'journey.comments.locked': '請重新開啟這個共享連結以繼續。',
|
||||
'journey.comments.publicHint': '啟用訪客留言後,任何持有公開連結的人都能閱讀已發布遊記項目下的留言。',
|
||||
'journey.comments.send': '發送評論',
|
||||
'journey.comments.show': '顯示評論',
|
||||
'journey.comments.title': '評論',
|
||||
'journey.comments.write': '寫評論',
|
||||
'journey.follow.closed': '此連結的訂閱已關閉。',
|
||||
'journey.follow.confirmedText': '您將會收到來自 {title} 的新文章郵件。',
|
||||
'journey.follow.confirmedTitle': '訂閱確認',
|
||||
'journey.follow.failed': '無法更新訂閱,請再試一次。',
|
||||
'journey.follow.invalid': '請輸入有效的電子郵件地址。',
|
||||
'journey.follow.invalidText': '確認或取消訂閱的連結無效或已過期。',
|
||||
'journey.follow.invalidTitle': '訂閱連結不可用',
|
||||
'journey.follow.privacy': '你可以取消訂閱任何更新郵件。',
|
||||
'journey.follow.sentText': '如果這個地址可以訂閱,您將收到一封包含確認連結的郵件。',
|
||||
'journey.follow.sentTitle': '請查看你的郵件信箱',
|
||||
'journey.follow.text': '在有新貼文發佈的日期收到郵件。',
|
||||
'journey.follow.title': '訂閱',
|
||||
'journey.follow.unsubscribedText': '你將不再收到關於這趟旅程的郵件。',
|
||||
'journey.follow.unsubscribedTitle': '已取消訂閱',
|
||||
'journey.fromPhotos.create': '建立 {count} 則草稿',
|
||||
'journey.fromPhotos.empty': '無可用於新記事的相機時間照片的相簿照片。',
|
||||
'journey.fromPhotos.noPlace': '無位置',
|
||||
'journey.fromPhotos.photoCount': '{count} 張照片',
|
||||
'journey.fromPhotos.text': '評估群組並選擇要建立的稿件。',
|
||||
'journey.fromPhotos.timeRange': '{start} 到 {end}',
|
||||
'journey.fromPhotos.title': '從照片建立遊記項目',
|
||||
'journey.fromPhotos.withoutTime': '{count} 張無相機時間的照片被跳過。',
|
||||
'journey.public.expiredText': '向這趟旅程的擁有者請求新的連結。',
|
||||
'journey.public.expiredTitle': '此連結已過期',
|
||||
'journey.public.lockedText': '輸入擁有者與你分享的密碼。',
|
||||
'journey.public.lockedTitle': '受密碼保護的旅行日誌',
|
||||
'journey.public.passwordFailed': '無法解鎖此連結,請再試一次。',
|
||||
'journey.public.passwordWrong': '此密碼錯誤。',
|
||||
'journey.public.unlock': '解鎖',
|
||||
'journey.recording.gpx.failed': '無法匯入 GPX 路線。',
|
||||
'journey.recording.gpx.import': '匯入 GPX 路線',
|
||||
'journey.recording.gpx.imported': '已匯入 {count} 天的路線',
|
||||
'journey.recording.gpx.removeFailed': '無法移除 GPX 路線。',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed': '已跳過 {count} 無時間戳記的追蹤點。',
|
||||
'journey.share.allowComments': '允許訪客評論',
|
||||
'journey.share.allowCommentsHint': '閱讀者可以對已發佈的記事進行評論。',
|
||||
'journey.share.allowFollowers': '允許電子郵件訂閱',
|
||||
'journey.share.allowFollowersHint': '閱讀者可以收到新記事的通知電子郵件。',
|
||||
'journey.share.expires': '優化於 /no_think',
|
||||
'journey.share.expiresNever': '永不過期',
|
||||
'journey.share.followerRemoveFailed': '無法移除訂閱者。',
|
||||
'journey.share.followers': '{count} 訂閱者',
|
||||
'journey.share.followersPending': '{count} 待確認',
|
||||
'journey.share.lastViewed': '最後開啟 {date}',
|
||||
'journey.share.needsTimeline': '要分享時間軸才能讓訪客留言。',
|
||||
'journey.share.passwordRemoved': '已移除密碼',
|
||||
'journey.share.passwordRule': '請使用至少 {minLength} 個字元。',
|
||||
'journey.share.passwordSaved': '已儲存密碼',
|
||||
'journey.share.passwordSet': '設定密碼',
|
||||
'journey.share.passwordText': '讀者需要此密碼才能開啟共用連結。',
|
||||
'journey.share.passwordTitle': '連結密碼',
|
||||
'journey.share.removeFollower': '移除訂閱者',
|
||||
'journey.share.views': '開啟次數:{count}',
|
||||
'journey.studio.mapCoastDetail': '海岸線細節',
|
||||
'journey.studio.mapCoastDetail.auto': '自動',
|
||||
'journey.studio.mapCoastDetail.detailed': '詳細',
|
||||
'journey.studio.mapCoastDetail.simple': '簡化',
|
||||
'journey.studio.mapScopeCountry': '一個國家',
|
||||
'journey.studio.mapScopeDay': '一天',
|
||||
'journey.studio.mapScopeStop': '一個停靠點',
|
||||
'journey.studio.mapScopeTrip': '一趟旅程',
|
||||
'journey.studio.mapView': '構圖',
|
||||
'journey.studio.mapViewDown': '向下平移',
|
||||
'journey.studio.mapViewLeft': '向左平移',
|
||||
'journey.studio.mapViewOwn': '自訂',
|
||||
'journey.studio.mapViewRight': '向右平移',
|
||||
'journey.studio.mapViewUp': '向上平移',
|
||||
'journey.studio.tileDetail': '圖磚詳細程度',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -869,5 +869,88 @@ const journey: TranslationStrings = {
|
||||
'journey.fromPhotos.nothingCreated': '这些照片都无法生成记录,未创建任何内容。',
|
||||
'journey.fromPhotos.createFailed': '未创建任何记录。没有保存任何内容,请重试。',
|
||||
'journey.fromPhotos.previewFailed': '无法为照片分组,请重试。',
|
||||
'journey.comments.closed': '此链接的评论已关闭。',
|
||||
'journey.comments.count': '{count}条评论',
|
||||
'journey.comments.deletedUser': '已删除账户',
|
||||
'journey.comments.failed': '无法保存评论。请重试。',
|
||||
'journey.comments.guest': '访客',
|
||||
'journey.comments.hidden': '隐藏',
|
||||
'journey.comments.hide': '隐藏评论',
|
||||
'journey.comments.invalid': '请输入一个名字和在字符限制内的评论。',
|
||||
'journey.comments.locked': '打开此共享链接以继续。',
|
||||
'journey.comments.publicHint': '开启访客评论后,拥有公开链接的人可以阅读已发布日记条目下的评论。',
|
||||
'journey.comments.send': '发送评论',
|
||||
'journey.comments.show': '显示评论',
|
||||
'journey.comments.title': '评论',
|
||||
'journey.comments.write': '写评论',
|
||||
'journey.follow.closed': '此链接的订阅已关闭。',
|
||||
'journey.follow.confirmedText': '您将通过电子邮件收到{title}的新帖子。',
|
||||
'journey.follow.confirmedTitle': '订阅确认',
|
||||
'journey.follow.failed': '无法更新订阅。请重试。',
|
||||
'journey.follow.invalid': '请输入有效的电子邮件地址。',
|
||||
'journey.follow.invalidText': '确认或退订链接无效或已过期。',
|
||||
'journey.follow.invalidTitle': '订阅链接不可用',
|
||||
'journey.follow.privacy': '您可随时退订任何更新邮件。',
|
||||
'journey.follow.sentText': '如果该地址可以订阅,您将收到一封包含确认链接的电子邮件。',
|
||||
'journey.follow.sentTitle': '请查收您的邮箱',
|
||||
'journey.follow.text': '在新条目发布当天收到电子邮件通知。',
|
||||
'journey.follow.title': '订阅',
|
||||
'journey.follow.unsubscribedText': '您将不再收到关于此旅程的电子邮件。',
|
||||
'journey.follow.unsubscribedTitle': '未订阅',
|
||||
'journey.fromPhotos.create': '创建 {count} 个草稿',
|
||||
'journey.fromPhotos.empty': '没有可用于新条目的相册照片的拍摄时间。',
|
||||
'journey.fromPhotos.noPlace': '无位置',
|
||||
'journey.fromPhotos.photoCount': '{count} 张照片',
|
||||
'journey.fromPhotos.text': '查看群组并选择要创建的草稿。',
|
||||
'journey.fromPhotos.timeRange': '{start} 至 {end}',
|
||||
'journey.fromPhotos.title': '从照片创建日记条目',
|
||||
'journey.fromPhotos.withoutTime': '{count} 张无拍摄时间的照片被跳过。',
|
||||
'journey.public.expiredText': '向旅程的所有者请求新的链接。',
|
||||
'journey.public.expiredTitle': '此链接已过期',
|
||||
'journey.public.lockedText': '输入所有者与你共享的密码。',
|
||||
'journey.public.lockedTitle': '受密码保护的旅行日记',
|
||||
'journey.public.passwordFailed': '无法解锁链接。请重试。',
|
||||
'journey.public.passwordWrong': '该密码不正确。',
|
||||
'journey.public.unlock': '解锁',
|
||||
'journey.recording.gpx.failed': '无法导入 GPX 路线。',
|
||||
'journey.recording.gpx.import': '导入 GPX 路线',
|
||||
'journey.recording.gpx.imported': '导入了 {count} 天的路线',
|
||||
'journey.recording.gpx.removeFailed': '无法移除 GPX 路线。',
|
||||
'journey.recording.gpx.source': 'GPX',
|
||||
'journey.recording.gpx.untimed': '跳过了 {count} 个无时间戳的轨迹点。',
|
||||
'journey.share.allowComments': '允许访客评论',
|
||||
'journey.share.allowCommentsHint': '阅读者可以对已发布的条目进行评论。',
|
||||
'journey.share.allowFollowers': '允许邮件订阅',
|
||||
'journey.share.allowFollowersHint': '阅读者可以在有新条目时收到邮件。',
|
||||
'journey.share.expires': '过期时间 /no_think',
|
||||
'journey.share.expiresNever': '永不过期',
|
||||
'journey.share.followerRemoveFailed': '无法取消关注该订阅者。',
|
||||
'journey.share.followers': '{count} 个订阅者',
|
||||
'journey.share.followersPending': '{count} 个待确认订阅',
|
||||
'journey.share.lastViewed': '最后打开 {date}',
|
||||
'journey.share.needsTimeline': '分享时间线以允许访客评论。',
|
||||
'journey.share.passwordRemoved': '密码已移除',
|
||||
'journey.share.passwordRule': '使用至少 {minLength} 个字符。',
|
||||
'journey.share.passwordSaved': '密码已保存',
|
||||
'journey.share.passwordSet': '设置密码',
|
||||
'journey.share.passwordText': '阅读者需要此密码才能打开共享链接。',
|
||||
'journey.share.passwordTitle': '链接密码',
|
||||
'journey.share.removeFollower': '取消订阅',
|
||||
'journey.share.views': '打开次数:{count}',
|
||||
'journey.studio.mapCoastDetail': '海岸线详情',
|
||||
'journey.studio.mapCoastDetail.auto': '自动',
|
||||
'journey.studio.mapCoastDetail.detailed': '详细',
|
||||
'journey.studio.mapCoastDetail.simple': '简化',
|
||||
'journey.studio.mapScopeCountry': '一个国家',
|
||||
'journey.studio.mapScopeDay': '一天',
|
||||
'journey.studio.mapScopeStop': '一个停靠点',
|
||||
'journey.studio.mapScopeTrip': '一个行程',
|
||||
'journey.studio.mapView': '调整视图',
|
||||
'journey.studio.mapViewDown': '向下平移',
|
||||
'journey.studio.mapViewLeft': '向左平移',
|
||||
'journey.studio.mapViewOwn': '自定义',
|
||||
'journey.studio.mapViewRight': '向右平移',
|
||||
'journey.studio.mapViewUp': '向上平移',
|
||||
'journey.studio.tileDetail': '地图图块细节',
|
||||
};
|
||||
export default journey;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { journeyPublicUnlockRequestSchema } from './journey-public.schema';
|
||||
import {
|
||||
journeyCreateRequestSchema,
|
||||
journeyAddTripRequestSchema,
|
||||
@@ -20,7 +21,6 @@ import {
|
||||
journeyUpdateToolSchema,
|
||||
journeyTrackSchema,
|
||||
} from './journey.schema';
|
||||
import { journeyPublicUnlockRequestSchema } from './journey-public.schema';
|
||||
|
||||
import { describe, it, expect } from 'vitest';
|
||||
|
||||
|
||||
@@ -414,11 +414,12 @@ export type JourneyGalleryVideoRequest = z.infer<typeof journeyGalleryVideoReque
|
||||
export const journeyPreferencesRequestSchema = z.looseObject({});
|
||||
export type JourneyPreferencesRequest = z.infer<typeof journeyPreferencesRequestSchema>;
|
||||
|
||||
/**
|
||||
* A share link's password. bcrypt reads at most 72 bytes, so a longer one would
|
||||
* be cut short without anyone noticing.
|
||||
*/
|
||||
export const journeySharePasswordSchema = z.string().min(4).max(72);
|
||||
export const JOURNEY_SHARE_PASSWORD_MIN_LENGTH = 4;
|
||||
export const JOURNEY_SHARE_PASSWORD_MAX_LENGTH = 72;
|
||||
export const journeySharePasswordSchema = z
|
||||
.string()
|
||||
.min(JOURNEY_SHARE_PASSWORD_MIN_LENGTH)
|
||||
.max(JOURNEY_SHARE_PASSWORD_MAX_LENGTH);
|
||||
|
||||
export const journeyShareLinkRequestSchema = z.looseObject({
|
||||
share_timeline: z.unknown().optional(),
|
||||
|
||||
Reference in New Issue
Block a user