mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-27 07:07:31 +00:00
92c48fba22
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
76 lines
3.5 KiB
TypeScript
76 lines
3.5 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const files: TranslationStrings = {
|
|
'files.filterStarred': 'Označené',
|
|
'files.link': 'Propojit',
|
|
'files.linkTitle': 'Propojit soubor',
|
|
'files.linkEmpty': 'Zatím nejsou žádná místa ani rezervace k propojení',
|
|
'files.menu': 'Další možnosti',
|
|
'files.uploadErrorSize': 'Soubor je příliš velký (max. {max} MB)',
|
|
'files.title': 'Soubory',
|
|
'files.pageTitle': 'Soubory a dokumenty',
|
|
'files.subtitle': '{count} souborů pro {trip}',
|
|
'files.subtitle.one': '{count} soubor pro {trip}',
|
|
'files.subtitle.few': '{count} soubory pro {trip}',
|
|
'files.download': 'Stáhnout',
|
|
'files.openError': 'Soubor nelze otevřít',
|
|
'files.downloadPdf': 'Stáhnout PDF',
|
|
'files.count': '{count} souborů',
|
|
'files.count.one': '{count} soubor',
|
|
'files.count.few': '{count} soubory',
|
|
'files.uploaded': 'Nahráno {count} souborů',
|
|
'files.uploaded.one': 'Nahrán {count} soubor',
|
|
'files.uploaded.few': 'Nahrány {count} soubory',
|
|
'files.uploadError': 'Nahrávání se nezdařilo',
|
|
'files.uploadErrorType': 'Tento typ souboru není podporován',
|
|
'files.dropzone': 'Přetáhněte soubory sem',
|
|
'files.dropzoneHint': 'nebo klikněte pro výběr',
|
|
'files.allowedTypes': 'Obrázky, PDF, DOC, DOCX, XLS, XLSX, TXT, CSV · Max 50 MB',
|
|
'files.uploading': 'Nahrávání...',
|
|
'files.filterAll': 'Vše',
|
|
'files.filterPdf': 'PDF',
|
|
'files.filterImages': 'Obrázky',
|
|
'files.filterDocs': 'Dokumenty',
|
|
'files.filterCollab': 'Poznámky spolupráce',
|
|
'files.sourceCollab': 'Z poznámek spolupráce',
|
|
'files.empty': 'Zatím žádné soubory',
|
|
'files.emptyHint': 'Nahrajte soubory k vaší cestě',
|
|
'files.openTab': 'Otevřít v nové kartě',
|
|
'files.confirm.delete': 'Opravdu chcete smazat tento soubor?',
|
|
'files.toast.deleted': 'Soubor byl smazán',
|
|
'files.toast.deleteError': 'Nepodařilo se smazat soubor',
|
|
'files.sourcePlan': 'Denní plán',
|
|
'files.sourceBooking': 'Rezervace',
|
|
'files.sourceTransport': 'Doprava',
|
|
'files.attach': 'Přiložit',
|
|
'files.pasteHint': 'Můžete také vložit obrázek ze schránky (Ctrl+V)',
|
|
'files.trash': 'Koš',
|
|
'files.trashEmpty': 'Koš je prázdný',
|
|
'files.emptyTrash': 'Vysypat koš',
|
|
'files.restore': 'Obnovit',
|
|
'files.star': 'Označit hvězdičkou',
|
|
'files.unstar': 'Odebrat hvězdičku',
|
|
'files.assign': 'Přiřadit',
|
|
'files.assignTitle': 'Přiřadit soubor',
|
|
'files.assignPlace': 'Místo',
|
|
'files.assignBooking': 'Rezervace',
|
|
'files.assignTransport': 'Doprava',
|
|
'files.unassigned': 'Nepřiřazeno',
|
|
'files.unlink': 'Zrušit propojení',
|
|
'files.toast.trashed': 'Přesunuto do koše',
|
|
'files.toast.restored': 'Soubor byl obnoven',
|
|
'files.toast.trashEmptied': 'Koš byl vysypán',
|
|
'files.toast.assigned': 'Soubor byl přiřazen',
|
|
'files.toast.assignError': 'Přiřazení se nezdařilo',
|
|
'files.toast.restoreError': 'Obnovení se nezdařilo',
|
|
'files.confirm.permanentDelete': 'Trvale smazat tento soubor? Tuto akci nelze vrátit.',
|
|
'files.confirm.emptyTrash': 'Trvale smazat všechny soubory v koši? Tuto akci nelze vrátit.',
|
|
'files.noteLabel': 'Poznámka',
|
|
'files.notePlaceholder': 'Přidat poznámku...',
|
|
'files.uploadNeedsConnection': 'Nahrávání vyžaduje připojení. Zkus to znovu, až bude TREK zase online.',
|
|
'files.linkNeedsConnection': 'Odebrání tohoto propojení vyžaduje připojení. Zkus to znovu, až bude TREK zase online.',
|
|
'files.placeFilesNeedConnection':
|
|
'Soubory potřebují k nahrání připojení. Odeber nové, abys místo uložil offline, nebo ulož, až budeš zase online.',
|
|
};
|
|
export default files;
|