• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythongamewindowsbathyscaphephpguic翻訳omegattwitterframeworktestbtronarduinovb.net計画中(planning stage)directxpreviewerゲームエンジンdom

Tera Termの個人的な作業用リポジトリ


Commit MetaInfo

修订版d1b7e1c7a16e84c8c536d3bf507dc957669c662c (tree)
时间2020-03-25 23:27:06
作者zmatsuo <zmatsuo@user...>
Commiterzmatsuo

Log Message

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

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

git-svn-id: svn+ssh://svn.osdn.net/svnroot/ttssh2/trunk@8621 f5f01b69-1e22-0410-acbf-894ab4bd6246

更改概述

差异

--- a/teraterm/teraterm/sendfiledlg.cpp
+++ b/teraterm/teraterm/sendfiledlg.cpp
@@ -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 @@ static INT_PTR CALLBACK SendFileDlgProc(HWND hDlgWnd, UINT msg, WPARAM wp, LPARA
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 @@ static INT_PTR CALLBACK SendFileDlgProc(HWND hDlgWnd, UINT msg, WPARAM wp, LPARA
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 @@ static INT_PTR CALLBACK SendFileDlgProc(HWND hDlgWnd, UINT msg, WPARAM wp, LPARA
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);