From 0433c12a85addf16704f31440f95f03d3106f893 Mon Sep 17 00:00:00 2001 From: Student Main Date: Fri, 1 Mar 2019 14:35:32 +0800 Subject: [PATCH] correction names --- shadowsocks-csharp/Data/zh_CN.txt | 2 +- .../View/ConfigForm.Designer.cs | 28 +++++++++---------- shadowsocks-csharp/View/ConfigForm.cs | 6 ++-- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/shadowsocks-csharp/Data/zh_CN.txt b/shadowsocks-csharp/Data/zh_CN.txt index 28455b77..c414bb6e 100644 --- a/shadowsocks-csharp/Data/zh_CN.txt +++ b/shadowsocks-csharp/Data/zh_CN.txt @@ -53,7 +53,7 @@ Show Password=显示密码 Encryption=加密 Plugin Program=插件程序 Plugin Options=插件选项 -Use Plugin Arguement=需要命令行参数 +Need Plugin Arguement=需要命令行参数 Plugin Arguments=插件参数 Proxy Port=代理端口 Portable Mode=便携模式 diff --git a/shadowsocks-csharp/View/ConfigForm.Designer.cs b/shadowsocks-csharp/View/ConfigForm.Designer.cs index 441692d3..242da240 100755 --- a/shadowsocks-csharp/View/ConfigForm.Designer.cs +++ b/shadowsocks-csharp/View/ConfigForm.Designer.cs @@ -49,6 +49,7 @@ this.PluginArgumentsTextBox = new System.Windows.Forms.TextBox(); this.PluginArgumentsLabel = new System.Windows.Forms.Label(); this.RemarksLabel = new System.Windows.Forms.Label(); + this.NeedPluginArgCheckBox = new System.Windows.Forms.CheckBox(); this.panel2 = new System.Windows.Forms.Panel(); this.OKButton = new System.Windows.Forms.Button(); this.MyCancelButton = new System.Windows.Forms.Button(); @@ -68,7 +69,6 @@ this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel(); this.DuplicateButton = new System.Windows.Forms.Button(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); - this.UsePluginArgCheckBox = new System.Windows.Forms.CheckBox(); this.tableLayoutPanel1.SuspendLayout(); this.ServerGroupBox.SuspendLayout(); this.tableLayoutPanel2.SuspendLayout(); @@ -104,7 +104,7 @@ this.tableLayoutPanel1.Controls.Add(this.PluginArgumentsTextBox, 1, 8); this.tableLayoutPanel1.Controls.Add(this.PluginArgumentsLabel, 0, 8); this.tableLayoutPanel1.Controls.Add(this.RemarksLabel, 0, 10); - this.tableLayoutPanel1.Controls.Add(this.UsePluginArgCheckBox, 1, 7); + this.tableLayoutPanel1.Controls.Add(this.NeedPluginArgCheckBox, 1, 7); this.tableLayoutPanel1.Location = new System.Drawing.Point(8, 21); this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(0); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; @@ -347,6 +347,17 @@ this.RemarksLabel.TabIndex = 8; this.RemarksLabel.Text = "Remarks"; // + // NeedPluginArgCheckBox + // + this.NeedPluginArgCheckBox.AutoSize = true; + this.NeedPluginArgCheckBox.Location = new System.Drawing.Point(113, 189); + this.NeedPluginArgCheckBox.Name = "NeedPluginArgCheckBox"; + this.NeedPluginArgCheckBox.Size = new System.Drawing.Size(150, 16); + this.NeedPluginArgCheckBox.TabIndex = 10; + this.NeedPluginArgCheckBox.Text = "Need Plugin Arguement"; + this.NeedPluginArgCheckBox.UseVisualStyleBackColor = true; + this.NeedPluginArgCheckBox.CheckedChanged += new System.EventHandler(this.UsePluginArgCheckBox_CheckedChanged); + // // panel2 // this.panel2.Anchor = System.Windows.Forms.AnchorStyles.Top; @@ -603,17 +614,6 @@ this.DuplicateButton.UseVisualStyleBackColor = true; this.DuplicateButton.Click += new System.EventHandler(this.DuplicateButton_Click); // - // UsePluginArgCheckBox - // - this.UsePluginArgCheckBox.AutoSize = true; - this.UsePluginArgCheckBox.Location = new System.Drawing.Point(113, 189); - this.UsePluginArgCheckBox.Name = "UsePluginArgCheckBox"; - this.UsePluginArgCheckBox.Size = new System.Drawing.Size(96, 16); - this.UsePluginArgCheckBox.TabIndex = 10; - this.UsePluginArgCheckBox.Text = "UsePluginArg"; - this.UsePluginArgCheckBox.UseVisualStyleBackColor = true; - this.UsePluginArgCheckBox.CheckedChanged += new System.EventHandler(this.UsePluginArgCheckBox_CheckedChanged); - // // ConfigForm // this.AcceptButton = this.OKButton; @@ -692,7 +692,7 @@ private System.Windows.Forms.Label PluginArgumentsLabel; private System.Windows.Forms.ToolTip toolTip1; private System.Windows.Forms.CheckBox PortableModeCheckBox; - private System.Windows.Forms.CheckBox UsePluginArgCheckBox; + private System.Windows.Forms.CheckBox NeedPluginArgCheckBox; } } diff --git a/shadowsocks-csharp/View/ConfigForm.cs b/shadowsocks-csharp/View/ConfigForm.cs index e9d737a8..1fc940aa 100755 --- a/shadowsocks-csharp/View/ConfigForm.cs +++ b/shadowsocks-csharp/View/ConfigForm.cs @@ -53,7 +53,7 @@ namespace Shadowsocks.View PluginLabel.Text = I18N.GetString("Plugin Program"); PluginOptionsLabel.Text = I18N.GetString("Plugin Options"); PluginArgumentsLabel.Text = I18N.GetString("Plugin Arguments"); - UsePluginArgCheckBox.Text = I18N.GetString("Use Plugin Arguement"); + NeedPluginArgCheckBox.Text = I18N.GetString("Need Plugin Arguement"); ProxyPortLabel.Text = I18N.GetString("Proxy Port"); PortableModeCheckBox.Text = I18N.GetString("Portable Mode"); toolTip1.SetToolTip(this.PortableModeCheckBox, I18N.GetString("Restart required")); @@ -147,7 +147,7 @@ namespace Shadowsocks.View PluginArgumentsTextBox.Text = server.plugin_args; bool showPluginArgInput = !string.IsNullOrEmpty(server.plugin_args); - UsePluginArgCheckBox.Checked = showPluginArgInput; + NeedPluginArgCheckBox.Checked = showPluginArgInput; ShowHidePluginArgInput(showPluginArgInput); RemarksTextBox.Text = server.remarks; @@ -378,7 +378,7 @@ namespace Shadowsocks.View private void UsePluginArgCheckBox_CheckedChanged(object sender, EventArgs e) { - ShowHidePluginArgInput(this.UsePluginArgCheckBox.Checked); + ShowHidePluginArgInput(this.NeedPluginArgCheckBox.Checked); } } }