Skip to content

Commit 6d0db28

Browse files
committed
Translate more strings
1 parent 90ab098 commit 6d0db28

File tree

4 files changed

+66
-7
lines changed

4 files changed

+66
-7
lines changed

po/mod4.en.po

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
msgid ""
22
msgstr ""
3-
"Content-Type: text/plain; charset=UTF-8"
4-
"Last-Translator: bitsbb01\n"
3+
"Content-Type: text/plain; charset=UTF-8Last-Translator: bitsbb01\n"
54
"Language: en\n"
65

6+
#: common.powarning
7+
msgid "경고"
8+
msgstr "Warning"
9+
710
#: mainform.modoff
811
msgid "모드 꺼짐"
912
msgstr "Mod deactivated"
@@ -17,6 +20,27 @@ msgstr "%0:s mod activated"
1720
msgid "발견된 모드가 없습니다."
1821
msgstr "No mods detected."
1922

23+
#: settings.dlgconfirm
24+
msgid "확인"
25+
msgstr "Confirm"
26+
27+
#: settings.pocantfindreg
28+
msgid "레지스트리로 제로아워 찾기 실패, Generals.exe를 직접 골라주세요."
29+
msgstr "Failed to find Zero Hour folder via registry, please select Generals.exe manually."
30+
31+
#: settings.podoesnotexist
32+
msgctxt "settings.podoesnotexist"
33+
msgid "가 존재하지 않음!"
34+
msgstr "doesn't exist!"
35+
36+
#: settings.poexefile
37+
msgid "Exe파일|*.exe"
38+
msgstr "Executable files|*.exe"
39+
40+
#: settings.usethefollowingzhpath
41+
msgid "다음 제로아워 경로를 사용하겠습니까?:"
42+
msgstr "Use the following Zero Hour folder?:"
43+
2044
#: tformmain.btnmod.caption
2145
msgid "모드AI활성화"
2246
msgstr "Enable Mod AI"

po/mod4.pot

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
msgid ""
22
msgstr "Content-Type: text/plain; charset=UTF-8"
33

4+
#: common.powarning
5+
msgid "경고"
6+
msgstr ""
7+
48
#: mainform.modoff
59
msgid "모드 꺼짐"
610
msgstr ""
@@ -14,6 +18,27 @@ msgstr ""
1418
msgid "발견된 모드가 없습니다."
1519
msgstr ""
1620

21+
#: settings.dlgconfirm
22+
msgid "확인"
23+
msgstr ""
24+
25+
#: settings.pocantfindreg
26+
msgid "레지스트리로 제로아워 찾기 실패, Generals.exe를 직접 골라주세요."
27+
msgstr ""
28+
29+
#: settings.podoesnotexist
30+
msgctxt "settings.podoesnotexist"
31+
msgid "가 존재하지 않음!"
32+
msgstr ""
33+
34+
#: settings.poexefile
35+
msgid "Exe파일|*.exe"
36+
msgstr ""
37+
38+
#: settings.usethefollowingzhpath
39+
msgid "다음 제로아워 경로를 사용하겠습니까?:"
40+
msgstr ""
41+
1742
#: tformmain.btnmod.caption
1843
msgid "모드AI활성화"
1944
msgstr ""

src/common.pas

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ interface
1111
procedure Warning( t:string );
1212
function path_join( a: string; b:string ): string;
1313

14+
resourcestring
15+
PoWarning = '경고';
16+
1417
implementation
1518

1619
// show warning message
1720
procedure Warning( t:string );
1821
begin
19-
Application.MessageBox( PChar(t), '경고', MB_ICONWARNING );
22+
Application.MessageBox( PChar(t), PChar(PoWarning), MB_ICONWARNING );
2023
end;
2124

2225
function path_join( a:string; b:string ): string;

src/settings.pas

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ TSettings = class
4242
game_dir: string read GetGameDir write SetGameDir;
4343
end;
4444

45+
resourcestring
46+
DlgConfirm = '확인';
47+
UseTheFollowingZhPath = '다음 제로아워 경로를 사용하겠습니까?:';
48+
PoExeFile = 'Exe파일|*.exe';
49+
PoDoesNotExist = '가 존재하지 않음!';
50+
PoCantFindReg = '레지스트리로 제로아워 찾기 실패, Generals.exe를 직접 골라주세요.';
51+
4552
implementation
4653

4754
constructor TSettings.create;
@@ -88,7 +95,7 @@ function TSettings.GetInstallDir: string;
8895
if( FileExists( result ) ) then
8996
begin
9097
// Ask user confirmation
91-
if MessageDlg( '확인', '다음 제로아워 경로를 사용하겠습니까?:' + sLineBreak + result,
98+
if MessageDlg( DlgConfirm, UseTheFollowingZhPath + sLineBreak + result,
9299
mtConfirmation, [mbYes, mbNo],0) = mrYes
93100
then
94101
begin
@@ -104,7 +111,7 @@ function TSettings.GetInstallDir: string;
104111
try
105112
diag := TOpenDialog.create( nil );
106113
diag.Options := [ofFileMustExist];
107-
diag.Filter := 'Exe파일|*.exe';
114+
diag.Filter := PoExeFile;
108115
if diag.Execute then
109116
begin
110117
filename := diag.Filename;
@@ -146,7 +153,7 @@ procedure TSettings.GetDirs();
146153
// game_exe is the only parameter that is not checked by other routines.
147154
// checking it here...
148155
if( not FileExists( game_exe ) ) then
149-
Warning( game_exe + '가 존재하지 않음!' );
156+
Warning( game_exe + PoDoesNotExist );
150157
end;
151158

152159
function TSettings.GetGameDir(): string;
@@ -210,7 +217,7 @@ function TSettings.FindGeneralsExe(): string;
210217
reg.RootKey := HKEY_LOCAL_MACHINE;
211218
Result := ResolveZH(reg);
212219
if Result = '' then
213-
Warning( '레지스트리로 제로아워 찾기 실패, Generals.exe를 직접 골라주세요.' );
220+
Warning( PoCantFindReg );
214221
finally
215222
reg.Free;
216223
end;

0 commit comments

Comments
 (0)