[Ttssh2-commit] [3911] YMODEMのメニューにショートカットキーを追加

svnno****@sourc***** svnno****@sourc*****
2010年 5月 25日 (火) 15:06:02 JST


Revision: 3911
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3911
Author:   maya
Date:     2010-05-25 15:06:02 +0900 (Tue, 25 May 2010)

Log Message:
-----------
YMODEMのメニューにショートカットキーを追加
  i18n対応

Modified Paths:
--------------
    trunk/installer/release/lang/English.lng
    trunk/installer/release/lang/German.lng
    trunk/installer/release/lang/Japanese.lng
    trunk/teraterm/teraterm/ttermpro.rc
    trunk/teraterm/teraterm/vtwin.cpp


-------------- next part --------------
Modified: trunk/installer/release/lang/English.lng
===================================================================
--- trunk/installer/release/lang/English.lng	2010-05-25 05:58:24 UTC (rev 3910)
+++ trunk/installer/release/lang/English.lng	2010-05-25 06:06:02 UTC (rev 3911)
@@ -25,6 +25,8 @@
 MENU_TRANS_KERMIT_FINISH=&Finish
 MENU_TRANS_X_RCV=&Receive...
 MENU_TRANS_X_SEND=&Send...
+MENU_TRANS_Y_RCV=&Receive...
+MENU_TRANS_Y_SEND=&Send...
 MENU_TRANS_Z_RCV=&Receive
 MENU_TRANS_Z_SEND=&Send...
 MENU_TRANS_BP_RCV=&Receive
@@ -393,6 +395,8 @@
 FILEDLG_TRANS_TITLE_KMTFIN=Kermit Finish
 FILEDLG_TRANS_TITLE_XRCV=XMODEM Receive
 FILEDLG_TRANS_TITLE_XSEND=XMODEM Send
+FILEDLG_TRANS_TITLE_YRCV=YMODEM Receive
+FILEDLG_TRANS_TITLE_YSEND=YMODEM Send
 FILEDLG_TRANS_TITLE_ZRCV=ZMODEM Receive
 FILEDLG_TRANS_TITLE_ZSEND=ZMODEM Send
 FILEDLG_TRANS_TITLE_BPRCV=B-Plus Receive

Modified: trunk/installer/release/lang/German.lng
===================================================================
--- trunk/installer/release/lang/German.lng	2010-05-25 05:58:24 UTC (rev 3910)
+++ trunk/installer/release/lang/German.lng	2010-05-25 06:06:02 UTC (rev 3911)
@@ -23,8 +23,10 @@
 MENU_TRANS_KERMIT_GET=&Get
 MENU_TRANS_KERMIT_SEND=&Senden
 MENU_TRANS_KERMIT_FINISH=&Fertig
-MENU_TRANS_X_RCV=&REmpfangen
+MENU_TRANS_X_RCV=&Empfangen
 MENU_TRANS_X_SEND=&Senden
+MENU_TRANS_Y_RCV=&Empfangen
+MENU_TRANS_Y_SEND=&Senden
 MENU_TRANS_Z_RCV=&Empfangen
 MENU_TRANS_Z_SEND=&Senden
 MENU_TRANS_BP_RCV=&Empfangen
@@ -393,6 +395,8 @@
 FILEDLG_TRANS_TITLE_KMTFIN=Kermit Finish
 FILEDLG_TRANS_TITLE_XRCV=XMODEM Receive
 FILEDLG_TRANS_TITLE_XSEND=XMODEM Send
+FILEDLG_TRANS_TITLE_YRCV=YMODEM Receive
+FILEDLG_TRANS_TITLE_YSEND=YMODEM Send
 FILEDLG_TRANS_TITLE_ZRCV=ZMODEM Receive
 FILEDLG_TRANS_TITLE_ZSEND=ZMODEM Send
 FILEDLG_TRANS_TITLE_BPRCV=B-Plus Receive

Modified: trunk/installer/release/lang/Japanese.lng
===================================================================
--- trunk/installer/release/lang/Japanese.lng	2010-05-25 05:58:24 UTC (rev 3910)
+++ trunk/installer/release/lang/Japanese.lng	2010-05-25 06:06:02 UTC (rev 3911)
@@ -25,6 +25,8 @@
 MENU_TRANS_KERMIT_FINISH=I—¹(&F)
 MENU_TRANS_X_RCV=ŽóM(&R)...
 MENU_TRANS_X_SEND=‘—M(&S)...
+MENU_TRANS_Y_RCV=ŽóM(&R)...
+MENU_TRANS_Y_SEND=‘—M(&S)...
 MENU_TRANS_Z_RCV=ŽóM(&R)
 MENU_TRANS_Z_SEND=‘—M(&S)...
 MENU_TRANS_BP_RCV=ŽóM(&R)
@@ -393,6 +395,8 @@
 FILEDLG_TRANS_TITLE_KMTFIN=KermitI—¹
 FILEDLG_TRANS_TITLE_XRCV=XMODEMŽóM
 FILEDLG_TRANS_TITLE_XSEND=XMODEM‘—M
+FILEDLG_TRANS_TITLE_YRCV=YMODEMŽóM
+FILEDLG_TRANS_TITLE_YSEND=YMODEM‘—M
 FILEDLG_TRANS_TITLE_ZRCV=ZMODEMŽóM
 FILEDLG_TRANS_TITLE_ZSEND=ZMODEM‘—M
 FILEDLG_TRANS_TITLE_BPRCV=B-PlusŽóM

Modified: trunk/teraterm/teraterm/ttermpro.rc
===================================================================
--- trunk/teraterm/teraterm/ttermpro.rc	2010-05-25 05:58:24 UTC (rev 3910)
+++ trunk/teraterm/teraterm/ttermpro.rc	2010-05-25 06:06:02 UTC (rev 3911)
@@ -447,8 +447,8 @@
             END
             POPUP "&YMODEM"
             BEGIN
-                MENUITEM "Receive...",                  ID_FILE_YRCV
-                MENUITEM "Send...",                     ID_FILE_YSEND
+                MENUITEM "&Receive...",                 ID_FILE_YRCV
+                MENUITEM "&Send...",                    ID_FILE_YSEND
             END
             POPUP "&ZMODEM"
             BEGIN

Modified: trunk/teraterm/teraterm/vtwin.cpp
===================================================================
--- trunk/teraterm/teraterm/vtwin.cpp	2010-05-25 05:58:24 UTC (rev 3910)
+++ trunk/teraterm/teraterm/vtwin.cpp	2010-05-25 06:06:02 UTC (rev 3911)
@@ -1087,11 +1087,12 @@
 	get_lang_msg("MENU_TRANS_X_SEND", ts.UIMsg, sizeof(ts.UIMsg), uimsg, ts.UILanguageFile);
 	ModifyMenu(FileMenu, ID_FILE_XSEND, MF_BYCOMMAND, ID_FILE_XSEND, ts.UIMsg);
 
-	// TBD: YMODEM‚Í‚Ü‚¾–¢ƒTƒ|[ƒg‚Ȃ̂ŁAƒƒjƒ…[‚͉B‚·B(2008.5.15 yutaka)
-	// ‘—M‚̂݃Tƒ|[ƒg (2010.3.23 yutaka)
-	//DeleteMenu(TransMenu, 2, MF_BYPOSITION);
-	//DeleteMenu(FileMenu, ID_FILE_YSEND, MF_BYCOMMAND);
-	//DeleteMenu(FileMenu, ID_FILE_YRCV, MF_BYCOMMAND);
+	GetMenuString(FileMenu, ID_FILE_YRCV, uimsg, sizeof(uimsg), MF_BYCOMMAND);
+	get_lang_msg("MENU_TRANS_Y_RCV", ts.UIMsg, sizeof(ts.UIMsg), uimsg, ts.UILanguageFile);
+	ModifyMenu(FileMenu, ID_FILE_YRCV, MF_BYCOMMAND, ID_FILE_YRCV, ts.UIMsg);
+	GetMenuString(FileMenu, ID_FILE_YSEND, uimsg, sizeof(uimsg), MF_BYCOMMAND);
+	get_lang_msg("MENU_TRANS_Y_SEND", ts.UIMsg, sizeof(ts.UIMsg), uimsg, ts.UILanguageFile);
+	ModifyMenu(FileMenu, ID_FILE_YSEND, MF_BYCOMMAND, ID_FILE_YSEND, ts.UIMsg);
 
 	GetMenuString(FileMenu, ID_FILE_ZRCV, uimsg, sizeof(uimsg), MF_BYCOMMAND);
 	get_lang_msg("MENU_TRANS_Z_RCV", ts.UIMsg, sizeof(ts.UIMsg), uimsg, ts.UILanguageFile);



Ttssh2-commit メーリングリストの案内