From a15e17af040429845df656c5a9f4716344c3f0f6 Mon Sep 17 00:00:00 2001 From: Pavel Petroshenko Date: Fri, 23 May 2008 10:37:49 +0000 Subject: [PATCH] - fixe menu item control name for proper localization; git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@91 c66351dc-e62f-0410-b875-e3a5c0b9693f --- src/webimtray/WebIMTray/Main.Designer.cs | 12 +----------- src/webimtray/WebIMTray/Main.cs | 5 ++--- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/src/webimtray/WebIMTray/Main.Designer.cs b/src/webimtray/WebIMTray/Main.Designer.cs index b6a69e97..8bbf7ff1 100644 --- a/src/webimtray/WebIMTray/Main.Designer.cs +++ b/src/webimtray/WebIMTray/Main.Designer.cs @@ -30,7 +30,6 @@ namespace webImTray { this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.refreshToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.optionsMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.hideWindowToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.notifyMenu.SuspendLayout(); this.menuStrip1.SuspendLayout(); this.SuspendLayout(); @@ -89,8 +88,7 @@ namespace webImTray { // this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.refreshToolStripMenuItem, - this.optionsMenuItem, - this.hideWindowToolStripMenuItem}); + this.optionsMenuItem}); this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Size = new System.Drawing.Size(864, 24); @@ -111,13 +109,6 @@ namespace webImTray { this.optionsMenuItem.Text = "Options"; this.optionsMenuItem.Click += new System.EventHandler(this.optionsToolStripMenuItem1_Click); // - // hideWindowToolStripMenuItem - // - this.hideWindowToolStripMenuItem.Name = "hideWindowToolStripMenuItem"; - this.hideWindowToolStripMenuItem.Size = new System.Drawing.Size(79, 20); - this.hideWindowToolStripMenuItem.Text = "Hide window"; - this.hideWindowToolStripMenuItem.Click += new System.EventHandler(this.hideWindowToolStripMenuItem_Click); - // // MainWindow // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); @@ -150,7 +141,6 @@ namespace webImTray { private System.Windows.Forms.MenuStrip menuStrip1; private System.Windows.Forms.ToolStripMenuItem refreshToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem optionsMenuItem; - private System.Windows.Forms.ToolStripMenuItem hideWindowToolStripMenuItem; } } diff --git a/src/webimtray/WebIMTray/Main.cs b/src/webimtray/WebIMTray/Main.cs index 3788fc80..f77e55e4 100644 --- a/src/webimtray/WebIMTray/Main.cs +++ b/src/webimtray/WebIMTray/Main.cs @@ -48,9 +48,8 @@ namespace webImTray { } private void updateLocalizedControls() { - // Update localized controls - hideWindowToolStripMenuItem.Text = Options.resourceManager.GetString("hideWindow"); - optionsToolStripMenuItem.Text = Options.resourceManager.GetString("optionsMenuItem"); + // Update localized controls + optionsMenuItem.Text = Options.resourceManager.GetString("optionsMenuItem"); refreshToolStripMenuItem.Text = Options.resourceManager.GetString("refreshMenuItem"); optionsToolStripMenuItem.Text = Options.resourceManager.GetString("trayOptions"); exitToolStripMenuItem.Text = Options.resourceManager.GetString("trayExit");