The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
fix(journey): gallery photos can be deleted on touch screens and ask before they go
Mauricec94d275cfd3b
diff --git a/client/src/components/Journey/JourneyDetailPageEntryEditor.tsx b/client/src/components/Journey/JourneyDetailPageEntryEditor.tsxindex e4c49980d..950d56907 100644--- a/client/src/components/Journey/JourneyDetailPageEntryEditor.tsx+++ b/client/src/components/Journey/JourneyDetailPageEntryEditor.tsx@@ -29,7 +29,9 @@ const SOURCE_ON = 'border-content bg-surface-secondary text-content'const PHOTO_PANEL = 'mt-2 rounded-[12px] border border-edge-faint bg-surface-secondary'/** A control laid over a photo tile, raised on the card colour so it reads on any picture. */const ON_PHOTO = 'bg-surface-card text-content shadow-sm'-const PHOTO_REMOVE = `absolute end-1 top-1 grid h-5 w-5 place-items-center rounded-full opacity-0 transition-opacity group-hover:opacity-100 ${ON_PHOTO}`+/** A tile control shown on hover, on keyboard focus, and always where there is no hover (#2593). */+const ON_TILE_HOVER = 'opacity-0 transition-opacity group-hover:opacity-100 focus-visible:opacity-100 [@media(hover:none)]:opacity-100'+const PHOTO_REMOVE = `absolute end-1 top-1 grid h-5 w-5 place-items-center rounded-full ${ON_TILE_HOVER} ${ON_PHOTO}`/** What hangs under the location field: the search results, or the note that a search is running. */const DROPDOWN = 'absolute inset-x-0 top-full z-[100] mt-1 rounded-[12px] border border-edge-faint bg-surface-card shadow-dropdown'@@ -409,7 +411,7 @@ export function EntryEditor({ entry, journeyId, tripDates, galleryPhotos, trips,{idx > 0 && photos.length > 1 && (<button type="button"onClick={e => { e.stopPropagation(); photoOrder.makeFirst(idx) }}- className={`absolute bottom-0.5 start-0.5 rounded px-1.5 py-0.5 font-semibold opacity-0 transition-opacity group-hover:opacity-100 ${ON_PHOTO}`}+ className={`absolute bottom-0.5 start-0.5 rounded px-1.5 py-0.5 font-semibold ${ON_TILE_HOVER} ${ON_PHOTO}`}style={fs(8)}>{t('journey.editor.makeFirst')}diff --git a/client/src/components/Journey/JourneyDetailPageGalleryView.test.tsx b/client/src/components/Journey/JourneyDetailPageGalleryView.test.tsxindex 57fefb760..01aaff761 100644--- a/client/src/components/Journey/JourneyDetailPageGalleryView.test.tsx+++ b/client/src/components/Journey/JourneyDetailPageGalleryView.test.tsx@@ -1,4 +1,4 @@-// FE-JRN-GALLERY-001 to FE-JRN-GALLERY-021+// FE-JRN-GALLERY-001 to FE-JRN-GALLERY-024import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest'import { act, useRef, useState } from 'react'@@ -79,8 +79,9 @@ const entries: JourneyEntry[] = [/** Mirrors the page wiring: the gallery reports its connected providers up,and the host renders one button per provider next to Upload. The picker'sAdd goes through the same hook the page takes from useJourneyDetail. */-function GalleryHarness({ gallery, onPhotoClick, onRefresh, onRegisterUpload, onUploadProgress }: {+function GalleryHarness({ gallery, canEdit = true, onPhotoClick, onRefresh, onRegisterUpload, onUploadProgress }: {gallery: GalleryPhoto[]+ canEdit?: booleanonPhotoClick: (photos: GalleryPhoto[], index: number) => voidonRefresh: () => voidonRegisterUpload?: (fn: () => void) => void@@ -100,6 +101,7 @@ function GalleryHarness({ gallery, onPhotoClick, onRefresh, onRegisterUpload, onjourneyId={JOURNEY_ID}userId={1}trips={trips}+ canEdit={canEdit}onPhotoClick={onPhotoClick}onRefresh={onRefresh}onAddProviderPhotos={addPickedPhotos}@@ -111,16 +113,24 @@ function GalleryHarness({ gallery, onPhotoClick, onRefresh, onRegisterUpload, on)}-function mountGallery(gallery: GalleryPhoto[], onRegisterUpload?: (fn: () => void) => void) {+function mountGallery(gallery: GalleryPhoto[], onRegisterUpload?: (fn: () => void) => void, canEdit = true) {const onPhotoClick = vi.fn()const onRefresh = vi.fn()const onUploadProgress = vi.fn()const utils = render(- <GalleryHarness gallery={gallery} onPhotoClick={onPhotoClick} onRefresh={onRefresh} onRegisterUpload={onRegisterUpload} onUploadProgress={onUploadProgress} />,+ <GalleryHarness gallery={gallery} canEdit={canEdit} onPhotoClick={onPhotoClick} onRefresh={onRefresh} onRegisterUpload={onRegisterUpload} onUploadProgress={onUploadProgress} />,)return { ...utils, onPhotoClick, onRefresh, onUploadProgress }}+/** The tile's delete asks first (#2593): the corner button, then the dialog's own Delete. */+async function deleteThroughConfirm(user: ReturnType<typeof userEvent.setup>) {+ await user.click(screen.getByRole('button', { name: 'Delete' }))+ expect(screen.getByText('Delete photo')).toBeInTheDocument()+ const dialogDelete = screen.getAllByRole('button', { name: 'Delete' }).slice(-1)[0]+ await user.click(dialogDelete)+}+function useConnectedImmich() {server.use(http.get('/api/addons', () => HttpResponse.json({@@ -205,7 +215,7 @@ describe('GalleryView', () => {expect(screen.getByText('Colosseum')).toBeInTheDocument()})- it('FE-JRN-GALLERY-007: removes a deleted photo from the store optimistically', async () => {+ it('FE-JRN-GALLERY-007: a confirmed delete removes the photo from the gallery and its entries', async () => {let deleted = falseserver.use(http.delete('/api/journeys/9/gallery/100', () => {deleted = true@@ -220,11 +230,12 @@ describe('GalleryView', () => {},})const user = userEvent.setup()- const { container, onRefresh } = mountGallery([photo])+ const { onRefresh } = mountGallery([photo])- await user.click(container.querySelectorAll('button')[0])+ await deleteThroughConfirm(user)await waitFor(() => expect(deleted).toBe(true))+ await waitFor(() => expect(useJourneyStore.getState().current!.gallery).toHaveLength(0))const current = useJourneyStore.getState().current!expect(current.gallery).toHaveLength(0)expect(current.entries[0].photos).toHaveLength(0)@@ -241,9 +252,9 @@ describe('GalleryView', () => {},})const user = userEvent.setup()- const { container, onRefresh } = mountGallery([photo])+ const { onRefresh } = mountGallery([photo])- await user.click(container.querySelectorAll('button')[0])+ await deleteThroughConfirm(user)await waitFor(() => expect(toastSpy).toHaveBeenCalledWith('Error', 'error', undefined))expect(onRefresh).toHaveBeenCalledTimes(1)@@ -256,13 +267,53 @@ describe('GalleryView', () => {return HttpResponse.json({ ok: true })}))const user = userEvent.setup()- const { container } = mountGallery([buildGalleryPhoto()])+ mountGallery([buildGalleryPhoto()])- await user.click(container.querySelectorAll('button')[0])+ await deleteThroughConfirm(user)expect(deleted).toBe(false)})+ it('FE-JRN-GALLERY-022: cancelling the confirm leaves the photo where it is', async () => {+ let deleted = false+ server.use(http.delete('/api/journeys/9/gallery/100', () => {+ deleted = true+ return HttpResponse.json({ ok: true })+ }))+ const photo = buildGalleryPhoto()+ useJourneyStore.setState({+ current: {+ id: JOURNEY_ID, user_id: 1, title: 'Italy', status: 'active', created_at: 0, updated_at: 0,+ entries: [], gallery: [photo], trips, contributors: [], stats: { entries: 0, photos: 1, places: 0 },+ },+ })+ const user = userEvent.setup()+ const { onPhotoClick } = mountGallery([photo])++ await user.click(screen.getByRole('button', { name: 'Delete' }))+ expect(screen.getByText(/removed from the gallery and from every entry/)).toBeInTheDocument()+ await user.click(screen.getByRole('button', { name: 'Cancel' }))++ expect(screen.queryByText('Delete photo')).not.toBeInTheDocument()+ expect(deleted).toBe(false)+ expect(useJourneyStore.getState().current!.gallery).toHaveLength(1)+ expect(onPhotoClick).not.toHaveBeenCalled()+ })++ it('FE-JRN-GALLERY-023: a viewer gets no delete button on the tiles', () => {+ mountGallery([buildGalleryPhoto()], undefined, false)++ expect(screen.queryByRole('button', { name: 'Delete' })).not.toBeInTheDocument()+ })++ it('FE-JRN-GALLERY-024: the delete button does not wait for a hover on touch screens or keyboard focus', () => {+ mountGallery([buildGalleryPhoto()])++ const button = screen.getByRole('button', { name: 'Delete' })+ expect(button.className).toContain('[@media(hover:none)]:opacity-100')+ expect(button.className).toContain('focus-visible:opacity-100')+ })+it('FE-JRN-GALLERY-010: only offers providers that are enabled and connected', async () => {useConnectedImmich()mountGallery([])diff --git a/client/src/components/Journey/JourneyDetailPageGalleryView.tsx b/client/src/components/Journey/JourneyDetailPageGalleryView.tsxindex f7e7522e2..7f952d649 100644--- a/client/src/components/Journey/JourneyDetailPageGalleryView.tsx+++ b/client/src/components/Journey/JourneyDetailPageGalleryView.tsx@@ -2,7 +2,6 @@ import { useEffect, useState, useRef } from 'react'import { RefreshCw, Camera, X, Play } from 'lucide-react'import { useJourneyStore } from '../../store/journeyStore'import { useTranslation } from '../../i18n'-import { journeyApi } from '../../api/client'import { useToast } from '../shared/Toast'import type { JourneyEntry, GalleryPhoto, JourneyTrip } from '../../store/journeyStore'import { photoUrl, posterlessVideo } from '../../pages/journeyDetail/JourneyDetailPage.helpers'@@ -11,13 +10,16 @@ import { useConnectedPhotoProviders } from './useConnectedPhotoProviders'import { useGalleryUpload } from './useGalleryUpload'import { ScrollTrigger } from './JourneyDetailPageScrollTrigger'import EmptyState from '../shared/EmptyState'+import ConfirmDialog from '../shared/ConfirmDialog'-export function GalleryView({ entries, gallery, journeyId, userId, trips, onPhotoClick, onRefresh, onAddProviderPhotos, onRegisterUpload, onRegisterProviders, onUploadProgress }: {+export function GalleryView({ entries, gallery, journeyId, userId, trips, canEdit, onPhotoClick, onRefresh, onAddProviderPhotos, onRegisterUpload, onRegisterProviders, onUploadProgress }: {entries: JourneyEntry[]gallery: GalleryPhoto[]journeyId: numberuserId: numbertrips: JourneyTrip[]+ /** Owner or editor: only they get the delete on a tile, the server refuses everyone else. */+ canEdit: booleanonPhotoClick: (photos: GalleryPhoto[], index: number) => voidonRefresh: () => void/** What the picker's Add does: the host's useProviderPhotoAdds, shared with the phone screen. */@@ -63,24 +65,15 @@ export function GalleryView({ entries, gallery, journeyId, userId, trips, onPhotconst galleryFileRef = useRef<HTMLInputElement>(null)useEffect(() => { onRegisterUpload?.(() => galleryFileRef.current?.click()) }, [onRegisterUpload])+ // 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 handleDeletePhoto = async (galleryPhotoId: number) => {const store = useJourneyStore.getState()if (!store.current) return-- // Optimistic update — remove from gallery and all entry photo lists- useJourneyStore.setState({- current: {- ...store.current,- gallery: (store.current.gallery || []).filter(p => p.id !== galleryPhotoId),- entries: store.current.entries.map(e => ({- ...e,- photos: e.photos.filter(p => p.id !== galleryPhotoId),- })),- },- })-try {- await journeyApi.deleteGalleryPhoto(journeyId, galleryPhotoId)+ await store.deleteGalleryPhoto(journeyId, galleryPhotoId)} catch {toast.error(t('common.error'))onRefresh()@@ -134,13 +127,17 @@ export function GalleryView({ entries, gallery, journeyId, userId, trips, onPhot</span></div>)}- {/* Delete button */}- <button type="button"- onClick={(e) => { e.stopPropagation(); void handleDeletePhoto(photo.id) }}- className="absolute top-1.5 end-1.5 w-6 h-6 rounded-full bg-black/60 backdrop-blur text-white flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity z-10"- >- <X size={12} />- </button>+ {/* Delete: revealed on hover, always there where there is no hover (#2593) */}+ {canEdit && (+ <button type="button"+ onClick={(e) => { e.stopPropagation(); setDeleteTarget(photo) }}+ onKeyDown={e => e.stopPropagation()}+ aria-label={t('common.delete')}+ className="absolute top-1.5 end-1.5 w-6 h-6 rounded-full bg-black/60 backdrop-blur text-white flex items-center justify-center opacity-0 group-hover:opacity-100 focus-visible:opacity-100 [@media(hover:none)]:w-8 [@media(hover:none)]:h-8 [@media(hover:none)]:opacity-100 transition-opacity z-10"+ >+ <X size={12} />+ </button>+ )}{photo.provider && photo.provider !== 'local' && (<div className="absolute top-1.5 start-1.5"><span className="text-[8px] font-medium px-1.5 py-0.5 rounded-full bg-black/70 backdrop-blur text-white flex items-center gap-1">@@ -150,7 +147,7 @@ export function GalleryView({ entries, gallery, journeyId, userId, trips, onPhot</div>)}{photo.caption && (- <div className="absolute bottom-0 inset-x-0 p-2 bg-gradient-to-t from-black/60 to-transparent opacity-0 group-hover:opacity-100 transition-opacity">+ <div className="absolute bottom-0 inset-x-0 p-2 bg-gradient-to-t from-black/60 to-transparent opacity-0 group-hover:opacity-100 [@media(hover:none)]:opacity-100 transition-opacity"><p className="text-[10px] text-white truncate">{photo.caption}</p></div>)}@@ -162,6 +159,16 @@ export function GalleryView({ entries, gallery, journeyId, userId, trips, onPhot<ScrollTrigger onVisible={() => setVisibleCount(c => c + GALLERY_PAGE)} loading={false} />)}+ <ConfirmDialog+ isOpen={!!deleteTarget}+ onClose={() => setDeleteTarget(null)}+ onConfirm={() => { if (deleteTarget) void handleDeletePhoto(deleteTarget.id) }}+ title={t('journey.gallery.deleteTitle')}+ message={t('journey.gallery.deleteMessage')}+ confirmLabel={t('common.delete')}+ danger+ />+{/* Provider Photo Picker Modal */}{showPicker && (<ProviderPickerdiff --git a/client/src/mobile/screens/journey/MJourneyDetail.tsx b/client/src/mobile/screens/journey/MJourneyDetail.tsxindex 865083da8..2c532c2a5 100644--- a/client/src/mobile/screens/journey/MJourneyDetail.tsx+++ b/client/src/mobile/screens/journey/MJourneyDetail.tsx@@ -1,6 +1,6 @@import { useCallback, useEffect, useMemo, useRef, useState } from 'react'import { useSearchParams } from 'react-router'-import { ChevronLeft, MapPin, Grid3x3, MoreHorizontal, Play, Image, Camera, EyeOff, Settings2 } from 'lucide-react'+import { ChevronLeft, MapPin, Grid3x3, MoreHorizontal, Play, Image, Camera, EyeOff, Settings2, X } from 'lucide-react'import JourneyMap from '../../../components/Journey/JourneyMapAuto'import PhotoLightbox from '../../../components/Journey/PhotoLightbox'import ContributorInviteDialog from '../../../components/Journey/ContributorInviteDialog'@@ -127,6 +127,9 @@ export default function MJourneyDetail() {const [showUploadMenu, setShowUploadMenu] = useState(false)const [showActionMenu, setShowActionMenu] = 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)+ const deleteGalleryPhoto = useJourneyStore(state => state.deleteGalleryPhoto)const dawarichEnabled = useAddonStore(state => state.isEnabled)('dawarich')const [dawarichOpen, setDawarichOpen] = useState(false)/**@@ -288,25 +291,38 @@ export default function MJourneyDetail() {) : (<div className="grid grid-cols-2 gap-2">{gallery.map((photo, i) => (- <button- key={photo.id}- type="button"- onClick={() => openLightbox(gallery, i)}- className="relative aspect-square overflow-hidden rounded-[14px]"- >- {posterlessVideo(photo) ? (- <span className="block h-full w-full bg-[color:var(--m-ic)]" />- ) : (- <img src={photoUrl(photo, 'thumbnail')} alt={photo.caption || ''} loading="lazy" className="h-full w-full object-cover" />- )}- {photo.media_type === 'video' && (- <span className="pointer-events-none absolute inset-0 flex items-center justify-center">- <span className="flex h-9 w-9 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur">- <Play size={16} className="ml-[2px]" fill="currentColor" />+ // A wrapper, not one button: the delete sits beside the tile's own+ // button instead of inside it (#2593).+ <div key={photo.id} className="relative aspect-square overflow-hidden rounded-[14px]">+ <button+ type="button"+ onClick={() => openLightbox(gallery, i)}+ className="relative block h-full w-full"+ >+ {posterlessVideo(photo) ? (+ <span className="block h-full w-full bg-[color:var(--m-ic)]" />+ ) : (+ <img src={photoUrl(photo, 'thumbnail')} alt={photo.caption || ''} loading="lazy" className="h-full w-full object-cover" />+ )}+ {photo.media_type === 'video' && (+ <span className="pointer-events-none absolute inset-0 flex items-center justify-center">+ <span className="flex h-9 w-9 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur">+ <Play size={16} className="ml-[2px]" fill="currentColor" />+ </span></span>- </span>+ )}+ </button>+ {canEditEntries && (+ <button+ type="button"+ onClick={() => setPhotoDeleteTarget(photo)}+ aria-label={t('common.delete')}+ className="absolute end-[6px] top-[6px] flex h-7 w-7 items-center justify-center rounded-full bg-black/60 text-white backdrop-blur"+ >+ <X size={13} />+ </button>)}- </button>+ </div>))}</div>)}@@ -600,6 +616,23 @@ export default function MJourneyDetail() {danger/>+ {/* Delete gallery photo confirm: final, and it leaves every entry that used the photo */}+ <ConfirmDialog+ isOpen={!!photoDeleteTarget}+ onClose={() => setPhotoDeleteTarget(null)}+ onConfirm={() => {+ if (!photoDeleteTarget) return+ deleteGalleryPhoto(current.id, photoDeleteTarget.id).catch(() => {+ toast.error(t('common.error'))+ void loadJourney(Number(id))+ })+ }}+ title={t('journey.gallery.deleteTitle')}+ message={t('journey.gallery.deleteMessage')}+ confirmLabel={t('common.delete')}+ danger+ />+{/* Lightbox */}{lightbox && (<PhotoLightboxdiff --git a/client/src/pages/JourneyDetailPage.tsx b/client/src/pages/JourneyDetailPage.tsxindex 483c51950..09d725480 100644--- a/client/src/pages/JourneyDetailPage.tsx+++ b/client/src/pages/JourneyDetailPage.tsx@@ -618,6 +618,7 @@ function JourneyDetailPageDesktop() {journeyId={current.id}userId={useAuthStore.getState().user?.id || 0}trips={current.trips}+ canEdit={canEditEntries}onPhotoClick={(photos, idx) => setLightbox({ photos: photos.map(p => ({ id: p.id, src: photoUrl(p, 'original'), caption: p.caption ?? null, provider: p.provider, asset_id: p.asset_id, owner_id: p.owner_id, mediaType: p.media_type })), index: idx })}onRefresh={() => loadJourney(Number(id))}onAddProviderPhotos={addPickedProviderPhotos}diff --git a/client/tests/unit/mobile/journey/MJourneyDetail.test.tsx b/client/tests/unit/mobile/journey/MJourneyDetail.test.tsxindex 74d4ccc14..f708f9e45 100644--- a/client/tests/unit/mobile/journey/MJourneyDetail.test.tsx+++ b/client/tests/unit/mobile/journey/MJourneyDetail.test.tsx@@ -1,4 +1,4 @@-// FE-MOB-JDET-001 to FE-MOB-JDET-039+// FE-MOB-JDET-001 to FE-MOB-JDET-043import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest';import { render, screen, fireEvent, waitFor, act } from '../../../helpers/render';import MJourneyDetail from '../../../../src/mobile/screens/journey/MJourneyDetail';@@ -661,4 +661,54 @@ describe('MJourneyDetail', () => {const { container } = setup();expect(container.firstElementChild).toHaveClass('h-dvh');});+ it('FE-MOB-JDET-040: an editor gets a delete button on every gallery tile, a viewer none (#2593)', () => {+ const gallery = [buildGalleryPhoto(), buildGalleryPhoto({ id: 502, photo_id: 901 })];+ const { unmount } = setup({ view: 'gallery', current: buildDetail({ gallery }) });+ expect(screen.getAllByRole('button', { name: 'common.delete' })).toHaveLength(2);+ unmount();++ setup({ view: 'gallery', current: buildDetail({ gallery }), canEditEntries: false });+ expect(screen.queryByRole('button', { name: 'common.delete' })).not.toBeInTheDocument();+ });++ it('FE-MOB-JDET-041: the tile delete asks first and only then deletes the photo', async () => {+ const deleteGalleryPhoto = vi.fn(async () => {});+ useJourneyStore.setState({ deleteGalleryPhoto } as never);+ const gallery = [buildGalleryPhoto(), buildGalleryPhoto({ id: 502, photo_id: 901 })];+ const { hook } = setup({ view: 'gallery', current: buildDetail({ gallery }) });++ fireEvent.click(screen.getAllByRole('button', { name: 'common.delete' })[1]);+ expect(hook.setLightbox).not.toHaveBeenCalled();+ expect(deleteGalleryPhoto).not.toHaveBeenCalled();+ expect(screen.getByText('journey.gallery.deleteMessage')).toBeInTheDocument();++ const confirm = screen.getAllByRole('button', { name: 'common.delete' }).slice(-1)[0];+ fireEvent.click(confirm);+ await waitFor(() => expect(deleteGalleryPhoto).toHaveBeenCalledWith(12, 502));+ expect(screen.queryByText('journey.gallery.deleteMessage')).not.toBeInTheDocument();+ });++ it('FE-MOB-JDET-042: cancelling the photo confirm deletes nothing', () => {+ const deleteGalleryPhoto = vi.fn(async () => {});+ useJourneyStore.setState({ deleteGalleryPhoto } as never);+ setup({ view: 'gallery', current: buildDetail({ gallery: [buildGalleryPhoto()] }) });++ fireEvent.click(screen.getByRole('button', { name: 'common.delete' }));+ fireEvent.click(screen.getByRole('button', { name: 'Cancel' }));++ expect(screen.queryByText('journey.gallery.deleteMessage')).not.toBeInTheDocument();+ expect(deleteGalleryPhoto).not.toHaveBeenCalled();+ });++ it('FE-MOB-JDET-043: a failed photo delete reports it and reloads the journey', async () => {+ const deleteGalleryPhoto = vi.fn(async () => { throw new Error('nope'); });+ useJourneyStore.setState({ deleteGalleryPhoto } as never);+ const { hook } = setup({ view: 'gallery', current: buildDetail({ gallery: [buildGalleryPhoto()] }) });++ fireEvent.click(screen.getByRole('button', { name: 'common.delete' }));+ fireEvent.click(screen.getAllByRole('button', { name: 'common.delete' }).slice(-1)[0]);++ await waitFor(() => expect(toast.error).toHaveBeenCalledWith('common.error'));+ expect(hook.loadJourney).toHaveBeenCalledWith(12);+ });});diff --git a/shared/src/i18n/ar/journey.ts b/shared/src/i18n/ar/journey.tsindex beeace7b8..e77e4b8aa 100644--- a/shared/src/i18n/ar/journey.ts+++ b/shared/src/i18n/ar/journey.ts@@ -44,6 +44,8 @@ const journey: TranslationStrings = {'journey.settings.endDescription': 'يخفي شارة البث المباشر. يمكنك إعادة الفتح في أي وقت.','journey.settings.failedToDelete': 'فشل في الحذف','journey.entries.deleteTitle': 'حذف الإدخال',+ 'journey.gallery.deleteTitle': 'حذف الصورة',+ 'journey.gallery.deleteMessage': 'ستُزال هذه الصورة من المعرض ومن كل إدخال تظهر فيه. لا يمكن التراجع عن ذلك.','journey.photosUploaded': 'تم رفع {count} صورة','journey.photosUploaded.zero': 'لم يتم رفع أي صورة','journey.photosUploaded.one': 'تم رفع صورة واحدة',diff --git a/shared/src/i18n/az/journey.ts b/shared/src/i18n/az/journey.tsindex 408970e70..2fb632451 100644--- a/shared/src/i18n/az/journey.ts+++ b/shared/src/i18n/az/journey.ts@@ -259,6 +259,8 @@ const journey: TranslationStrings = {'journey.settings.failedToDelete': 'Silmək mümkün olmadı','journey.entries.deleteTitle': 'Qeydi sil',+ 'journey.gallery.deleteTitle': 'Fotonu sil',+ 'journey.gallery.deleteMessage': 'Bu foto qalereyadan və istifadə olunduğu bütün qeydlərdən silinəcək. Bunu geri qaytarmaq mümkün deyil.','journey.photosUploaded': '{count} foto yükləndi','journey.photosUploaded.one': '{count} foto yükləndi','journey.photosUploadFailed': 'Bəzi fotoları yükləmək mümkün olmadı',diff --git a/shared/src/i18n/br/journey.ts b/shared/src/i18n/br/journey.tsindex fda087c0b..7b613dca3 100644--- a/shared/src/i18n/br/journey.ts+++ b/shared/src/i18n/br/journey.ts@@ -227,6 +227,8 @@ const journey: TranslationStrings = {'journey.settings.coverFailed': 'Falha no envio','journey.settings.failedToDelete': 'Falha ao excluir','journey.entries.deleteTitle': 'Excluir entrada',+ 'journey.gallery.deleteTitle': 'Excluir foto',+ 'journey.gallery.deleteMessage': 'Esta foto será removida da galeria e de todas as entradas em que aparece. Isso não pode ser desfeito.','journey.photosUploaded': '{count} fotos enviadas','journey.photosUploaded.one': '{count} foto enviada','journey.photosUploadFailed': 'Algumas fotos não foram enviadas',diff --git a/shared/src/i18n/ca/journey.ts b/shared/src/i18n/ca/journey.tsindex 84f84e1dd..f0da1b688 100644--- a/shared/src/i18n/ca/journey.ts+++ b/shared/src/i18n/ca/journey.ts@@ -227,6 +227,8 @@ const journey: TranslationStrings = {'journey.settings.coverFailed': 'Error en pujar','journey.settings.failedToDelete': 'Error en eliminar','journey.entries.deleteTitle': "Elimina l'entrada",+ 'journey.gallery.deleteTitle': 'Elimina la foto',+ 'journey.gallery.deleteMessage': "Aquesta foto s'eliminarà de la galeria i de totes les entrades on apareix. No es pot desfer.",'journey.photosUploaded': '{count} fotos pujades','journey.photosUploaded.one': '{count} foto pujada','journey.photosUploadFailed': "Algunes fotos no s'han pogut pujar",diff --git a/shared/src/i18n/cs/journey.ts b/shared/src/i18n/cs/journey.tsindex 67e940f13..24553eb26 100644--- a/shared/src/i18n/cs/journey.ts+++ b/shared/src/i18n/cs/journey.ts@@ -230,6 +230,8 @@ const journey: TranslationStrings = {'journey.settings.coverFailed': 'Nahrávání selhalo','journey.settings.failedToDelete': 'Smazání se nezdařilo','journey.entries.deleteTitle': 'Smazat záznam',+ 'journey.gallery.deleteTitle': 'Smazat fotku',+ 'journey.gallery.deleteMessage': 'Tato fotka zmizí z galerie i ze všech záznamů, ve kterých je použita. Tuto akci nelze vrátit.','journey.photosUploaded': '{count} fotografií nahráno','journey.photosUploaded.one': '{count} fotografie nahrána','journey.photosUploaded.few': '{count} fotografie nahrány',diff --git a/shared/src/i18n/de/journey.ts b/shared/src/i18n/de/journey.tsindex 6dd986159..5b0c449c7 100644--- a/shared/src/i18n/de/journey.ts+++ b/shared/src/i18n/de/journey.ts@@ -231,6 +231,8 @@ const journey: TranslationStrings = {'journey.settings.coverFailed': 'Upload fehlgeschlagen','journey.settings.failedToDelete': 'Löschen fehlgeschlagen','journey.entries.deleteTitle': 'Eintrag löschen',+ 'journey.gallery.deleteTitle': 'Foto löschen',+ 'journey.gallery.deleteMessage': 'Das Foto verschwindet aus der Galerie und aus allen Einträgen, in denen es verwendet wird. Das kann nicht rückgängig gemacht werden.','journey.photosUploaded': '{count} Fotos hochgeladen','journey.photosUploaded.one': '{count} Foto hochgeladen','journey.photosUploadFailed': 'Einige Fotos konnten nicht hochgeladen werden',diff --git a/shared/src/i18n/en/journey.ts b/shared/src/i18n/en/journey.tsindex 87fb20e42..0eea09407 100644--- a/shared/src/i18n/en/journey.ts+++ b/shared/src/i18n/en/journey.ts@@ -238,6 +238,8 @@ const journey: TranslationStrings = {'journey.settings.coverFailed': 'Upload failed','journey.settings.failedToDelete': 'Failed to delete','journey.entries.deleteTitle': 'Delete Entry',+ 'journey.gallery.deleteTitle': 'Delete photo',+ 'journey.gallery.deleteMessage': 'This photo will be removed from the gallery and from every entry it appears in. This cannot be undone.','journey.photosUploaded': '{count} photos uploaded','journey.photosUploaded.one': '{count} photo uploaded','journey.photosUploadFailed': 'Some photos failed to upload',diff --git a/shared/src/i18n/es/journey.ts b/shared/src/i18n/es/journey.tsindex 3c65b69cc..7b775a345 100644--- a/shared/src/i18n/es/journey.ts+++ b/shared/src/i18n/es/journey.ts@@ -227,6 +227,8 @@ const journey: TranslationStrings = {'journey.settings.coverFailed': 'Error al subir','journey.settings.failedToDelete': 'Error al eliminar','journey.entries.deleteTitle': 'Eliminar entrada',+ 'journey.gallery.deleteTitle': 'Eliminar foto',+ 'journey.gallery.deleteMessage': 'Esta foto se quitará de la galería y de todas las entradas en las que aparece. No se puede deshacer.','journey.photosUploaded': '{count} fotos subidas','journey.photosUploaded.one': '{count} foto subida','journey.photosUploadFailed': 'Algunas fotos no se pudieron subir',diff --git a/shared/src/i18n/et/journey.ts b/shared/src/i18n/et/journey.tsindex ac58fba4f..b7c7758ca 100644--- a/shared/src/i18n/et/journey.ts+++ b/shared/src/i18n/et/journey.ts@@ -240,6 +240,8 @@ const journey: TranslationStrings = {'journey.settings.coverFailed': 'Üleslaadimine ebaõnnestus','journey.settings.failedToDelete': 'Kustutamine ebaõnnestus','journey.entries.deleteTitle': 'Kustuta sissekanne',+ 'journey.gallery.deleteTitle': 'Kustuta foto',+ 'journey.gallery.deleteMessage': 'See foto eemaldatakse galeriist ja kõigist sissekannetest, kus seda kasutatakse. Seda ei saa tagasi võtta.','journey.photosUploaded': '{count} fotot üles laaditud','journey.photosUploaded.one': '{count} foto üles laaditud','journey.photosUploadFailed': 'Mõne foto üleslaadimine ebaõnnestus',diff --git a/shared/src/i18n/fr/journey.ts b/shared/src/i18n/fr/journey.tsindex 47d78a485..d23e4efb7 100644--- a/shared/src/i18n/fr/journey.ts+++ b/shared/src/i18n/fr/journey.ts@@ -227,6 +227,8 @@ const journey: TranslationStrings = {'journey.settings.coverFailed': 'Échec du téléversement','journey.settings.failedToDelete': 'Échec de la suppression','journey.entries.deleteTitle': "Supprimer l'entrée",+ 'journey.gallery.deleteTitle': 'Supprimer la photo',+ 'journey.gallery.deleteMessage': 'Cette photo sera retirée de la galerie et de toutes les entrées où elle apparaît. Cette action est irréversible.','journey.photosUploaded': '{count} photos téléversées','journey.photosUploaded.one': '{count} photo téléversée','journey.photosUploadFailed': "Certaines photos n'ont pas pu être téléversées",diff --git a/shared/src/i18n/gr/journey.ts b/shared/src/i18n/gr/journey.tsindex 496b50b6d..8bef78f21 100644--- a/shared/src/i18n/gr/journey.ts+++ b/shared/src/i18n/gr/journey.ts@@ -235,6 +235,8 @@ const journey: TranslationStrings = {'journey.settings.coverFailed': 'Η μεταφόρτωση απέτυχε','journey.settings.failedToDelete': 'Αποτυχία διαγραφής','journey.entries.deleteTitle': 'Διαγραφή Καταχώρησης',+ 'journey.gallery.deleteTitle': 'Διαγραφή φωτογραφίας',+ 'journey.gallery.deleteMessage': 'Η φωτογραφία θα αφαιρεθεί από τη συλλογή και από κάθε καταχώρηση στην οποία εμφανίζεται. Αυτό δεν μπορεί να αναιρεθεί.','journey.photosUploaded': '{count} φωτογραφίες μεταφορτώθηκαν','journey.photosUploaded.one': '{count} φωτογραφία μεταφορτώθηκε','journey.photosUploadFailed': 'Ορισμένες φωτογραφίες απέτυχαν να μεταφορτωθούν',diff --git a/shared/src/i18n/hu/journey.ts b/shared/src/i18n/hu/journey.tsindex 3a016b14e..81a2d6861 100644--- a/shared/src/i18n/hu/journey.ts+++ b/shared/src/i18n/hu/journey.ts@@ -226,6 +226,8 @@ const journey: TranslationStrings = {'journey.settings.coverFailed': 'A feltöltés sikertelen','journey.settings.failedToDelete': 'Törlés sikertelen','journey.entries.deleteTitle': 'Bejegyzés törlése',+ 'journey.gallery.deleteTitle': 'Fotó törlése',+ 'journey.gallery.deleteMessage': 'A fotó eltűnik a galériából és minden bejegyzésből, amelyben szerepel. Ez nem vonható vissza.','journey.photosUploaded': '{count} fotó feltöltve','journey.photosUploaded.one': '{count} fotó feltöltve','journey.photosUploadFailed': 'Néhány fotót nem sikerült feltölteni',diff --git a/shared/src/i18n/id/journey.ts b/shared/src/i18n/id/journey.tsindex 342dfdb32..69b3dbf2d 100644--- a/shared/src/i18n/id/journey.ts+++ b/shared/src/i18n/id/journey.ts@@ -221,6 +221,8 @@ const journey: TranslationStrings = {'journey.settings.coverFailed': 'Unggah gagal','journey.settings.failedToDelete': 'Gagal menghapus','journey.entries.deleteTitle': 'Hapus Entri',+ 'journey.gallery.deleteTitle': 'Hapus foto',+ 'journey.gallery.deleteMessage': 'Foto ini akan dihapus dari galeri dan dari setiap entri yang memakainya. Tindakan ini tidak dapat dibatalkan.','journey.photosUploaded': '{count} foto diunggah','journey.photosUploadFailed': 'Beberapa foto gagal diunggah','journey.photosAdded': '{count} foto ditambahkan',diff --git a/shared/src/i18n/it/journey.ts b/shared/src/i18n/it/journey.tsindex 58707e3bb..bcb11e85f 100644--- a/shared/src/i18n/it/journey.ts+++ b/shared/src/i18n/it/journey.ts@@ -226,6 +226,8 @@ const journey: TranslationStrings = {'journey.settings.coverFailed': 'Caricamento fallito','journey.settings.failedToDelete': 'Eliminazione non riuscita','journey.entries.deleteTitle': 'Elimina voce',+ 'journey.gallery.deleteTitle': 'Elimina foto',+ 'journey.gallery.deleteMessage': 'Questa foto verrà rimossa dalla galleria e da tutte le voci in cui compare. Non è possibile annullare.','journey.photosUploaded': '{count} foto caricate','journey.photosUploaded.one': '{count} foto caricata','journey.photosUploadFailed': 'Alcune foto non sono state caricate',diff --git a/shared/src/i18n/ja/journey.ts b/shared/src/i18n/ja/journey.tsindex 04c158717..7f05dd23d 100644--- a/shared/src/i18n/ja/journey.ts+++ b/shared/src/i18n/ja/journey.ts@@ -222,6 +222,8 @@ const journey: TranslationStrings = {'journey.settings.coverFailed': 'アップロードに失敗しました','journey.settings.failedToDelete': '削除に失敗しました','journey.entries.deleteTitle': 'エントリーを削除',+ 'journey.gallery.deleteTitle': '写真を削除',+ 'journey.gallery.deleteMessage': 'この写真はギャラリーと、使われているすべてのエントリーから削除されます。元に戻すことはできません。','journey.photosUploaded': '{count}枚の写真をアップロードしました','journey.photosAdded': '{count}枚の写真を追加しました','journey.public.notFound': '見つかりません',diff --git a/shared/src/i18n/ko/journey.ts b/shared/src/i18n/ko/journey.tsindex d1a0423d3..448ec05dc 100644--- a/shared/src/i18n/ko/journey.ts+++ b/shared/src/i18n/ko/journey.ts@@ -221,6 +221,8 @@ const journey: TranslationStrings = {'journey.settings.coverFailed': '업로드 실패','journey.settings.failedToDelete': '삭제 실패','journey.entries.deleteTitle': '항목 삭제',+ 'journey.gallery.deleteTitle': '사진 삭제',+ 'journey.gallery.deleteMessage': '이 사진은 갤러리와 이 사진이 사용된 모든 항목에서 삭제됩니다. 되돌릴 수 없습니다.','journey.photosUploaded': '사진 {count}장이 업로드되었습니다','journey.photosAdded': '사진 {count}장이 추가되었습니다','journey.public.notFound': '찾을 수 없습니다',diff --git a/shared/src/i18n/nl/journey.ts b/shared/src/i18n/nl/journey.tsindex 7815936ae..273e6d2a4 100644--- a/shared/src/i18n/nl/journey.ts+++ b/shared/src/i18n/nl/journey.ts@@ -228,6 +228,8 @@ const journey: TranslationStrings = {'journey.settings.coverFailed': 'Uploaden mislukt','journey.settings.failedToDelete': 'Verwijderen mislukt','journey.entries.deleteTitle': 'Vermelding verwijderen',+ 'journey.gallery.deleteTitle': 'Foto verwijderen',+ 'journey.gallery.deleteMessage': 'Deze foto wordt verwijderd uit de galerij en uit elke vermelding waarin hij voorkomt. Dit kan niet ongedaan worden gemaakt.','journey.photosUploaded': "{count} foto's geüpload",'journey.photosUploaded.one': '{count} foto geüpload','journey.photosUploadFailed': "Sommige foto's konden niet worden geüpload",diff --git a/shared/src/i18n/pl/journey.ts b/shared/src/i18n/pl/journey.tsindex 795a6566d..8103fc4a7 100644--- a/shared/src/i18n/pl/journey.ts+++ b/shared/src/i18n/pl/journey.ts@@ -236,6 +236,8 @@ const journey: TranslationStrings = {'journey.settings.coverFailed': 'Przesyłanie nie powiodło się','journey.settings.failedToDelete': 'Nie udało się usunąć','journey.entries.deleteTitle': 'Usuń wpis',+ 'journey.gallery.deleteTitle': 'Usuń zdjęcie',+ 'journey.gallery.deleteMessage': 'To zdjęcie zniknie z galerii i ze wszystkich wpisów, w których jest użyte. Tej operacji nie można cofnąć.','journey.photosUploaded': 'Przesłano {count} zdjęcia','journey.photosUploaded.one': 'Przesłano {count} zdjęcie','journey.photosUploaded.few': 'Przesłano {count} zdjęcia',diff --git a/shared/src/i18n/ru/journey.ts b/shared/src/i18n/ru/journey.tsindex f7f9b431e..d7aba693d 100644--- a/shared/src/i18n/ru/journey.ts+++ b/shared/src/i18n/ru/journey.ts@@ -236,6 +236,8 @@ const journey: TranslationStrings = {'journey.settings.coverFailed': 'Загрузка не удалась','journey.settings.failedToDelete': 'Не удалось удалить','journey.entries.deleteTitle': 'Удалить запись',+ 'journey.gallery.deleteTitle': 'Удалить фото',+ 'journey.gallery.deleteMessage': 'Фото будет удалено из галереи и из всех записей, где оно используется. Это действие нельзя отменить.','journey.photosUploaded': '{count} фото загружено','journey.photosUploaded.one': '{count} фото загружено','journey.photosUploaded.few': '{count} фото загружены',diff --git a/shared/src/i18n/sk/journey.ts b/shared/src/i18n/sk/journey.tsindex 672ebd2ce..3dde74bbd 100644--- a/shared/src/i18n/sk/journey.ts+++ b/shared/src/i18n/sk/journey.ts@@ -243,6 +243,8 @@ const journey: TranslationStrings = {'journey.settings.coverFailed': 'Nahrávanie zlyhalo','journey.settings.failedToDelete': 'Odstránenie zlyhalo','journey.entries.deleteTitle': 'Odstrániť záznam',+ 'journey.gallery.deleteTitle': 'Odstrániť fotku',+ 'journey.gallery.deleteMessage': 'Táto fotka zmizne z galérie aj zo všetkých záznamov, v ktorých je použitá. Túto akciu nie je možné vrátiť.','journey.photosUploaded': '{count} fotiek nahraných','journey.photosUploaded.one': '{count} fotka nahraná','journey.photosUploaded.few': '{count} fotky nahrané',diff --git a/shared/src/i18n/sv/journey.ts b/shared/src/i18n/sv/journey.tsindex 413dd0b55..9aa8060b0 100644--- a/shared/src/i18n/sv/journey.ts+++ b/shared/src/i18n/sv/journey.ts@@ -232,6 +232,8 @@ const journey: TranslationStrings = {'journey.settings.coverFailed': 'Uppladdning misslyckades','journey.settings.failedToDelete': 'Kunde inte ta bort','journey.entries.deleteTitle': 'Ta bort inlägg',+ 'journey.gallery.deleteTitle': 'Ta bort foto',+ 'journey.gallery.deleteMessage': 'Fotot tas bort från galleriet och från alla inlägg där det används. Detta kan inte ångras.','journey.photosUploaded': '{count} foton uppladdade','journey.photosUploaded.one': '{count} foto uppladdat','journey.photosUploadFailed': 'Några foton kunde inte laddas upp',diff --git a/shared/src/i18n/th/journey.ts b/shared/src/i18n/th/journey.tsindex 60b628b6b..d1e90b6a1 100644--- a/shared/src/i18n/th/journey.ts+++ b/shared/src/i18n/th/journey.ts@@ -232,6 +232,8 @@ const journey: TranslationStrings = {'journey.settings.coverFailed': 'การอัปโหลดล้มเหลว','journey.settings.failedToDelete': 'ลบไม่สำเร็จ','journey.entries.deleteTitle': 'ลบรายการ',+ 'journey.gallery.deleteTitle': 'ลบรูปภาพ',+ 'journey.gallery.deleteMessage': 'รูปภาพนี้จะถูกลบออกจากแกลเลอรีและจากทุกรายการที่ใช้รูปนี้ ไม่สามารถย้อนกลับได้','journey.photosUploaded': 'อัปโหลดรูปภาพ {count} รูปแล้ว','journey.photosUploadFailed': 'รูปภาพบางรูปไม่สามารถอัปโหลดได้','journey.photosAdded': 'เพิ่มรูปภาพ {count} รูปแล้ว',diff --git a/shared/src/i18n/tr/journey.ts b/shared/src/i18n/tr/journey.tsindex 81aee2d64..a25c1acac 100644--- a/shared/src/i18n/tr/journey.ts+++ b/shared/src/i18n/tr/journey.ts@@ -227,6 +227,8 @@ const journey: TranslationStrings = {'journey.settings.coverFailed': 'Yükleme başarısız oldu','journey.settings.failedToDelete': 'Silinemedi','journey.entries.deleteTitle': 'Kaydı Sil',+ 'journey.gallery.deleteTitle': 'Fotoğrafı sil',+ 'journey.gallery.deleteMessage': 'Bu fotoğraf galeriden ve kullanıldığı tüm kayıtlardan kaldırılacak. Bu işlem geri alınamaz.','journey.photosUploaded': '{count} fotoğraf yüklendi','journey.photosUploaded.one': '{count} fotoğraf yüklendi','journey.photosAdded': '{count} fotoğraf eklendi',diff --git a/shared/src/i18n/uk/journey.ts b/shared/src/i18n/uk/journey.tsindex 1cd3c2aa2..d3c89409e 100644--- a/shared/src/i18n/uk/journey.ts+++ b/shared/src/i18n/uk/journey.ts@@ -238,6 +238,8 @@ const journey: TranslationStrings = {'journey.settings.coverFailed': 'Завантаження не вдалося','journey.settings.failedToDelete': 'Не вдалося видалити','journey.entries.deleteTitle': 'Видалити запис',+ 'journey.gallery.deleteTitle': 'Видалити фото',+ 'journey.gallery.deleteMessage': 'Фото буде видалено з галереї та з усіх записів, у яких воно використовується. Цю дію не можна скасувати.','journey.photosUploaded': '{count} фото завантажено','journey.photosUploaded.one': '{count} фото завантажено','journey.photosUploaded.few': '{count} фото завантажено',diff --git a/shared/src/i18n/vi/journey.ts b/shared/src/i18n/vi/journey.tsindex 1e4fb671b..e8914ec12 100644--- a/shared/src/i18n/vi/journey.ts+++ b/shared/src/i18n/vi/journey.ts@@ -227,6 +227,8 @@ const journey: TranslationStrings = {'journey.settings.coverFailed': 'Tải lên không thành công','journey.settings.failedToDelete': 'Không thể xóa','journey.entries.deleteTitle': 'Xóa mục nhập',+ 'journey.gallery.deleteTitle': 'Xóa ảnh',+ 'journey.gallery.deleteMessage': 'Ảnh này sẽ bị xóa khỏi thư viện và khỏi mọi mục nhập có dùng ảnh. Không thể hoàn tác.','journey.photosUploaded': '{count} ảnh đã được tải lên','journey.photosUploadFailed': 'Một số ảnh không thể tải lên','journey.photosAdded': 'Đã thêm {count} ảnh',diff --git a/shared/src/i18n/zh-TW/journey.ts b/shared/src/i18n/zh-TW/journey.tsindex dbfdce08e..d26c0fecc 100644--- a/shared/src/i18n/zh-TW/journey.ts+++ b/shared/src/i18n/zh-TW/journey.ts@@ -218,6 +218,8 @@ const journey: TranslationStrings = {'journey.settings.coverFailed': '上傳失敗','journey.settings.failedToDelete': '刪除失敗','journey.entries.deleteTitle': '刪除條目',+ 'journey.gallery.deleteTitle': '刪除照片',+ 'journey.gallery.deleteMessage': '這張照片將從相簿以及所有使用它的條目中移除。此操作無法復原。','journey.photosUploaded': '{count} 張照片已上傳','journey.photosUploadFailed': '部分照片上傳失敗','journey.photosAdded': '{count} 張照片已新增',diff --git a/shared/src/i18n/zh/journey.ts b/shared/src/i18n/zh/journey.tsindex 788d0a449..114075db6 100644--- a/shared/src/i18n/zh/journey.ts+++ b/shared/src/i18n/zh/journey.ts@@ -218,6 +218,8 @@ const journey: TranslationStrings = {'journey.settings.coverFailed': '上传失败','journey.settings.failedToDelete': '删除失败','journey.entries.deleteTitle': '删除条目',+ 'journey.gallery.deleteTitle': '删除照片',+ 'journey.gallery.deleteMessage': '这张照片将从相册以及所有使用它的条目中移除。此操作无法撤销。','journey.photosUploaded': '{count} 张照片已上传','journey.photosUploadFailed': '部分照片上传失败','journey.photosAdded': '{count} 张照片已添加',