From e1a8d3be3ffe086384fdfca0ac609219cc32f7ca Mon Sep 17 00:00:00 2001 From: lltcggie Date: Sat, 7 May 2016 08:18:30 +0900 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E9=83=A8=E7=BF=BB=E8=A8=B3=E3=81=95?= =?UTF-8?q?=E3=82=8C=E3=81=A6=E3=81=84=E3=81=AA=E3=81=8B=E3=81=A3=E3=81=9F?= =?UTF-8?q?=E9=83=A8=E5=88=86=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/lang/english.json | 4 +++- bin/lang/japanese.json | 4 +++- waifu2x-caffe-gui/MainDialog.cpp | 4 ++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/bin/lang/english.json b/bin/lang/english.json index 0b8d5a5..c298b9d 100644 --- a/bin/lang/english.json +++ b/bin/lang/english.json @@ -87,5 +87,7 @@ "MessageTitleInputDialog":"Please select input file or folder", "MessageTimeLeftUnkown":"Time Left: Unkown", "MessageTimeLeft":"Time Left", -"MessageNoOverwrite":"Already file exists in the destination: %s" +"MessageNoOverwrite":"Already file exists in the destination: %s", +"OK":"OK", +"Cancel":"Cancel" } diff --git a/bin/lang/japanese.json b/bin/lang/japanese.json index c61eb82..a84c653 100644 --- a/bin/lang/japanese.json +++ b/bin/lang/japanese.json @@ -87,5 +87,7 @@ "MessageTitleInputDialog":"入力するファイルかフォルダを選択してください", "MessageTimeLeftUnkown":"残り時間: 不明", "MessageTimeLeft":"残り時間", -"MessageNoOverwrite":"出力先に既にファイルが存在します: %s" +"MessageNoOverwrite":"出力先に既にファイルが存在します: %s", +"OK":"OK", +"Cancel":"キャンセル" } diff --git a/waifu2x-caffe-gui/MainDialog.cpp b/waifu2x-caffe-gui/MainDialog.cpp index 9febba1..d7f33f3 100644 --- a/waifu2x-caffe-gui/MainDialog.cpp +++ b/waifu2x-caffe-gui/MainDialog.cpp @@ -2493,6 +2493,10 @@ void DialogEvent::AppSetting(HWND hWnd, WPARAM wParam, LPARAM lParam, LPVOID lpD private: void AppSettingDialogEvent::SetWindowTextLang() { + SetWindowTextW(dh, langStringList.GetString(L"IDC_BUTTON_APP_SETTING").c_str()); + SetWindowTextW(GetDlgItem(dh, IDOK), langStringList.GetString(L"OK").c_str()); + SetWindowTextW(GetDlgItem(dh, IDCANCEL), langStringList.GetString(L"Cancel").c_str()); + #define SET_WINDOW_TEXT(id) SetWindowTextW(GetDlgItem(dh, id), langStringList.GetString(L#id).c_str()); SET_WINDOW_TEXT(IDC_STATIC_AUTO_START);