[Ttssh2-commit] [8621] 変数名、lngのキーを適切な名前に修正

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2020年 3月 25日 (水) 23:27:07 JST


Revision: 8621
          https://osdn.net/projects/ttssh2/scm/svn/commits/8621
Author:   zmatsuo
Date:     2020-03-25 23:27:06 +0900 (Wed, 25 Mar 2020)
Log Message:
-----------
変数名、lngのキーを適切な名前に修正

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

Modified Paths:
--------------
    trunk/teraterm/teraterm/sendfiledlg.cpp

-------------- next part --------------
Modified: trunk/teraterm/teraterm/sendfiledlg.cpp
===================================================================
--- trunk/teraterm/teraterm/sendfiledlg.cpp	2020-03-25 14:26:53 UTC (rev 8620)
+++ trunk/teraterm/teraterm/sendfiledlg.cpp	2020-03-25 14:27:06 UTC (rev 8621)
@@ -46,6 +46,8 @@
 
 #include "sendfiledlg.h"
 
+#define TitSendFileW L"Send file"	// TODO ttftype.h\x93\xE0\x82\xC9ANSI\x94ł\xAA\x82\xA0\x82\xE9
+
 /**
  *	GetOpenFileName(), GetSaveFileName() \x97p\x83t\x83B\x83\x8B\x83^\x95\xB6\x8E\x9A\x97\xF1\x8E擾
  *
@@ -144,13 +146,13 @@
 		{0, "FILEDLG_TRANS_TITLE_SENDFILE"},
 		{IDC_SENDFILE_FILENAME_TITLE, "DLG_SENDFILE_FILENAME_TITLE"},
 		{IDC_SENDFILE_CHECK_BINARY, "DLG_FOPT_BINARY"},
-		{IDC_SENDFILE_DELAYTYPE_LABEL, "test"},
-		{IDC_SENDFILE_SEND_SIZE_LABEL, "test"},
-		{IDC_SENDFILE_DELAYTIME_LABEL, "test"},
+		{IDC_SENDFILE_DELAYTYPE_LABEL, "DLG_SENDFILE_DELAYTYPE_TITLE"},
+		{IDC_SENDFILE_SEND_SIZE_LABEL, "DLG_SENDFILE_SEND_SIZE_TITLE"},
+		{IDC_SENDFILE_DELAYTIME_LABEL, "DLG_SENDFILE_DELAYTIME_TITLE"},
 		{IDCANCEL, "BTN_CANCEL"},
 		{IDOK, "BTN_OK"},
 	};
-	static const I18nTextInfo l[] = {
+	static const I18nTextInfo delaytype_list[] = {
 		{"DLG_SENDFILE_DELAYTYPE_NO_DELAY", L"no delay"},
 		{"DLG_SENDFILE_DELAYTYPE_PER_CHAR", L"per charactor"},
 		{"DLG_SENDFILE_DELAYTYPE_PER_LINE", L"per line"},
@@ -169,7 +171,8 @@
 			SetDlgTexts(hDlgWnd, TextInfos, _countof(TextInfos), data->UILanguageFile);
 			CenterWindow(hDlgWnd, GetParent(hDlgWnd));
 
-			SetI18nList("TeraTerm", hDlgWnd, IDC_SENDFILE_DELAYTYPE_DROPDOWN, l, _countof(l), data->UILanguageFile, 0);
+			SetI18nList("TeraTerm", hDlgWnd, IDC_SENDFILE_DELAYTYPE_DROPDOWN, delaytype_list, _countof(delaytype_list),
+						data->UILanguageFile, 0);
 
 			for (i = 0; i < _countof(send_size_list); i++) {
 				char buf[32];
@@ -232,7 +235,6 @@
 					wchar_t TempDir[MAX_PATH];
 					_GetCurrentDirectoryW(_countof(TempDir), TempDir);
 
-#define TitSendFileW L"Send file"
 					wchar_t *uimsg = TTGetLangStrW("Tera Term", "FILEDLG_TRANS_TITLE_SENDFILE", TitSendFileW, data->UILanguageFile);
 					wchar_t *title;
 					aswprintf(&title, L"Tera Term: %s", uimsg);


Ttssh2-commit メーリングリストの案内
Back to archive index