Skip to content

Commit

Permalink
Add Korean translation (microsoft#452)
Browse files Browse the repository at this point in the history
* Add Resources for Korean
 - copied from en-US resources

* Translate menu to Korean

* Modify incorrect macro

* Modify menu text

* Translate menu and suggestion to Korean

* Translate dialog to Korean

* Fix typo; modify "Goto Directory" menu caption

* Fix typo

* Translate OK button in About

* Fix typo; missing and incorrect translation

(cherry picked from commit 6b5541d)
  • Loading branch information
gcyong authored and schinagl committed Feb 15, 2025
1 parent fcc84d7 commit 0505af9
Show file tree
Hide file tree
Showing 8 changed files with 1,696 additions and 2 deletions.
2 changes: 1 addition & 1 deletion help/ini/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ <h3>Fun with Fonts</h3>
LowerCase=0
</code></pre>
<h3>Miscellaneous other tweaks</h3>
<p><strong>UILanguage</strong> sets the language used by File Manager. At, present, to my knowledge anyways, there are six available language options currently: en-US, zh-CN, he-IL, ja-JP, pl-PL, and de-DE. English (US), Chinese (Simplified), Hebrew, Japanese, Polish, and German.</p>
<p><strong>UILanguage</strong> sets the language used by File Manager. At, present, to my knowledge anyways, there are seven available language options currently: en-US, zh-CN, he-IL, ja-JP, pl-PL, de-DE, and ko-KR. English (US), Chinese (Simplified), Hebrew, Japanese, Polish, German, and Korean.</p>
<p><code>UILanguage=en-US</code></p>
<p><strong>EditorPath</strong> sets the editor that is executed when the edit command is selected. Contrary to what the name indicates, you might not necessarily need the entire path - if the editor itself is in your path somewhere, you can just put the editor command in alone.<br>
<code>EditorPath=nano</code></p>
Expand Down
3 changes: 3 additions & 0 deletions src/Winfile.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@
<None Include="lang\res_ja-JP.rc" />
<None Include="lang\res_he-IL.rc" />
<None Include="lang\res_pt-PT.rc" />
<None Include="lang\res_ko-KR.rc" />
<None Include="lang\suggest_de-DE.db" />
<None Include="lang\suggest_en-US.db" />
<None Include="lang\suggest_pl-PL.db" />
Expand All @@ -185,6 +186,7 @@
<None Include="lang\suggest_zh-CN.db" />
<None Include="lang\suggest_ja-JP.db" />
<None Include="lang\suggest_he-IL.db" />
<None Include="lang\suggest_ko-KR.db" />
<None Include="lang\winfile_de-DE.dlg" />
<None Include="lang\winfile_en-US.dlg" />
<None Include="lang\winfile_pl-PL.dlg" />
Expand All @@ -193,6 +195,7 @@
<None Include="lang\winfile_zh-CN.dlg" />
<None Include="lang\winfile_ja-JP.dlg" />
<None Include="lang\winfile_he-IL.dlg" />
<None Include="lang\winfile_ko-KR.dlg" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="dbg.c" />
Expand Down
9 changes: 9 additions & 0 deletions src/Winfile.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,15 @@
<None Include="lang\winfile_pt-PT.dlg">
<Filter>lang</Filter>
</None>
<None Include="lang\suggest_ko-KR.db">
<Filter>lang</Filter>
</None>
<None Include="lang\winfile_ko-KR.dlg">
<Filter>lang</Filter>
</None>
<None Include="lang\res_ko-KR.rc">
<Filter>lang</Filter>
</None>
</ItemGroup>
<ItemGroup>
<Filter Include="lang">
Expand Down
642 changes: 642 additions & 0 deletions src/lang/res_ko-KR.rc

Large diffs are not rendered by default.

91 changes: 91 additions & 0 deletions src/lang/suggest_ko-KR.db
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@

// Suggestion database info
// Used to automate the suggestions compiled into winfile
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//
// Usage: Just add a new entry of the format:

// SUGGEST( resource_number, error-code, flags, "your-reason-string" )
// resource_number = incremental number for string ID
// error-code = error this suggestion corresponds to
// "your-reason-string" string displayed for error
// flags: SUG_IGN_FORMATMESSAGE = prepend system FormatMessage text

// Ok, so it's not perfect: your resource number can't clash
// with any others in winfile.h. Use 1 .. 99 (1101 to 1199)
// resource # 0 is reserved.

// What it does:
// For system errors (defined here in winfile land as < DE_BEGIN (bit 29 off)),
// it puts the "suggestion" below the error text (a blank line is between
// them.)
//
// For our errors (>= DE_BEGIN), it places the text below (1 blank line)
// the previous string. There is no longer any corresponding text called
// "IDS_REASONS+DE_MYERROR" or "DE_MYERROR" in the resources.
// Internal error messages and their reasons must be stored here in
// the same string.

#ifndef IDS_SUGGESTBEGIN
#define IDS_SUGGESTBEGIN 1100
#endif

SUGGEST( 1, DE_SAMEFILE, 0L, \
"원본과 대상이 일치합니다." )
SUGGEST( 2, DE_MANYSRC1DEST, 0L, \
"이름을 바꾸려는 파일을 하나만 선택하거나, 여러 파일을 비슷한 이름으로 바꾸려면 대표문자(예, *.TXT)를 사용하십시오." )
SUGGEST( 3, DE_DIFFDIR, 0L, \
"다른 디렉터리나 디스크로 이름 바꾸기 할 수 없습니다.\n파일 이동 명령을 사용하십시오." )
SUGGEST( 4, DE_ROOTDIR, 0L, \
"루트 디렉터리의 이름은 바꿀 수 없습니다." )
SUGGEST( 5, DE_DESTSUBTREE, 0L, \
"대상 디렉터리가 원본 디렉터리의 하위 디렉터리입니다." )
SUGGEST( 6, DE_WINDOWSFILE, 0L, \
"Windows가 파일을 사용하고 있습니다." )
SUGGEST( 7, DE_MANYDEST, 0L, \
"[대상] 상자에 하나의 파일 또는 디렉터리를 지정하십시오. 여러 개의 그룹을 선택하려면 대표문자를 사용하십시오(예, *.TXT)." )
SUGGEST( 8, DE_RENAMREPLACE, 0L, \
"같은 이름의 파일 또는 디렉터리가 이미 있습니다. 한 디렉터리 안에서는 파일이나 디렉터리 이름이 고유해야 합니다." )

// This error is returned when selecting a grayed network drive and the rdr is not started
SUGGEST( 9, ERROR_FILE_NOT_FOUND, 0L, \
"지정된 경로와 파일 이름이 올바른지 확인하십시오." )
SUGGEST(10, ERROR_PATH_NOT_FOUND, 0L, \
"지정된 경로가 올바른지 확인하십시오." )
SUGGEST(11, ERROR_NOT_ENOUGH_MEMORY, 0L, \
"하나 이상의 응용 프로그램을 마친 후 다시 해보십시오. 또는 [제어판]에서 [시스템 옵션]을 사용하여 가상 메모리를 증가시키십시오." )
// 12
SUGGEST(13, ERROR_WRITE_PROTECT, 0L, \
"디스크 쓰기 금지를 풀거나 다른 디스크를 사용하여 다시 해보십시오." )
SUGGEST(14, ERROR_NETWORK_ACCESS_DENIED, 0L, \
"이 작업을 수행하기 위한 올바른 네트워크 사용 권한이 있는지 확인하십시오." )
SUGGEST(15, ERROR_DISK_FULL, 0L, \
"파일을 지워 디스크 공간을 늘린 후 다시 하십시오." )
SUGGEST(16, ERROR_NO_DATA_DETECTED, SUG_IGN_FORMATMESSAGE, \
"매체에서 발견된 데이터가 없습니다." )

SUGGEST(17, DE_MAKEDIREXISTS, 0L, \
"디렉터리가 이미 있습니다" )
SUGGEST(18, DE_DIREXISTSASFILE, 0L, \
"지정된 이름은 이미 있는 파일 이름입니다." )
#ifdef ASSOC
SUGGEST(19, DE_DELEXTWRONGMODE, 0L, \
"일반 파일 형식과 확장명이 표시되는 경우에만 삭제할 수 있습니다." )
#endif

// Block out errors that require arguments
SUGGEST(50, ERROR_WRONG_DISK, SUG_IGN_FORMATMESSAGE, \
"드라이브에 잘못된 디스크가 있습니다." )
SUGGEST(51, ERROR_CHILD_NOT_COMPLETE, SUG_IGN_FORMATMESSAGE, \
"이 응용 프로그램은 Windows NT 모드에서 실행될 수 없습니다." )
SUGGEST(52, ERROR_INVALID_ORDINAL, SUG_IGN_FORMATMESSAGE, \
"운영 체제가 이 구성 요소를 실행할 수 없습니다." )
SUGGEST(53, ERROR_INVALID_EXE_SIGNATURE, SUG_IGN_FORMATMESSAGE, \
"이 구성 요소는 Windows NT 모드에서 실행될 수 없습니다." )
SUGGEST(54, ERROR_BAD_EXE_FORMAT, SUG_IGN_FORMATMESSAGE, \
"이 프로그램은 올바른 Windows NT 응용 프로그램이 아닙니다." )
SUGGEST(55, ERROR_MR_MID_NOT_FOUND, SUG_IGN_FORMATMESSAGE, \
"오류가 발생했습니다. 오류에 대한 메시지 내용이 없습니다." )

Loading

0 comments on commit 0505af9

Please sign in to comment.