• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revision8621 (tree)
Time2020-03-25 23:27:06
Authorzmatsuo

Log Message

変数名、lngのキーを適切な名前に修正

- ダイアログのデザインなどが変化するかもしれないのでlngは未着手

Change Summary

Incremental Difference

--- trunk/teraterm/teraterm/sendfiledlg.cpp (revision 8620)
+++ trunk/teraterm/teraterm/sendfiledlg.cpp (revision 8621)
@@ -46,6 +46,8 @@
4646
4747 #include "sendfiledlg.h"
4848
49+#define TitSendFileW L"Send file" // TODO ttftype.h内にANSI版がある
50+
4951 /**
5052 * GetOpenFileName(), GetSaveFileName() 用フィルタ文字列取得
5153 *
@@ -144,13 +146,13 @@
144146 {0, "FILEDLG_TRANS_TITLE_SENDFILE"},
145147 {IDC_SENDFILE_FILENAME_TITLE, "DLG_SENDFILE_FILENAME_TITLE"},
146148 {IDC_SENDFILE_CHECK_BINARY, "DLG_FOPT_BINARY"},
147- {IDC_SENDFILE_DELAYTYPE_LABEL, "test"},
148- {IDC_SENDFILE_SEND_SIZE_LABEL, "test"},
149- {IDC_SENDFILE_DELAYTIME_LABEL, "test"},
149+ {IDC_SENDFILE_DELAYTYPE_LABEL, "DLG_SENDFILE_DELAYTYPE_TITLE"},
150+ {IDC_SENDFILE_SEND_SIZE_LABEL, "DLG_SENDFILE_SEND_SIZE_TITLE"},
151+ {IDC_SENDFILE_DELAYTIME_LABEL, "DLG_SENDFILE_DELAYTIME_TITLE"},
150152 {IDCANCEL, "BTN_CANCEL"},
151153 {IDOK, "BTN_OK"},
152154 };
153- static const I18nTextInfo l[] = {
155+ static const I18nTextInfo delaytype_list[] = {
154156 {"DLG_SENDFILE_DELAYTYPE_NO_DELAY", L"no delay"},
155157 {"DLG_SENDFILE_DELAYTYPE_PER_CHAR", L"per charactor"},
156158 {"DLG_SENDFILE_DELAYTYPE_PER_LINE", L"per line"},
@@ -169,7 +171,8 @@
169171 SetDlgTexts(hDlgWnd, TextInfos, _countof(TextInfos), data->UILanguageFile);
170172 CenterWindow(hDlgWnd, GetParent(hDlgWnd));
171173
172- SetI18nList("TeraTerm", hDlgWnd, IDC_SENDFILE_DELAYTYPE_DROPDOWN, l, _countof(l), data->UILanguageFile, 0);
174+ SetI18nList("TeraTerm", hDlgWnd, IDC_SENDFILE_DELAYTYPE_DROPDOWN, delaytype_list, _countof(delaytype_list),
175+ data->UILanguageFile, 0);
173176
174177 for (i = 0; i < _countof(send_size_list); i++) {
175178 char buf[32];
@@ -232,7 +235,6 @@
232235 wchar_t TempDir[MAX_PATH];
233236 _GetCurrentDirectoryW(_countof(TempDir), TempDir);
234237
235-#define TitSendFileW L"Send file"
236238 wchar_t *uimsg = TTGetLangStrW("Tera Term", "FILEDLG_TRANS_TITLE_SENDFILE", TitSendFileW, data->UILanguageFile);
237239 wchar_t *title;
238240 aswprintf(&title, L"Tera Term: %s", uimsg);
Show on old repository browser