Revision: 8942 https://osdn.net/projects/ttssh2/scm/svn/commits/8942 Author: zmatsuo Date: 2020-10-03 00:45:15 +0900 (Sat, 03 Oct 2020) Log Message: ----------- GetGetFname() ダイアログをi18n化 - kermit/get で使用されている Modified Paths: -------------- trunk/teraterm/ttpfile/ttfile.c -------------- next part -------------- Modified: trunk/teraterm/ttpfile/ttfile.c =================================================================== --- trunk/teraterm/ttpfile/ttfile.c 2020-10-02 15:45:05 UTC (rev 8941) +++ trunk/teraterm/ttpfile/ttfile.c 2020-10-02 15:45:15 UTC (rev 8942) @@ -512,10 +512,16 @@ static INT_PTR CALLBACK GetFnDlg(HWND Dialog, UINT Message, WPARAM wParam, LPARAM lParam) { + static const DlgTextInfo text_info[] = { + { 0, "DLG_GETFN_TITLE" }, + { IDC_FILENAME, "DLG_GETFN_FILENAME" }, + { IDOK, "BTN_OK" }, + { IDCANCEL, "BTN_CANCEL" }, + { IDC_GETFNHELP, "BTN_HELP" }, + }; PFileVar fv; char TempFull[MAX_PATH]; int i, j; - char uimsg[MAX_UIMSG], uimsg2[MAX_UIMSG]; LOGFONT logfont; HFONT font; @@ -538,21 +544,7 @@ DlgGetfnFont = NULL; } - GetWindowText(Dialog, uimsg2, sizeof(uimsg2)); - get_lang_msg("DLG_GETFN_TITLE", uimsg, sizeof(uimsg), uimsg2, UILanguageFile); - SetWindowText(Dialog, uimsg); - GetDlgItemText(Dialog, IDC_FILENAME, uimsg2, sizeof(uimsg2)); - get_lang_msg("DLG_GETFN_FILENAME", uimsg, sizeof(uimsg), uimsg2, UILanguageFile); - SetDlgItemText(Dialog, IDC_FILENAME, uimsg); - GetDlgItemText(Dialog, IDOK, uimsg2, sizeof(uimsg2)); - get_lang_msg("BTN_OK", uimsg, sizeof(uimsg), uimsg2, UILanguageFile); - SetDlgItemText(Dialog, IDOK, uimsg); - GetDlgItemText(Dialog, IDCANCEL, uimsg2, sizeof(uimsg2)); - get_lang_msg("BTN_CANCEL", uimsg, sizeof(uimsg), uimsg2, UILanguageFile); - SetDlgItemText(Dialog, IDCANCEL, uimsg); - GetDlgItemText(Dialog, IDC_GETFNHELP, uimsg2, sizeof(uimsg2)); - get_lang_msg("BTN_HELP", uimsg, sizeof(uimsg), uimsg2, UILanguageFile); - SetDlgItemText(Dialog, IDC_GETFNHELP, uimsg); + SetI18nDlgStrs("Tera Term", Dialog, text_info, _countof(text_info), UILanguageFile); return TRUE;