[Ttssh2-commit] [3260] I18N対応

svnno****@sourc***** svnno****@sourc*****
2009年 3月 30日 (月) 09:32:36 JST


Revision: 3260
          http://svn.sourceforge.jp/view?root=ttssh2&view=rev&rev=3260
Author:   doda
Date:     2009-03-30 09:32:35 +0900 (Mon, 30 Mar 2009)

Log Message:
-----------
I18N対応

Modified Paths:
--------------
    trunk/TTXSamples/TTXAlwaysOnTop/TTXAlwaysOnTop.c
    trunk/TTXSamples/TTXAlwaysOnTop/TTXAlwaysOnTop.vcproj
    trunk/installer/release/lang/English.lng
    trunk/installer/release/lang/German.lng
    trunk/installer/release/lang/Japanese.lng


-------------- next part --------------
Modified: trunk/TTXSamples/TTXAlwaysOnTop/TTXAlwaysOnTop.c
===================================================================
--- trunk/TTXSamples/TTXAlwaysOnTop/TTXAlwaysOnTop.c	2009-03-29 14:36:10 UTC (rev 3259)
+++ trunk/TTXSamples/TTXAlwaysOnTop/TTXAlwaysOnTop.c	2009-03-30 00:32:35 UTC (rev 3260)
@@ -2,6 +2,8 @@
 #include "tttypes.h"
 #include "ttplugin.h"
 #include "tt_res.h"
+#include "i18n.h"
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
@@ -9,6 +11,8 @@
 
 #include "compat_w95.h"
 
+#define IniSection "TTXAlwaysOnTop"
+
 #define ORDER 5800
 #define ID_MENU_BASE      55000
 #define ID_MENU_TOP       ID_MENU_BASE + 1
@@ -19,6 +23,7 @@
 static HANDLE hInst; /* Instance handle of TTX*.DLL */
 
 typedef struct {
+  PTTSet ts;
   HMENU ControlMenu;
   BOOL ontop;
 } TInstVar;
@@ -53,6 +58,7 @@
 }
 
 static void PASCAL FAR TTXInit(PTTSet ts, PComVar cv) {
+  pvar->ts = ts;
   pvar->ontop = FALSE;
 }
 
@@ -63,8 +69,11 @@
   if (pvar->ontop) {
     flag |= MF_CHECKED;
   }
+
+  GetI18nStr(IniSection, "MENU_ALWAYSONTOP", pvar->ts->UIMsg, sizeof(pvar->ts->UIMsg),
+             "&Always on top", pvar->ts->UILanguageFile);
   InsertMenu(pvar->ControlMenu, ID_CONTROL_MACRO,
-		flag, ID_MENU_BASE, "&Always on top");
+		flag, ID_MENU_BASE, pvar->ts->UIMsg);
   InsertMenu(pvar->ControlMenu, ID_CONTROL_MACRO,
 		MF_BYCOMMAND | MF_SEPARATOR, 0, NULL);
 }

Modified: trunk/TTXSamples/TTXAlwaysOnTop/TTXAlwaysOnTop.vcproj
===================================================================
--- trunk/TTXSamples/TTXAlwaysOnTop/TTXAlwaysOnTop.vcproj	2009-03-29 14:36:10 UTC (rev 3259)
+++ trunk/TTXSamples/TTXAlwaysOnTop/TTXAlwaysOnTop.vcproj	2009-03-30 00:32:35 UTC (rev 3260)
@@ -61,6 +61,7 @@
 			/>
 			<Tool
 				Name="VCLinkerTool"
+				AdditionalDependencies="..\..\teraterm\debug\ttpcmn.lib"
 				LinkIncremental="2"
 				GenerateDebugInformation="true"
 				SubSystem="2"
@@ -135,6 +136,7 @@
 			/>
 			<Tool
 				Name="VCLinkerTool"
+				AdditionalDependencies="..\..\teraterm\debug\ttpcmn.lib"
 				LinkIncremental="1"
 				GenerateDebugInformation="true"
 				SubSystem="2"

Modified: trunk/installer/release/lang/English.lng
===================================================================
--- trunk/installer/release/lang/English.lng	2009-03-29 14:36:10 UTC (rev 3259)
+++ trunk/installer/release/lang/English.lng	2009-03-30 00:32:35 UTC (rev 3260)
@@ -910,3 +910,7 @@
 MENU_JIS=Recv/Send: &JIS
 MENU_UTF8=Recv/Send: &UTF-8
 MENU_UTF8m=Recv: UTF-8&m/Send: UTF-8
+
+
+[TTXAlwaysOnTop]
+MENU_ALWAYSONTOP=&Always on top

Modified: trunk/installer/release/lang/German.lng
===================================================================
--- trunk/installer/release/lang/German.lng	2009-03-29 14:36:10 UTC (rev 3259)
+++ trunk/installer/release/lang/German.lng	2009-03-30 00:32:35 UTC (rev 3260)
@@ -907,3 +907,7 @@
 MENU_JIS=Recv/Send: &JIS
 MENU_UTF8=Recv/Send: &UTF-8
 MENU_UTF8m=Recv: UTF-8&m/Send: UTF-8
+
+
+[TTXAlwaysOnTop]
+MENU_ALWAYSONTOP=&Always on top

Modified: trunk/installer/release/lang/Japanese.lng
===================================================================
--- trunk/installer/release/lang/Japanese.lng	2009-03-29 14:36:10 UTC (rev 3259)
+++ trunk/installer/release/lang/Japanese.lng	2009-03-30 00:32:35 UTC (rev 3260)
@@ -910,3 +910,7 @@
 MENU_JIS=‘—ŽóM: &JIS
 MENU_UTF8=‘—ŽóM: &UTF-8
 MENU_UTF8m=ŽóM: UTF-8&m/‘—M: UTF-8
+
+
+[TTXAlwaysOnTop]
+MENU_ALWAYSONTOP=í‚ɍőO–Ê‚É•\Ž¦(&A)



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