Files
TREK/shared/src/i18n/th/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
5.1 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': '{count} ไฟล์สำหรับ {trip}',
'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 · สูงสุด 50 MB',
'files.uploading': 'กำลังอัปโหลด...',
'files.filterAll': 'ทั้งหมด',
'files.filterPdf': 'PDF',
'files.filterImages': 'รูปภาพ',
'files.filterDocs': 'เอกสาร',
'files.filterCollab': 'หมายเหตุการทำงานร่วมกัน',
'files.sourceCollab': 'จากบันทึกการทำงานร่วมกัน',
'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;