COM ポート遅延再接続プラグイン for Tera Term
Revisión | 39204e4c50feef64ba27616908a349728543b17f (tree) |
---|---|
Tiempo | 2020-12-12 11:55:05 |
Autor | tomo3136 <tomo3136@loca...> |
Commiter | tomo3136 |
日本語UI以外は英語表示に対応
@@ -91,7 +91,7 @@ void DisplayReconnect() | ||
91 | 91 | CHAR buf[256]; |
92 | 92 | LPSTR s; |
93 | 93 | |
94 | - lang = TRUE; | |
94 | + lang = (strstr(pvar->ts->UILanguageFile, "Japanese") != NULL) ? TRUE : FALSE; | |
95 | 95 | |
96 | 96 | buf[0] = 0; |
97 | 97 | switch (pvar->ts->PortType) |
@@ -174,7 +174,8 @@ static void PASCAL TTXModifyMenu(HMENU menu) | ||
174 | 174 | BOOL lang; |
175 | 175 | LPSTR s; |
176 | 176 | |
177 | - lang = TRUE; | |
177 | + lang = (strstr(pvar->ts->UILanguageFile, "Japanese") != NULL) ? TRUE : FALSE; | |
178 | + | |
178 | 179 | pvar->FileMenu = GetSubMenu(menu, 0); |
179 | 180 | s = lang ? "再接続(&F)..." : "reconnect..."; |
180 | 181 | InsertMenu(pvar->FileMenu, 3, MF_BYPOSITION, ID_MENUITEM, s); |