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-upload-validation-dialog.tsx | 72 +++++++++++++------------- 1 file changed, 36 insertions(+), 36 deletions(-) (limited to 'lib/swp/table/swp-upload-validation-dialog.tsx') diff --git a/lib/swp/table/swp-upload-validation-dialog.tsx b/lib/swp/table/swp-upload-validation-dialog.tsx index 803b1564..3357ec7a 100644 --- a/lib/swp/table/swp-upload-validation-dialog.tsx +++ b/lib/swp/table/swp-upload-validation-dialog.tsx @@ -69,7 +69,7 @@ export function validateFileName( if (lastDotIndex === -1) { return { valid: false, - error: "파일 확장자가 없습니다", + error: "File extension missing", }; } @@ -83,7 +83,7 @@ export function validateFileName( if (parts.length < 3) { return { valid: false, - error: `언더스코어(_)가 최소 2개 있어야 합니다 (현재: ${parts.length - 1}개). 형식: [OWN_DOC_NO]_[REV_NO]_[STAGE].[확장자]`, + error: `Must have at least 2 underscores (_) (Current: ${parts.length - 1}). Format: [OWN_DOC_NO]_[REV_NO]_[STAGE].[Extension]`, }; } @@ -99,21 +99,21 @@ export function validateFileName( if (!ownDocNo || ownDocNo.trim() === "") { return { valid: false, - error: "문서번호(OWN_DOC_NO)가 비어있습니다", + error: "Document Number (OWN_DOC_NO) is empty", }; } if (!revNo || revNo.trim() === "") { return { valid: false, - error: "리비전 번호(REV_NO)가 비어있습니다", + error: "Revision Number (REV_NO) is empty", }; } if (!stage || stage.trim() === "") { return { valid: false, - error: "스테이지(STAGE)가 비어있습니다", + error: "Stage (STAGE) is empty", }; } @@ -127,7 +127,7 @@ export function validateFileName( if (!availableDocNos || availableDocNos.length === 0) { return { valid: false, - error: "할당된 문서가 없거나 문서 목록 로드에 실패했습니다. 페이지를 새로고침하거나 관리자에게 문의하세요.", + error: "No assigned documents or failed to load document list. Please refresh the page or contact administrator.", }; } @@ -135,7 +135,7 @@ export function validateFileName( if (!availableDocNos.includes(trimmedDocNo)) { return { valid: false, - error: `문서번호 '${trimmedDocNo}'는 업로드 권한이 없습니다. 할당된 문서번호를 확인해주세요.`, + error: `Document number '${trimmedDocNo}' does not have upload permission. Please check assigned document numbers.`, }; } } @@ -152,7 +152,7 @@ export function validateFileName( // 문서가 EVCP DB에 등록되지 않음 return { valid: false, - error: `문서번호 '${trimmedDocNo}'는 문서 리스트에 등록되지 않았습니다. 먼저 문서 리스트를 제출해주세요.`, + error: `Document number '${trimmedDocNo}' is not registered in the document list. Please submit the document list first.`, }; } @@ -163,7 +163,7 @@ export function validateFileName( // Document Class에 Stage가 설정되지 않음 return { valid: false, - error: `문서 '${trimmedDocNo}'의 Document Class '${docCls}'에 Stage가 설정되지 않았습니다. 관리자에게 문의하세요.`, + error: `Stage is not set for Document Class '${docCls}' of document '${trimmedDocNo}'. Please contact administrator.`, }; } @@ -171,7 +171,7 @@ export function validateFileName( if (!allowedStages.includes(trimmedStage)) { return { valid: false, - error: `문서 '${trimmedDocNo}'의 Document Class '${docCls}'에서 Stage '${trimmedStage}'는 허용되지 않습니다. 허용된 Stage: ${allowedStages.join(", ")}`, + error: `Stage '${trimmedStage}' is not allowed for Document Class '${docCls}' of document '${trimmedDocNo}'. Allowed Stages: ${allowedStages.join(", ")}`, }; } @@ -181,7 +181,7 @@ export function validateFileName( console.log(`[validateFileName] 검증 정보가 없음 → 업로드 차단`); return { valid: false, - error: "문서 정보를 가져올 수 없습니다. 페이지를 새로고침하거나 프로젝트를 다시 선택해주세요.", + error: "Cannot retrieve document info. Please refresh the page or re-select the project.", }; } @@ -198,7 +198,7 @@ export function validateFileName( } catch (error) { return { valid: false, - error: error instanceof Error ? error.message : "알 수 없는 오류", + error: error instanceof Error ? error.message : "Unknown error", }; } } @@ -234,9 +234,9 @@ export function SwpUploadValidationDialog({ - 파일 업로드 검증 + File Upload Validation - 선택한 파일의 파일명 형식을 검증합니다 + Validating file name format of selected files @@ -244,17 +244,17 @@ export function SwpUploadValidationDialog({ {/* 요약 통계 */}
-
전체 파일
+
Total Files
{validationResults.length}
-
검증 성공
+
Validation Success
{validFiles.length}
-
검증 실패
+
Validation Failed
{invalidFiles.length}
@@ -266,8 +266,8 @@ export function SwpUploadValidationDialog({ - {invalidFiles.length}개 파일의 파일명 형식이 올바르지 않습니다. - 검증에 성공한 {validFiles.length}개 파일만 업로드됩니다. + {invalidFiles.length} files have incorrect file name format. + Only {validFiles.length} successfully validated files will be uploaded. )} @@ -276,7 +276,7 @@ export function SwpUploadValidationDialog({ - 업로드 가능한 파일이 없습니다. 파일명 형식을 확인해주세요. + No uploadable files. Please check file name format. )} @@ -289,7 +289,7 @@ export function SwpUploadValidationDialog({

- 검증 성공 ({validFiles.length}개) + Validation Success ({validFiles.length})

{validFiles.map((result, index) => (
- 문서: {result.parsed.ownDocNo} + Doc: {result.parsed.ownDocNo} Rev: {result.parsed.revNo} @@ -314,11 +314,11 @@ export function SwpUploadValidationDialog({ {result.parsed.fileName && ( - 파일명: {result.parsed.fileName} + FileName: {result.parsed.fileName} )} - 확장자: .{result.parsed.extension} + Ext: .{result.parsed.extension}
)} @@ -335,7 +335,7 @@ export function SwpUploadValidationDialog({

- 검증 실패 ({invalidFiles.length}개) + Validation Failed ({invalidFiles.length})

{invalidFiles.map((result, index) => (
- 📋 올바른 파일명 형식 + 📋 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 -- cgit v1.2.3