Files
TREK/shared/src/i18n/ca/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.4 KiB
TypeScript

import type { TranslationStrings } from '../types';
const files: TranslationStrings = {
'files.title': 'Fitxers',
'files.pageTitle': 'Fitxers i documents',
'files.subtitle': '{count} fitxers per a {trip}',
'files.subtitle.one': '{count} fitxer per a {trip}',
'files.download': 'Baixa',
'files.openError': "No s'ha pogut obrir el fitxer",
'files.downloadPdf': 'Baixa el PDF',
'files.count': '{count} fitxers',
'files.count.one': '{count} fitxer',
'files.uploaded': '{count} fitxers pujats',
'files.uploaded.one': '{count} fitxer pujat',
'files.uploadError': 'La pujada ha fallat',
'files.dropzone': 'Arrossega els fitxers aquí',
'files.dropzoneHint': 'o fes clic per explorar',
'files.allowedTypes': 'Imatges, PDF, DOC, DOCX, XLS, XLSX, TXT, CSV · Màx. 50 MB',
'files.uploading': 'Pujant...',
'files.filterAll': 'Tot',
'files.filterPdf': 'PDF',
'files.filterImages': 'Imatges',
'files.filterDocs': 'Documents',
'files.filterCollab': 'Notes de col·laboració',
'files.sourceCollab': 'Des de notes de col·laboració',
'files.empty': 'Encara no hi ha fitxers',
'files.emptyHint': 'Puja fitxers per adjuntar-los al teu viatge',
'files.openTab': 'Obre en una pestanya nova',
'files.confirm.delete': 'Segur que vols eliminar aquest fitxer?',
'files.toast.deleted': 'Fitxer eliminat',
'files.toast.deleteError': "No s'ha pogut eliminar el fitxer",
'files.sourcePlan': 'Pla diari',
'files.sourceBooking': 'Reserva',
'files.sourceTransport': 'Transport',
'files.attach': 'Adjunta',
'files.pasteHint': 'També pots enganxar imatges des del porta-retalls (Ctrl+V)',
'files.trash': 'Paperera',
'files.trashEmpty': 'La paperera és buida',
'files.emptyTrash': 'Buida la paperera',
'files.restore': 'Restaura',
'files.star': 'Destaca',
'files.unstar': 'Treure el destacat',
'files.assign': 'Assigna',
'files.assignTitle': 'Assigna el fitxer',
'files.assignPlace': 'Lloc',
'files.assignBooking': 'Reserva',
'files.assignTransport': 'Transport',
'files.unassigned': 'Sense assignar',
'files.unlink': "Elimina l'enllaç",
'files.noteLabel': 'Nota',
'files.notePlaceholder': 'Afegeix una nota...',
'files.toast.trashed': 'Mogut a la paperera',
'files.toast.restored': 'Fitxer restaurat',
'files.toast.trashEmptied': 'Paperera buidada',
'files.toast.assigned': 'Fitxer assignat',
'files.toast.assignError': 'Error en assignar',
'files.toast.restoreError': 'Error en restaurar',
'files.confirm.permanentDelete': 'Vols eliminar aquest fitxer permanentment? No es pot desfer.',
'files.confirm.emptyTrash': 'Vols eliminar tots els fitxers de la paperera? No es pot desfer.',
'files.uploadErrorType': 'Aquest tipus de fitxer no és compatible',
'files.filterStarred': 'Destacats',
'files.link': 'Enllaça',
'files.linkTitle': 'Enllaça un fitxer',
'files.linkEmpty': 'Encara no hi ha llocs ni reserves per enllaçar',
'files.menu': 'Més opcions',
'files.uploadErrorSize': 'El fitxer és massa gran (màx. {max} MB)',
'files.uploadNeedsConnection': 'Per pujar cal connexió. Torna-ho a provar quan TREK torni a estar en línia.',
'files.linkNeedsConnection':
'Per treure aquest enllaç cal connexió. Torna-ho a provar quan TREK torni a estar en línia.',
'files.placeFilesNeedConnection':
'Els fitxers necessiten connexió per pujar-se. Treu els nous per desar el lloc sense connexió, o desa quan tornis a estar en línia.',
};
export default files;