Files
TREK/shared/src/i18n/ja/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

70 lines
3.8 KiB
TypeScript

import type { TranslationStrings } from '../types';
const files: TranslationStrings = {
'files.filterStarred': 'スター付き',
'files.link': 'リンク',
'files.linkTitle': 'ファイルをリンク',
'files.linkEmpty': 'リンクできる場所や予約がまだありません',
'files.menu': 'その他のオプション',
'files.uploadErrorSize': 'ファイルが大きすぎます(最大{max}MB)',
'files.title': 'ファイル',
'files.pageTitle': 'ファイル・ドキュメント',
'files.subtitle': '{trip} のファイル {count} 件',
'files.download': 'ダウンロード',
'files.openError': 'ファイルを開けませんでした',
'files.downloadPdf': 'PDFをダウンロード',
'files.count': '{count}件のファイル',
'files.uploaded': '{count}件アップロードしました',
'files.uploadError': 'アップロードに失敗しました',
'files.uploadErrorType': 'このファイル形式はサポートされていません',
'files.dropzone': 'ここにファイルをドロップ',
'files.dropzoneHint': 'またはクリックして参照',
'files.allowedTypes': '画像、PDF、DOC、DOCX、XLS、XLSX、TXT、CSV · 最大50MB',
'files.uploading': 'アップロード中...',
'files.filterAll': 'すべて',
'files.filterPdf': 'PDF',
'files.filterImages': '画像',
'files.filterDocs': 'ドキュメント',
'files.filterCollab': 'Collabメモ',
'files.sourceCollab': 'Collabメモより',
'files.empty': 'ファイルはまだありません',
'files.emptyHint': 'ファイルをアップロードして旅行に添付しましょう',
'files.openTab': '新しいタブで開く',
'files.confirm.delete': 'このファイルを削除しますか?',
'files.toast.deleted': 'ファイルを削除しました',
'files.toast.deleteError': 'ファイルの削除に失敗しました',
'files.sourcePlan': '日別計画',
'files.sourceBooking': '予約',
'files.sourceTransport': '移動',
'files.attach': '添付',
'files.pasteHint': 'クリップボードから画像を貼り付けることもできます(Ctrl+V)',
'files.trash': 'ゴミ箱',
'files.trashEmpty': 'ゴミ箱は空です',
'files.emptyTrash': 'ゴミ箱を空にする',
'files.restore': '復元',
'files.star': 'スター',
'files.unstar': 'スター解除',
'files.assign': '割り当て',
'files.assignTitle': 'ファイルを割り当て',
'files.assignPlace': '場所',
'files.assignBooking': '予約',
'files.assignTransport': '移動',
'files.unassigned': '未割り当て',
'files.unlink': 'リンクを解除',
'files.toast.trashed': 'ゴミ箱に移動しました',
'files.toast.restored': 'ファイルを復元しました',
'files.toast.trashEmptied': 'ゴミ箱を空にしました',
'files.toast.assigned': 'ファイルを割り当てました',
'files.toast.assignError': '割り当てに失敗しました',
'files.toast.restoreError': '復元に失敗しました',
'files.confirm.permanentDelete': 'このファイルを完全に削除しますか?元に戻せません。',
'files.confirm.emptyTrash': 'ゴミ箱内のファイルをすべて完全に削除しますか?元に戻せません。',
'files.noteLabel': 'メモ',
'files.notePlaceholder': 'メモを追加...',
'files.uploadNeedsConnection': 'アップロードには接続が必要です。TREKがオンラインに戻ったらもう一度お試しください。',
'files.linkNeedsConnection': 'このリンクの解除には接続が必要です。TREKがオンラインに戻ったらもう一度お試しください。',
'files.placeFilesNeedConnection':
'ファイルのアップロードには接続が必要です。新しいファイルを外して場所をオフラインで保存するか、オンラインに戻ってから保存してください。',
};
export default files;