Files
TREK/shared/src/i18n/nl/files.ts
T
Maurice 92c48fba22 fix(files): file notes, links, stars and the trash changed offline wait in the queue and sync once the connection is back
Every file write went straight to the API, so offline a star snapped back
without a word and moving a file to the trash failed with "Failed to delete
file". Notes, the place or booking of a file, a further link, the star, the
trash move, restore, delete for good and emptying the trash now go through
fileRepo and the mutation queue like the other trip data: the local copy
changes at once, and an online write to a file that still has an older one
queued joins the queue behind it, since file writes carry no version token.
The desktop file manager, its assign dialog and the phone's files tab,
menu, link and trash sheets all write through it.

The single file answers carry no ids of further links, so a replayed edit,
star or restore keeps the ones the local copy holds, and the link answer
({ success, links }) writes no row.

What only works online says so instead of failing: an upload shows that it
needs a connection, a place saved with newly picked files is stopped with a
hint, and removing a further link (its row id is known only to the server)
asks to try again once online.

Refs #2601
2026-10-12 19:32:16 +02:00

75 lines
3.5 KiB
TypeScript

import type { TranslationStrings } from '../types';
const files: TranslationStrings = {
'files.filterStarred': 'Met ster',
'files.link': 'Koppelen',
'files.linkTitle': 'Bestand koppelen',
'files.linkEmpty': 'Nog geen plaatsen of boekingen om te koppelen',
'files.menu': 'Meer opties',
'files.uploadErrorSize': 'Bestand is te groot (max. {max} MB)',
'files.title': 'Bestanden',
'files.pageTitle': 'Bestanden en documenten',
'files.subtitle': '{count} bestanden voor {trip}',
'files.subtitle.one': '{count} bestand voor {trip}',
'files.download': 'Downloaden',
'files.openError': 'Bestand kon niet worden geopend',
'files.downloadPdf': 'PDF downloaden',
'files.count': '{count} bestanden',
'files.count.one': '{count} bestand',
'files.uploaded': '{count} geüpload',
'files.uploaded.one': '{count} geüpload',
'files.uploadError': 'Uploaden mislukt',
'files.uploadErrorType': 'Dit bestandstype wordt niet ondersteund',
'files.dropzone': 'Sleep bestanden hierheen',
'files.dropzoneHint': 'of klik om te bladeren',
'files.allowedTypes': 'Afbeeldingen, PDF, DOC, DOCX, XLS, XLSX, TXT, CSV · Max 50 MB',
'files.uploading': 'Uploaden...',
'files.filterAll': 'Alle',
'files.filterPdf': "PDF's",
'files.filterImages': 'Afbeeldingen',
'files.filterDocs': 'Documenten',
'files.filterCollab': 'Collab-notities',
'files.sourceCollab': 'Uit Collab-notities',
'files.empty': 'Nog geen bestanden',
'files.emptyHint': 'Upload bestanden om ze aan je reis toe te voegen',
'files.openTab': 'Openen in nieuw tabblad',
'files.confirm.delete': 'Weet je zeker dat je dit bestand wilt verwijderen?',
'files.toast.deleted': 'Bestand verwijderd',
'files.toast.deleteError': 'Bestand verwijderen mislukt',
'files.sourcePlan': 'Dagplan',
'files.sourceBooking': 'Boeking',
'files.sourceTransport': 'Transport',
'files.attach': 'Bijvoegen',
'files.pasteHint': 'Je kunt ook afbeeldingen plakken vanuit het klembord (Ctrl+V)',
'files.trash': 'Prullenbak',
'files.trashEmpty': 'Prullenbak is leeg',
'files.emptyTrash': 'Prullenbak legen',
'files.restore': 'Herstellen',
'files.star': 'Ster',
'files.unstar': 'Ster verwijderen',
'files.assign': 'Toewijzen',
'files.assignTitle': 'Bestand toewijzen',
'files.assignPlace': 'Plaats',
'files.assignBooking': 'Boeking',
'files.assignTransport': 'Transport',
'files.unassigned': 'Niet toegewezen',
'files.unlink': 'Koppeling verwijderen',
'files.toast.trashed': 'Naar prullenbak verplaatst',
'files.toast.restored': 'Bestand hersteld',
'files.toast.trashEmptied': 'Prullenbak geleegd',
'files.toast.assigned': 'Bestand toegewezen',
'files.toast.assignError': 'Toewijzing mislukt',
'files.toast.restoreError': 'Herstellen mislukt',
'files.confirm.permanentDelete': 'Dit bestand permanent verwijderen? Dit kan niet ongedaan worden gemaakt.',
'files.confirm.emptyTrash':
'Alle bestanden in de prullenbak permanent verwijderen? Dit kan niet ongedaan worden gemaakt.',
'files.noteLabel': 'Notitie',
'files.notePlaceholder': 'Notitie toevoegen...',
'files.uploadNeedsConnection': 'Uploaden heeft een verbinding nodig. Probeer het opnieuw zodra TREK weer online is.',
'files.linkNeedsConnection':
'Deze koppeling verwijderen heeft een verbinding nodig. Probeer het opnieuw zodra TREK weer online is.',
'files.placeFilesNeedConnection':
'Bestanden hebben een verbinding nodig om te uploaden. Verwijder de nieuwe om de plek offline op te slaan, of sla op zodra je weer online bent.',
};
export default files;