From 95984e67b8d57fbe1431fcfedf3bb682f28416b3 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Thu, 27 Nov 2025 17:48:28 +0900 Subject: (김준회) swp 영문 처리 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/swp/table/swp-document-detail-dialog.tsx | 56 ++++++++++++++-------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'lib/swp/table/swp-document-detail-dialog.tsx') diff --git a/lib/swp/table/swp-document-detail-dialog.tsx b/lib/swp/table/swp-document-detail-dialog.tsx index 77ef77f7..ef5cf6f9 100644 --- a/lib/swp/table/swp-document-detail-dialog.tsx +++ b/lib/swp/table/swp-document-detail-dialog.tsx @@ -122,8 +122,8 @@ export function SwpDocumentDetailDialog({ setActivities(flatActivities); } catch (error) { - console.error("문서 상세 조회 실패:", error); - toast.error("문서 리비전 트리를 불러오는데 실패했습니다"); + console.error("Failed to retrieve document details:", error); + toast.error("Failed to load document revision tree"); } finally { setIsLoading(false); } @@ -157,8 +157,8 @@ export function SwpDocumentDetailDialog({ setActivityFiles(activitySpecificFiles); } catch (error) { - console.error("파일 목록 조회 실패:", error); - toast.error("파일 목록을 불러오는데 실패했습니다"); + console.error("Failed to retrieve file list:", error); + toast.error("Failed to load file list"); } finally { setIsLoadingFiles(false); } @@ -166,11 +166,11 @@ export function SwpDocumentDetailDialog({ const handleDownloadFile = async (fileName: string, ownDocNo: string) => { try { - toast.info("파일 다운로드 중..."); + toast.info("Downloading file..."); const result = await downloadVendorFile(projNo, ownDocNo, fileName); if (!result.success || !result.data) { - toast.error(result.error || "파일 다운로드 실패"); + toast.error(result.error || "File download failed"); return; } @@ -185,10 +185,10 @@ export function SwpDocumentDetailDialog({ window.document.body.removeChild(link); URL.revokeObjectURL(url); - toast.success(`파일 다운로드 완료: ${fileName}`); + toast.success(`File download complete: ${fileName}`); } catch (error) { - console.error("파일 다운로드 실패:", error); - toast.error("파일 다운로드에 실패했습니다"); + console.error("File download failed:", error); + toast.error("Failed to download file"); } }; @@ -221,7 +221,7 @@ export function SwpDocumentDetailDialog({ - 문서 리비전 히스토리 + Document Revision History {document && ( {document.DOC_NO} - {document.DOC_TITLE} @@ -234,30 +234,30 @@ export function SwpDocumentDetailDialog({ {/* 문서 정보 */}
- 프로젝트: + Project: {document.PROJ_NO} {document.PROJ_NM && ( ({document.PROJ_NM}) )}
- 패키지: + Package: {document.PKG_NO || "-"}
- 업체: + Vendor: {document.CPY_NM || "-"} {document.VNDR_CD && ( ({document.VNDR_CD}) )}
- 최신 리비전: + Latest Revision: {document.LTST_REV_NO || "-"}
- 총 Activity: - {activities.length}개 + Total Activity: + {activities.length}
@@ -265,7 +265,7 @@ export function SwpDocumentDetailDialog({ {isLoading ? (
- 리비전 트리 로딩 중... + Loading revision tree...
) : activities.length > 0 ? ( <> @@ -357,14 +357,14 @@ export function SwpDocumentDetailDialog({ {/* 파일 목록 (아래) */}
-

파일 목록

+

File List

{selectedActivity ? (

Activity: {selectedActivity.actvNo} / Rev {selectedActivity.revNo} ({selectedActivity.stage}) / {selectedActivity.inOut}

) : (

- Activity를 선택하면 파일 목록이 표시됩니다 + Select an Activity to view the file list

)}
@@ -373,16 +373,16 @@ export function SwpDocumentDetailDialog({ isLoadingFiles ? (
- 파일 로딩 중... + Loading files...
) : activityFiles.length > 0 ? ( - 파일명 - 크기 - 날짜 - 다운로드 + File Name + Size + Date + Download @@ -405,7 +405,7 @@ export function SwpDocumentDetailDialog({ onClick={() => handleDownloadFile(file.FILE_NM, document.OWN_DOC_NO || document.DOC_NO)} > - 다운로드 + Download @@ -416,7 +416,7 @@ export function SwpDocumentDetailDialog({
-

파일이 없습니다

+

No files

) @@ -424,7 +424,7 @@ export function SwpDocumentDetailDialog({
-

Activity를 선택해주세요

+

Please select an Activity

)} @@ -434,7 +434,7 @@ export function SwpDocumentDetailDialog({ ) : (
-

Activity 정보가 없습니다

+

No Activity information

)} -- cgit v1.2.3