• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revision8551 (tree)
Zeit2020-02-20 00:38:09
Autorzmatsuo

Log Message

TTProxy メニューの文字化けを修正

Ändern Zusammenfassung

Diff

--- trunk/TTProxy/TTProxy.h (revision 8550)
+++ trunk/TTProxy/TTProxy.h (revision 8551)
@@ -231,14 +231,16 @@
231231 }
232232
233233 static void PASCAL TTXModifyMenu(HMENU menu) {
234- char uimsg[MAX_UIMSG];
235- copy_UILanguageFile();
236- /* inserts before ID_HELP_ABOUT */
237- UTIL_get_lang_msg("MENU_ABOUT", uimsg, sizeof(uimsg), "About TT&Proxy...");
238- InsertMenu(menu, 50990, MF_BYCOMMAND | MF_ENABLED, ID_ABOUTMENU, uimsg);
239- /* inserts before ID_SETUP_TCPIP */
240- UTIL_get_lang_msg("MENU_SETUP", uimsg, sizeof(uimsg), "&Proxy...");
241- InsertMenu(menu, 50360, MF_BYCOMMAND | MF_ENABLED, ID_PROXYSETUPMENU, uimsg);
234+ const UINT ID_HELP_ABOUT = 50990;
235+ const UINT ID_SETUP_TCPIP = 50360;
236+ InsertMenu(menu, ID_HELP_ABOUT, MF_BYCOMMAND | MF_ENABLED, ID_ABOUTMENU, "About TT&Proxy...");
237+ InsertMenu(menu, ID_SETUP_TCPIP, MF_BYCOMMAND | MF_ENABLED, ID_PROXYSETUPMENU, "&Proxy...");
238+
239+ static const DlgTextInfo MenuTextInfo[] = {
240+ { ID_ABOUTMENU, "MENU_ABOUT" },
241+ { ID_PROXYSETUPMENU, "MENU_SETUP" },
242+ };
243+ SetI18nMenuStrs("TTProxy", menu, MenuTextInfo, _countof(MenuTextInfo), getInstance().ts->UILanguageFile);
242244 }
243245
244246 static int PASCAL TTXProcessCommand(HWND hWin, WORD cmd) {
Show on old repository browser