瀏覽代碼

added copy buffers to translation xml

git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@493 595ec19a-5cb4-439b-94a8-42fb3063c22c
sabrogden 15 年之前
父節點
當前提交
82e88b2001
共有 4 個文件被更改,包括 49 次插入0 次删除
  1. 38 0
      Debug/Language/English.xml
  2. 7 0
      MultiLanguage.cpp
  3. 2 0
      MultiLanguage.h
  4. 2 0
      OptionsCopyBuffers.cpp

+ 38 - 0
Debug/Language/English.xml

@@ -153,6 +153,9 @@
 		
 		//New item added in 3.15.1 8/18/07
 		<Item English_Text = "Send custom strokes Per Application" ID = "2091"></Item>
+		
+		//Added in 9-11-09
+		<Item English_Text = "Named Paste" ID = "2062">test</Item>
 	</Ditto_Options_Shortcuts>
 	<Ditto_Options_Quick_Paste>
 		<Item English_Text = "History Starts at the Top of the list (vs. Bottom)" ID = "1042"></Item>
@@ -194,6 +197,11 @@
 		<Item English_Text = "If Send All Copies is selected then all copies from this computer will be sent to the other computer.  If that is not selected then it will just be in the right click menu to send a copy to that computer." ID = "2057"></Item>
 		<Item English_Text = "Log Send Receive Commands" ID = "1042"></Item>
 		<Item English_Text = "Friends" ID = "-1" PropertyPage = "true"></Item>
+		
+		//Added in 9-11-09
+		<Item English_Text = "Send All Copies" ID = "Send_All_Copies">test</Item>
+        <Item English_Text = "IP/Name" ID = "IP_Name">test</Item>
+        <Item English_Text = "Descriptions" ID = "Descriptions">test</Item>
 	</Ditto_Options_Friends>
 	<Ditto_Options_Friends_Detail>
 		<Item English_Text = "Send All Copies to this friend" ID = "1015"></Item>
@@ -305,4 +313,34 @@
 		<Item English_Text = "New Clip" ID = "32868"></Item>
 		
 	</Ditto_Tray_Icon_Menu>
+	
+	//Added in 9-11-09
+	<Ditto_Options_CopyBuffers>
+		<Item English_Text = "Copy Buffer 1" ID = "2088">Copy Buffer 1-test</Item>
+		<Item English_Text = "Copy" ID = "2079">Copy-test</Item>
+		<Item English_Text = "Paste" ID = "2080">Paste-test</Item>
+		<Item English_Text = "Cut" ID = "2081">Cut-test</Item>
+		<Item English_Text = "Play Sound on Copy" ID = "1042">Play Sound on Copy-test</Item>
+		<Item English_Text = "Win" ID = "2085">Win1Copy-test</Item>
+		<Item English_Text = "Win" ID = "2086">Win1Paste-test</Item>
+		<Item English_Text = "Win" ID = "2087">Win1Cut-test</Item>
+		
+		<Item English_Text = "Copy Buffer 2" ID = "2098">Copy Buffer 1-test</Item>
+		<Item English_Text = "Copy" ID = "2093">Copy-test</Item>
+		<Item English_Text = "Paste" ID = "2094">Paste-test</Item>
+		<Item English_Text = "Cut" ID = "2097">Cut-test</Item>
+		<Item English_Text = "Play Sound on Copy" ID = "1043">Play Sound on Copy-test</Item>
+		<Item English_Text = "Win" ID = "2090">Win2Copy-test</Item>
+		<Item English_Text = "Win" ID = "2092">Win2Paste-test</Item>
+		<Item English_Text = "Win" ID = "2096">Win2Cut-test</Item>
+		
+		<Item English_Text = "Copy Buffer 3" ID = "2108">Copy Buffer 1-test</Item>
+		<Item English_Text = "Copy" ID = "2103">Copy-test</Item>
+		<Item English_Text = "Paste" ID = "2104">Paste-test</Item>
+		<Item English_Text = "Cut" ID = "2107">Cut-test</Item>
+		<Item English_Text = "Play Sound on Copy" ID = "1044">Play Sound on Copy-test</Item>
+		<Item English_Text = "Win" ID = "2100">Win3Copy-test</Item>
+		<Item English_Text = "Win" ID = "2102">Win3Paste-test</Item>
+		<Item English_Text = "Win" ID = "2106">Win3Cut-test</Item>
+	</Ditto_Options_CopyBuffers>
 </Ditto_Language_File>

+ 7 - 0
MultiLanguage.cpp

@@ -51,6 +51,7 @@ void CMultiLanguage::ClearArrays()
 	ClearArray(m_MoveToGroups);
 	ClearArray(m_TrayIconRightClickMenu);
 	ClearArray(m_OptionsSheet);
+	ClearArray(m_OptionsCopyBuffers);
 
 	ClearMap(m_StringMap);
 }
@@ -170,6 +171,11 @@ bool CMultiLanguage::UpdateOptionsSheet(CWnd *pParent)
 	return UpdateWindowToLanguage(pParent, m_OptionsSheet);
 }
 
+bool CMultiLanguage::UpdateOptionCopyBuffers(CWnd *pParent)
+{
+	return UpdateWindowToLanguage(pParent, m_OptionsCopyBuffers);
+}
+
 bool CMultiLanguage::UpdateMenuToLanguage(CMenu *pMenu, LANGUAGE_ARRAY &Array)
 {
 	int nSize = Array.GetSize();
@@ -314,6 +320,7 @@ bool CMultiLanguage::LoadLanguageFile(CString csFile)
 	bRet = LoadSection(*ItemHeader, m_MoveToGroups, "Ditto_Move_To_Groups");
 	bRet = LoadSection(*ItemHeader, m_OptionsSheet, "Ditto_Options_Sheet");
 	bRet = LoadSection(*ItemHeader, m_TrayIconRightClickMenu, "Ditto_Tray_Icon_Menu");
+	bRet = LoadSection(*ItemHeader, m_OptionsCopyBuffers, "Ditto_Options_CopyBuffers");
 	
 	bRet = LoadStringTableSection(*ItemHeader, m_StringMap, "Ditto_String_Table");
 

+ 2 - 0
MultiLanguage.h

@@ -54,6 +54,7 @@ public:
 	bool UpdateOptionSupportedTypesAdd(CWnd *pParent);
 	bool UpdateMoveToGroups(CWnd *pParent);
 	bool UpdateOptionsSheet(CWnd *pParent);
+	bool UpdateOptionCopyBuffers(CWnd *pParent);
 
 	CString GetString(CString csID, CString csDefault);
 
@@ -81,6 +82,7 @@ protected:
 	LANGUAGE_ARRAY m_OptionsSupportedTypesAdd;
 	LANGUAGE_ARRAY m_MoveToGroups;
 	LANGUAGE_ARRAY m_OptionsSheet;
+	LANGUAGE_ARRAY m_OptionsCopyBuffers;
 
 	LANGUAGE_MAP	m_StringMap;
 

+ 2 - 0
OptionsCopyBuffers.cpp

@@ -60,6 +60,8 @@ BOOL COptionsCopyBuffers::OnInitDialog()
 	theApp.m_pCutBuffer3->CopyToCtrl(m_CutBuffer3, m_hWnd, IDC_WIN_CUT_3);
 	CheckDlgButton(IDC_PLAY_SOUND_3, Item.m_bPlaySoundOnCopy);
 
+	theApp.m_Language.UpdateOptionCopyBuffers(this);
+
 	return TRUE;
 }