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);