- 📋 올바른 파일명 형식
+ 📋 Correct File Name Format
- [OWN_DOC_NO]_[REV_NO]_[STAGE].[확장자]
+ [OWN_DOC_NO]_[REV_NO]_[STAGE].[Extension]
- 예: VD-DOC-001_01_IFA.pdf
+ Ex: VD-DOC-001_01_IFA.pdf
- ※ 선택사항: [OWN_DOC_NO]_[REV_NO]_[STAGE]_[파일명].[확장자] (파일명 추가 가능)
+ ※ Optional: [OWN_DOC_NO]_[REV_NO]_[STAGE]_[FileName].[Extension] (FileName can be added)
- ※ 파일명에는 언더스코어(_)가 포함될 수 있습니다.
+ ※ File name can contain underscores (_).
{isVendorMode && (
<>
{availableDocNos.length > 0 ? (
- <>ℹ️ 업로드 가능한 문서: {availableDocNos.length}개>
+ <>ℹ️ Uploadable Documents: {availableDocNos.length}>
) : (
- <>⚠️ 할당된 문서가 없습니다>
+ <>⚠️ No assigned documents>
)}
- ⚠️ 각 문서의 Document Class에 정의된 Stage만 사용할 수 있습니다.
+ ⚠️ Only Stages defined in each document's Document Class can be used.
>
)}
@@ -402,7 +402,7 @@ export function SwpUploadValidationDialog({
onClick={handleCancel}
disabled={isUploading}
>
- 취소
+ Cancel
diff --git a/lib/swp/table/swp-uploaded-files-dialog.tsx b/lib/swp/table/swp-uploaded-files-dialog.tsx
index 14d69df4..e92cb0ad 100644
--- a/lib/swp/table/swp-uploaded-files-dialog.tsx
+++ b/lib/swp/table/swp-uploaded-files-dialog.tsx
@@ -90,8 +90,8 @@ export function SwpUploadedFilesDialog({ projNo, vndrCd, userId }: SwpUploadedFi
if (!projNo) {
toast({
variant: "destructive",
- title: "조회 불가",
- description: "프로젝트 정보가 필요합니다.",
+ title: "Unable to retrieve files",
+ description: "Project information is required.",
});
return;
}
@@ -102,15 +102,15 @@ export function SwpUploadedFilesDialog({ projNo, vndrCd, userId }: SwpUploadedFi
const result = await fetchVendorUploadedFiles(projNo);
setFiles(result);
toast({
- title: "조회 완료",
- description: `${result.length}개의 파일을 조회했습니다.`,
+ title: "Files retrieved successfully",
+ description: `${result.length} files retrieved.`,
});
} catch (error) {
- console.error("파일 목록 조회 실패:", error);
+ console.error("Failed to retrieve files:", error);
toast({
variant: "destructive",
- title: "조회 실패",
- description: error instanceof Error ? error.message : "알 수 없는 오류",
+ title: "Failed to retrieve files",
+ description: error instanceof Error ? error.message : "Unknown error",
});
}
});
@@ -121,8 +121,8 @@ export function SwpUploadedFilesDialog({ projNo, vndrCd, userId }: SwpUploadedFi
if (!file.BOX_SEQ || !file.ACTV_SEQ) {
toast({
variant: "destructive",
- title: "취소 불가",
- description: "파일 정보가 올바르지 않습니다.",
+ title: "Unable to cancel file",
+ description: "File information is invalid.",
});
return;
}
@@ -138,18 +138,18 @@ export function SwpUploadedFilesDialog({ projNo, vndrCd, userId }: SwpUploadedFi
});
toast({
- title: "취소 완료",
- description: `${file.FILE_NM} 파일이 취소되었습니다.`,
+ title: "File canceled successfully",
+ description: `${file.FILE_NM} file canceled.`,
});
// 목록 새로고침
loadFiles();
} catch (error) {
- console.error("파일 취소 실패:", error);
+ console.error("Failed to cancel file:", error);
toast({
variant: "destructive",
- title: "취소 실패",
- description: error instanceof Error ? error.message : "알 수 없는 오류",
+ title: "Failed to cancel file",
+ description: error instanceof Error ? error.message : "Unknown error",
});
} finally {
setCancellingFiles((prev) => {
@@ -192,14 +192,14 @@ export function SwpUploadedFilesDialog({ projNo, vndrCd, userId }: SwpUploadedFi
- 업로드한 파일 목록
+ Uploaded File List
- 프로젝트: {projNo} | 업체: {vndrCd}
+ Project: {projNo} | Company: {vndrCd}
@@ -207,7 +207,7 @@ export function SwpUploadedFilesDialog({ projNo, vndrCd, userId }: SwpUploadedFi
{/* 액션 바 */}
- 총 {files.length}개 파일
+ Total {files.length} files
@@ -234,11 +234,11 @@ export function SwpUploadedFilesDialog({ projNo, vndrCd, userId }: SwpUploadedFi
{isLoading && files.length === 0 ? (
- 파일 목록을 조회하는 중...
+ Loading files...
) : files.length === 0 ? (
- 업로드한 파일이 없습니다.
+ No files uploaded.
) : (
@@ -257,7 +257,7 @@ export function SwpUploadedFilesDialog({ projNo, vndrCd, userId }: SwpUploadedFi
{docNo}
- {docNode.revisions.size}개 리비전
+ {docNode.revisions.size} revisions
@@ -280,7 +280,7 @@ export function SwpUploadedFilesDialog({ projNo, vndrCd, userId }: SwpUploadedFi
)}
Rev: {revNo}
- {revNode.files.files.length}개 파일
+ {revNode.files.files.length} files
@@ -303,7 +303,7 @@ export function SwpUploadedFilesDialog({ projNo, vndrCd, userId }: SwpUploadedFi
Stage: {file.STAGE}
•
- 상태: {file.STAT_NM || file.STAT || "알 수 없음"}
+ Status: {file.STAT_NM || file.STAT || "Unknown"}
@@ -348,8 +348,8 @@ export function SwpUploadedFilesDialog({ projNo, vndrCd, userId }: SwpUploadedFi
{/* 안내 메시지 */}