vs2019汉化99%zgc123@gmail.com authored at 11/28/2023 4:10:34 PM zgc123@gmail.com committed at 11/28/2023 4:10:51 PM
diff --git a/minisqlquery-master/src/MiniSqlQuery/AboutForm.cs b/minisqlquery-master/src/MiniSqlQuery/AboutForm.cs
index 233d777..6a59620 100644
--- a/minisqlquery-master/src/MiniSqlQuery/AboutForm.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/AboutForm.cs
@@ -33,9 +33,9 @@ namespace MiniSqlQuery
{
InitializeComponent();
pic.Image = ImageResource.ApplicationIcon;
- Text = String.Format("About {0}", AssemblyTitle);
+ Text = String.Format("关于 {0}", AssemblyTitle);
labelProductName.Text = AssemblyTitle;
- labelVersion.Text = String.Format("Version {0}", AssemblyVersion);
+ labelVersion.Text = String.Format("版本 {0}", AssemblyVersion);
labelCopyright.Text = AssemblyCopyright;
textBoxDescription.Text = AssemblyDescription;
}
diff --git a/minisqlquery-master/src/MiniSqlQuery/AboutForm.Designer.cs b/minisqlquery-master/src/MiniSqlQuery/AboutForm.Designer.cs
index c0b6920..6c559da 100644
--- a/minisqlquery-master/src/MiniSqlQuery/AboutForm.Designer.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/AboutForm.Designer.cs
@@ -36,18 +36,18 @@
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPageReadMe = new System.Windows.Forms.TabPage();
this.webBrowser1 = new System.Windows.Forms.WebBrowser();
+ this.tabChangeLog = new System.Windows.Forms.TabPage();
+ this.txtChangeLog = new System.Windows.Forms.TextBox();
this.tabPageLicense = new System.Windows.Forms.TabPage();
this.txtLicense = new System.Windows.Forms.TextBox();
this.tabPagePlugins = new System.Windows.Forms.TabPage();
this.pic = new System.Windows.Forms.PictureBox();
- this.tabChangeLog = new System.Windows.Forms.TabPage();
- this.txtChangeLog = new System.Windows.Forms.TextBox();
this.tabControl1.SuspendLayout();
this.tabPageReadMe.SuspendLayout();
+ this.tabChangeLog.SuspendLayout();
this.tabPageLicense.SuspendLayout();
this.tabPagePlugins.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pic)).BeginInit();
- this.tabChangeLog.SuspendLayout();
this.SuspendLayout();
//
// textBoxDescription
@@ -55,13 +55,13 @@
this.textBoxDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBoxDescription.BackColor = System.Drawing.SystemColors.Window;
- this.textBoxDescription.Location = new System.Drawing.Point(12, 77);
+ this.textBoxDescription.Location = new System.Drawing.Point(12, 71);
this.textBoxDescription.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3);
this.textBoxDescription.Multiline = true;
this.textBoxDescription.Name = "textBoxDescription";
this.textBoxDescription.ReadOnly = true;
this.textBoxDescription.ScrollBars = System.Windows.Forms.ScrollBars.Both;
- this.textBoxDescription.Size = new System.Drawing.Size(615, 54);
+ this.textBoxDescription.Size = new System.Drawing.Size(615, 50);
this.textBoxDescription.TabIndex = 23;
this.textBoxDescription.TabStop = false;
this.textBoxDescription.Text = "Description";
@@ -70,9 +70,9 @@
//
this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.okButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
- this.okButton.Location = new System.Drawing.Point(552, 437);
+ this.okButton.Location = new System.Drawing.Point(552, 403);
this.okButton.Name = "okButton";
- this.okButton.Size = new System.Drawing.Size(75, 23);
+ this.okButton.Size = new System.Drawing.Size(75, 21);
this.okButton.TabIndex = 24;
this.okButton.Text = "&OK";
this.okButton.Click += new System.EventHandler(this.okButton_Click);
@@ -82,17 +82,17 @@
this.pluginList.Dock = System.Windows.Forms.DockStyle.Fill;
this.pluginList.Location = new System.Drawing.Point(3, 3);
this.pluginList.Name = "pluginList";
- this.pluginList.Size = new System.Drawing.Size(601, 262);
+ this.pluginList.Size = new System.Drawing.Size(601, 239);
this.pluginList.TabIndex = 0;
//
// labelVersion
//
this.labelVersion.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
- this.labelVersion.Location = new System.Drawing.Point(81, 35);
+ this.labelVersion.Location = new System.Drawing.Point(81, 32);
this.labelVersion.Margin = new System.Windows.Forms.Padding(0);
this.labelVersion.Name = "labelVersion";
- this.labelVersion.Size = new System.Drawing.Size(546, 17);
+ this.labelVersion.Size = new System.Drawing.Size(546, 16);
this.labelVersion.TabIndex = 0;
this.labelVersion.Text = "Version";
this.labelVersion.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -103,10 +103,10 @@
this.labelProductName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labelProductName.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.labelProductName.Location = new System.Drawing.Point(81, 9);
+ this.labelProductName.Location = new System.Drawing.Point(81, 8);
this.labelProductName.Margin = new System.Windows.Forms.Padding(0);
this.labelProductName.Name = "labelProductName";
- this.labelProductName.Size = new System.Drawing.Size(546, 17);
+ this.labelProductName.Size = new System.Drawing.Size(546, 16);
this.labelProductName.TabIndex = 19;
this.labelProductName.Text = "Product Name";
this.labelProductName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -115,10 +115,10 @@
//
this.labelCopyright.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
- this.labelCopyright.Location = new System.Drawing.Point(81, 52);
+ this.labelCopyright.Location = new System.Drawing.Point(81, 48);
this.labelCopyright.Margin = new System.Windows.Forms.Padding(0);
this.labelCopyright.Name = "labelCopyright";
- this.labelCopyright.Size = new System.Drawing.Size(546, 17);
+ this.labelCopyright.Size = new System.Drawing.Size(546, 16);
this.labelCopyright.TabIndex = 22;
this.labelCopyright.Text = "Copyright";
this.labelCopyright.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -132,10 +132,10 @@
this.tabControl1.Controls.Add(this.tabChangeLog);
this.tabControl1.Controls.Add(this.tabPageLicense);
this.tabControl1.Controls.Add(this.tabPagePlugins);
- this.tabControl1.Location = new System.Drawing.Point(12, 137);
+ this.tabControl1.Location = new System.Drawing.Point(12, 126);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
- this.tabControl1.Size = new System.Drawing.Size(615, 294);
+ this.tabControl1.Size = new System.Drawing.Size(615, 271);
this.tabControl1.TabIndex = 25;
//
// tabPageReadMe
@@ -144,29 +144,51 @@
this.tabPageReadMe.Location = new System.Drawing.Point(4, 22);
this.tabPageReadMe.Name = "tabPageReadMe";
this.tabPageReadMe.Padding = new System.Windows.Forms.Padding(3);
- this.tabPageReadMe.Size = new System.Drawing.Size(607, 268);
+ this.tabPageReadMe.Size = new System.Drawing.Size(607, 245);
this.tabPageReadMe.TabIndex = 2;
- this.tabPageReadMe.Text = "Read Me!";
+ this.tabPageReadMe.Text = "说明!";
this.tabPageReadMe.UseVisualStyleBackColor = true;
//
// webBrowser1
//
this.webBrowser1.Dock = System.Windows.Forms.DockStyle.Fill;
this.webBrowser1.Location = new System.Drawing.Point(3, 3);
- this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
+ this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 18);
this.webBrowser1.Name = "webBrowser1";
- this.webBrowser1.Size = new System.Drawing.Size(601, 262);
+ this.webBrowser1.Size = new System.Drawing.Size(601, 239);
this.webBrowser1.TabIndex = 0;
//
+ // tabChangeLog
+ //
+ this.tabChangeLog.Controls.Add(this.txtChangeLog);
+ this.tabChangeLog.Location = new System.Drawing.Point(4, 22);
+ this.tabChangeLog.Name = "tabChangeLog";
+ this.tabChangeLog.Padding = new System.Windows.Forms.Padding(3);
+ this.tabChangeLog.Size = new System.Drawing.Size(607, 245);
+ this.tabChangeLog.TabIndex = 4;
+ this.tabChangeLog.Text = "修改历史";
+ this.tabChangeLog.UseVisualStyleBackColor = true;
+ //
+ // txtChangeLog
+ //
+ this.txtChangeLog.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.txtChangeLog.Location = new System.Drawing.Point(3, 3);
+ this.txtChangeLog.Multiline = true;
+ this.txtChangeLog.Name = "txtChangeLog";
+ this.txtChangeLog.ReadOnly = true;
+ this.txtChangeLog.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
+ this.txtChangeLog.Size = new System.Drawing.Size(601, 239);
+ this.txtChangeLog.TabIndex = 1;
+ //
// tabPageLicense
//
this.tabPageLicense.Controls.Add(this.txtLicense);
this.tabPageLicense.Location = new System.Drawing.Point(4, 22);
this.tabPageLicense.Name = "tabPageLicense";
this.tabPageLicense.Padding = new System.Windows.Forms.Padding(3);
- this.tabPageLicense.Size = new System.Drawing.Size(607, 268);
+ this.tabPageLicense.Size = new System.Drawing.Size(607, 245);
this.tabPageLicense.TabIndex = 3;
- this.tabPageLicense.Text = "License";
+ this.tabPageLicense.Text = "授权";
this.tabPageLicense.UseVisualStyleBackColor = true;
//
// txtLicense
@@ -177,7 +199,7 @@
this.txtLicense.Name = "txtLicense";
this.txtLicense.ReadOnly = true;
this.txtLicense.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
- this.txtLicense.Size = new System.Drawing.Size(601, 262);
+ this.txtLicense.Size = new System.Drawing.Size(601, 239);
this.txtLicense.TabIndex = 0;
//
// tabPagePlugins
@@ -186,49 +208,27 @@
this.tabPagePlugins.Location = new System.Drawing.Point(4, 22);
this.tabPagePlugins.Name = "tabPagePlugins";
this.tabPagePlugins.Padding = new System.Windows.Forms.Padding(3);
- this.tabPagePlugins.Size = new System.Drawing.Size(607, 268);
+ this.tabPagePlugins.Size = new System.Drawing.Size(607, 245);
this.tabPagePlugins.TabIndex = 1;
- this.tabPagePlugins.Text = "Plugins";
+ this.tabPagePlugins.Text = "插件";
this.tabPagePlugins.UseVisualStyleBackColor = true;
//
// pic
//
- this.pic.Location = new System.Drawing.Point(26, 20);
+ this.pic.Location = new System.Drawing.Point(26, 18);
this.pic.Name = "pic";
- this.pic.Size = new System.Drawing.Size(32, 32);
+ this.pic.Size = new System.Drawing.Size(32, 30);
this.pic.TabIndex = 26;
this.pic.TabStop = false;
//
- // tabChangeLog
- //
- this.tabChangeLog.Controls.Add(this.txtChangeLog);
- this.tabChangeLog.Location = new System.Drawing.Point(4, 22);
- this.tabChangeLog.Name = "tabChangeLog";
- this.tabChangeLog.Padding = new System.Windows.Forms.Padding(3);
- this.tabChangeLog.Size = new System.Drawing.Size(607, 268);
- this.tabChangeLog.TabIndex = 4;
- this.tabChangeLog.Text = "Change Log";
- this.tabChangeLog.UseVisualStyleBackColor = true;
- //
- // txtChangeLog
- //
- this.txtChangeLog.Dock = System.Windows.Forms.DockStyle.Fill;
- this.txtChangeLog.Location = new System.Drawing.Point(3, 3);
- this.txtChangeLog.Multiline = true;
- this.txtChangeLog.Name = "txtChangeLog";
- this.txtChangeLog.ReadOnly = true;
- this.txtChangeLog.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
- this.txtChangeLog.Size = new System.Drawing.Size(601, 262);
- this.txtChangeLog.TabIndex = 1;
- //
// AboutForm
//
this.AcceptButton = this.okButton;
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Window;
this.CancelButton = this.okButton;
- this.ClientSize = new System.Drawing.Size(639, 472);
+ this.ClientSize = new System.Drawing.Size(639, 436);
this.Controls.Add(this.pic);
this.Controls.Add(this.tabControl1);
this.Controls.Add(this.okButton);
@@ -240,20 +240,20 @@
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "AboutForm";
- this.Padding = new System.Windows.Forms.Padding(9);
+ this.Padding = new System.Windows.Forms.Padding(9, 8, 9, 8);
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
- this.Text = "About";
+ this.Text = "关于";
this.Load += new System.EventHandler(this.AboutForm_Load);
this.tabControl1.ResumeLayout(false);
this.tabPageReadMe.ResumeLayout(false);
+ this.tabChangeLog.ResumeLayout(false);
+ this.tabChangeLog.PerformLayout();
this.tabPageLicense.ResumeLayout(false);
this.tabPageLicense.PerformLayout();
this.tabPagePlugins.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pic)).EndInit();
- this.tabChangeLog.ResumeLayout(false);
- this.tabChangeLog.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
diff --git a/minisqlquery-master/src/MiniSqlQuery/BasicEditors.cs b/minisqlquery-master/src/MiniSqlQuery/BasicEditors.cs
index 89b0c0c..a1217b8 100644
--- a/minisqlquery-master/src/MiniSqlQuery/BasicEditors.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/BasicEditors.cs
@@ -23,7 +23,7 @@ namespace MiniSqlQuery
/// <summary>Gets FileFilter.</summary>
public override string FileFilter
{
- get { return "ASPX Files (*.asp;*.aspx;*.asax;*.asmx)|*.asp;*.aspx;*.asax;*.asmx|All Files (*.*)|*.*"; }
+ get { return "ASPX 文件 (*.asp;*.aspx;*.asax;*.asmx)|*.asp;*.aspx;*.asax;*.asmx|所有文件 (*.*)|*.*"; }
}
}
@@ -41,7 +41,7 @@ namespace MiniSqlQuery
/// <summary>Gets FileFilter.</summary>
public override string FileFilter
{
- get { return "Batch Files (*.bat;*.cmd)|*.bat;*.cmd|All Files (*.*)|*.*"; }
+ get { return "批处理文件 (*.bat;*.cmd)|*.bat;*.cmd|所有文件 (*.*)|*.*"; }
}
}
@@ -59,7 +59,7 @@ namespace MiniSqlQuery
/// <summary>Gets FileFilter.</summary>
public override string FileFilter
{
- get { return "BOO Files (*.boo)|*.boo|All Files (*.*)|*.*"; }
+ get { return "BOO 文件 (*.boo)|*.boo|所有文件 (*.*)|*.*"; }
}
}
@@ -77,7 +77,7 @@ namespace MiniSqlQuery
/// <summary>Gets FileFilter.</summary>
public override string FileFilter
{
- get { return "Coco Files (*.atg)|*.atg|All Files (*.*)|*.*"; }
+ get { return "Coco 文件 (*.atg)|*.atg|所有文件 (*.*)|*.*"; }
}
}
@@ -95,7 +95,7 @@ namespace MiniSqlQuery
/// <summary>Gets FileFilter.</summary>
public override string FileFilter
{
- get { return "C++ Files (*.cpp;*.cc;*.c;*.h)|*.cpp;*.cc;*.c;*.h|All Files (*.*)|*.*"; }
+ get { return "C++ 文件 (*.cpp;*.cc;*.c;*.h)|*.cpp;*.cc;*.c;*.h|所有文件(*.*)|*.*"; }
}
}
@@ -113,7 +113,7 @@ namespace MiniSqlQuery
/// <summary>Gets FileFilter.</summary>
public override string FileFilter
{
- get { return "C# Files (*.cs)|*.cs|All Files (*.*)|*.*"; }
+ get { return "C# 文件 (*.cs)|*.cs|所有文件 (*.*)|*.*"; }
}
}
@@ -131,7 +131,7 @@ namespace MiniSqlQuery
/// <summary>Gets FileFilter.</summary>
public override string FileFilter
{
- get { return "HTML Files (*.htm*)|*.htm*|All Files (*.*)|*.*"; }
+ get { return "HTML 文件(*.htm*)|*.htm*|所有文件 (*.*)|*.*"; }
}
}
@@ -149,7 +149,7 @@ namespace MiniSqlQuery
/// <summary>Gets FileFilter.</summary>
public override string FileFilter
{
- get { return "Java Files (*.java)|*.java|All Files (*.*)|*.*"; }
+ get { return "Java 文件 (*.java)|*.java|所有文件 (*.*)|*.*"; }
}
}
@@ -167,7 +167,7 @@ namespace MiniSqlQuery
/// <summary>Gets FileFilter.</summary>
public override string FileFilter
{
- get { return "JavaScript Files (*.js)|*.js|All Files (*.*)|*.*"; }
+ get { return "JavaScript脚本文件 (*.js)|*.js|所有文件 (*.*)|*.*"; }
}
}
@@ -185,7 +185,7 @@ namespace MiniSqlQuery
/// <summary>Gets FileFilter.</summary>
public override string FileFilter
{
- get { return "Patch Files (*.patch;*.diff)|*.patch;*.diff|All Files (*.*)|*.*"; }
+ get { return "Patch 文件 (*.patch;*.diff)|*.patch;*.diff|所有文件 (*.*)|*.*"; }
}
}
@@ -203,7 +203,7 @@ namespace MiniSqlQuery
/// <summary>Gets FileFilter.</summary>
public override string FileFilter
{
- get { return "PHP Files (*.php*)|*.php*|All Files (*.*)|*.*"; }
+ get { return "PHP文件 (*.php*)|*.php*|所有文件 (*.*)|*.*"; }
}
}
@@ -221,7 +221,7 @@ namespace MiniSqlQuery
/// <summary>Gets FileFilter.</summary>
public override string FileFilter
{
- get { return "TeX Files (*.tex)|*.tex|All Files (*.*)|*.*"; }
+ get { return "TeX 文件 (*.tex)|*.tex|所有文件(*.*)|*.*"; }
}
}
@@ -239,7 +239,7 @@ namespace MiniSqlQuery
/// <summary>Gets FileFilter.</summary>
public override string FileFilter
{
- get { return "VB.NET Files (*.vb)|*.vb|All Files (*.*)|*.*"; }
+ get { return "VB.NET 文件 (*.vb)|*.vb|所有文件 (*.*)|*.*"; }
}
}
@@ -257,7 +257,7 @@ namespace MiniSqlQuery
/// <summary>Gets FileFilter.</summary>
public override string FileFilter
{
- get { return "XML Files (*.xml;*.resx)|*.xml;*.resx|All Files (*.*)|*.*"; }
+ get { return "XML 文件 (*.xml;*.resx)|*.xml;*.resx|所有文件 (*.*)|*.*"; }
}
}
}
\ No newline at end of file
diff --git a/minisqlquery-master/src/MiniSqlQuery/Commands/NewFileCommand.cs b/minisqlquery-master/src/MiniSqlQuery/Commands/NewFileCommand.cs
index 3fb143f..6910213 100644
--- a/minisqlquery-master/src/MiniSqlQuery/Commands/NewFileCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/Commands/NewFileCommand.cs
@@ -18,7 +18,7 @@ namespace MiniSqlQuery.Commands
{
/// <summary>Initializes a new instance of the <see cref="NewFileCommand"/> class.</summary>
public NewFileCommand()
- : base("New &File")
+ : base("(&F)�½��ļ�")
{
ShortcutKeys = Keys.Control | Keys.Alt | Keys.N;
SmallImage = ImageResource.page;
diff --git a/minisqlquery-master/src/MiniSqlQuery/Commands/OpenFileCommand.cs b/minisqlquery-master/src/MiniSqlQuery/Commands/OpenFileCommand.cs
index efe27ea..e0f8ff3 100644
--- a/minisqlquery-master/src/MiniSqlQuery/Commands/OpenFileCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/Commands/OpenFileCommand.cs
@@ -19,7 +19,7 @@ namespace MiniSqlQuery.Commands
{
/// <summary>Initializes a new instance of the <see cref="OpenFileCommand"/> class.</summary>
public OpenFileCommand()
- : base("&Open File")
+ : base("(&O)打开文件")
{
ShortcutKeys = Keys.Control | Keys.O;
SmallImage = ImageResource.folder_page;
diff --git a/minisqlquery-master/src/MiniSqlQuery/Commands/OpenRecentFileCommand.cs b/minisqlquery-master/src/MiniSqlQuery/Commands/OpenRecentFileCommand.cs
index 85d5372..0db5fe1 100644
--- a/minisqlquery-master/src/MiniSqlQuery/Commands/OpenRecentFileCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/Commands/OpenRecentFileCommand.cs
@@ -18,13 +18,13 @@ namespace MiniSqlQuery.Commands
/// Initializes a new instance of the <see cref = "OpenRecentFileCommand" /> class.
/// </summary>
protected OpenRecentFileCommand(int index)
- : base("MRU")
+ : base("历史文件")
{
_index = index;
}
public OpenRecentFileCommand(IMostRecentFilesService mostRecentFilesService, int index)
- : base("MRU")
+ : base("历史文件")
{
_mostRecentFilesService = mostRecentFilesService;
_index = index;
diff --git a/minisqlquery-master/src/MiniSqlQuery/Commands/SaveFileAsCommand.cs b/minisqlquery-master/src/MiniSqlQuery/Commands/SaveFileAsCommand.cs
index a3e598e..5e5342a 100644
--- a/minisqlquery-master/src/MiniSqlQuery/Commands/SaveFileAsCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/Commands/SaveFileAsCommand.cs
@@ -18,7 +18,7 @@ namespace MiniSqlQuery.Commands
{
/// <summary>Initializes a new instance of the <see cref="SaveFileAsCommand"/> class.</summary>
public SaveFileAsCommand()
- : base("Save File &As...")
+ : base("另存文件(&A)...")
{
}
diff --git a/minisqlquery-master/src/MiniSqlQuery/Commands/SaveFileCommand.cs b/minisqlquery-master/src/MiniSqlQuery/Commands/SaveFileCommand.cs
index bd41f52..0fa034c 100644
--- a/minisqlquery-master/src/MiniSqlQuery/Commands/SaveFileCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/Commands/SaveFileCommand.cs
@@ -17,7 +17,7 @@ namespace MiniSqlQuery.Commands
{
/// <summary>Initializes a new instance of the <see cref="SaveFileCommand"/> class.</summary>
public SaveFileCommand()
- : base("&Save File")
+ : base("(&S)保存文件")
{
ShortcutKeys = Keys.Control | Keys.S;
SmallImage = ImageResource.disk;
diff --git a/minisqlquery-master/src/MiniSqlQuery/Commands/SaveResultsAsDataSetCommand.cs b/minisqlquery-master/src/MiniSqlQuery/Commands/SaveResultsAsDataSetCommand.cs
index cea455c..d9039c6 100644
--- a/minisqlquery-master/src/MiniSqlQuery/Commands/SaveResultsAsDataSetCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/Commands/SaveResultsAsDataSetCommand.cs
@@ -20,7 +20,7 @@ namespace MiniSqlQuery.Commands
{
/// <summary>Initializes a new instance of the <see cref="SaveResultsAsDataSetCommand"/> class.</summary>
public SaveResultsAsDataSetCommand()
- : base("Save Results as DataSet XML...")
+ : base("将结果另存为数据集XML...")
{
SmallImage = ImageResource.table_save;
}
diff --git a/minisqlquery-master/src/MiniSqlQuery/Commands/ShowAboutCommand.cs b/minisqlquery-master/src/MiniSqlQuery/Commands/ShowAboutCommand.cs
index 1b960eb..fd55459 100644
--- a/minisqlquery-master/src/MiniSqlQuery/Commands/ShowAboutCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/Commands/ShowAboutCommand.cs
@@ -17,7 +17,7 @@ namespace MiniSqlQuery.Commands
{
/// <summary>Initializes a new instance of the <see cref="ShowAboutCommand"/> class.</summary>
public ShowAboutCommand()
- : base("&About...")
+ : base("(&A)关于...")
{
SmallImage = ImageResource.ApplicationIcon;
}
diff --git a/minisqlquery-master/src/MiniSqlQuery/Commands/ShowOptionsFormCommand.cs b/minisqlquery-master/src/MiniSqlQuery/Commands/ShowOptionsFormCommand.cs
index 5b1ce09..55e1bbd 100644
--- a/minisqlquery-master/src/MiniSqlQuery/Commands/ShowOptionsFormCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/Commands/ShowOptionsFormCommand.cs
@@ -16,7 +16,7 @@ namespace MiniSqlQuery.Commands
{
/// <summary>Initializes a new instance of the <see cref="ShowOptionsFormCommand"/> class.</summary>
public ShowOptionsFormCommand()
- : base("Options")
+ : base("ѡ��")
{
// ShortcutKeys = ?;
SmallImage = ImageResource.cog;
diff --git a/minisqlquery-master/src/MiniSqlQuery/MainForm.cs b/minisqlquery-master/src/MiniSqlQuery/MainForm.cs
index 0cdb7ae..69e7065 100644
--- a/minisqlquery-master/src/MiniSqlQuery/MainForm.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/MainForm.cs
@@ -174,10 +174,10 @@ namespace MiniSqlQuery
public ToolStripMenuItem GetMenuItem(string name)
{
ToolStripMenuItem menuItem = null;
-
+ //zhenggc 2023-11-28 modify
foreach (ToolStripMenuItem item in MainMenuStrip.Items)
{
- if (item.Text.Replace("&", string.Empty).ToLower() == name.ToLower())
+ if (item.Name.Replace("&", string.Empty).ToLower() == name.ToLower())
{
menuItem = item;
break;
diff --git a/minisqlquery-master/src/MiniSqlQuery/MainForm.Designer.cs b/minisqlquery-master/src/MiniSqlQuery/MainForm.Designer.cs
index f2ec167..fd492a0 100644
--- a/minisqlquery-master/src/MiniSqlQuery/MainForm.Designer.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/MainForm.Designer.cs
@@ -259,8 +259,8 @@
// toolStripLabel1
//
this.toolStripLabel1.Name = "toolStripLabel1";
- this.toolStripLabel1.Size = new System.Drawing.Size(76, 22);
- this.toolStripLabel1.Text = "Connection:";
+ this.toolStripLabel1.Size = new System.Drawing.Size(35, 22);
+ this.toolStripLabel1.Text = "连接:";
//
// toolStripComboBoxConnection
//
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/ConnectionStringsManager/Commands/EditConnectionsFormCommand.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/ConnectionStringsManager/Commands/EditConnectionsFormCommand.cs
index bce056e..de27f69 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/ConnectionStringsManager/Commands/EditConnectionsFormCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/ConnectionStringsManager/Commands/EditConnectionsFormCommand.cs
@@ -15,7 +15,7 @@ namespace MiniSqlQuery.PlugIns.ConnectionStringsManager.Commands
{
/// <summary>Initializes a new instance of the <see cref="EditConnectionsFormCommand"/> class.</summary>
public EditConnectionsFormCommand()
- : base("&E编辑连接字符串")
+ : base("(&E)编辑连接字符串")
{
SmallImage = ImageResource.database_edit;
}
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/ConnectionStringsManager/ConnectionStringsManagerLoader.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/ConnectionStringsManager/ConnectionStringsManagerLoader.cs
index ac3a2fe..232a5db 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/ConnectionStringsManager/ConnectionStringsManagerLoader.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/ConnectionStringsManager/ConnectionStringsManagerLoader.cs
@@ -26,7 +26,8 @@ namespace MiniSqlQuery.PlugIns.ConnectionStringsManager
public override void InitializePlugIn()
{
Services.RegisterComponent<DbConnectionsForm>("DbConnectionsForm");
- ToolStripMenuItem editMenu = Services.HostWindow.GetMenuItem("edit");
+ //zhenggc .GetMenuItem("edit"); 修改 GetMenuItem("editmenu")
+ ToolStripMenuItem editMenu = Services.HostWindow.GetMenuItem("editmenu");
editMenu.DropDownItems.Add(CommandControlBuilder.CreateToolStripMenuItem<EditConnectionsFormCommand>());
Services.HostWindow.AddToolStripCommand<EditConnectionsFormCommand>(null);
}
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/CoreApplicationPlugIn.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/CoreApplicationPlugIn.cs
index 7dc7b39..6b1ccbe 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/CoreApplicationPlugIn.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/CoreApplicationPlugIn.cs
@@ -49,10 +49,12 @@ namespace MiniSqlQuery.PlugIns
services.RegisterSingletonComponent<IMostRecentFilesService, MostRecentFilesService>("MostRecentFilesService");
services.RegisterConfigurationObject<CoreMiniSqlQueryConfiguration>();
- ToolStripMenuItem fileMenu = hostWindow.GetMenuItem("File");
- ToolStripMenuItem editMenu = hostWindow.GetMenuItem("edit");
- ToolStripMenuItem queryMenu = hostWindow.GetMenuItem("query");
- ToolStripMenuItem helpMenu = hostWindow.GetMenuItem("help");
+ ToolStripMenuItem fileMenu = hostWindow.GetMenuItem("Filemenu");
+ ToolStripMenuItem editMenu = hostWindow.GetMenuItem("editmenu");
+ //ToolStripMenuItem queryMenu = hostWindow.GetMenuItem("querymenu");
+ //zhenggc queryToolStripMenuItem 2023-11-28 modify
+ ToolStripMenuItem queryMenu = hostWindow.GetMenuItem("queryToolStripMenuItem");
+ ToolStripMenuItem helpMenu = hostWindow.GetMenuItem("helpmenu");
fileMenu.DropDownItems.Add(CommandControlBuilder.CreateToolStripMenuItem<NewQueryFormCommand>());
fileMenu.DropDownItems.Add(CommandControlBuilder.CreateToolStripMenuItem<NewFileCommand>());
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/CopyTableNameCommand.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/CopyTableNameCommand.cs
index ff20da0..c86681d 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/CopyTableNameCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/CopyTableNameCommand.cs
@@ -15,7 +15,7 @@ namespace MiniSqlQuery.PlugIns.DatabaseInspector.Commands
{
/// <summary>Initializes a new instance of the <see cref="CopyTableNameCommand"/> class.</summary>
public CopyTableNameCommand()
- : base("Copy table name")
+ : base("���Ʊ���")
{
}
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/GenerateDeleteStatementCommand.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/GenerateDeleteStatementCommand.cs
index e0b7220..57c46fe 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/GenerateDeleteStatementCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/GenerateDeleteStatementCommand.cs
@@ -16,7 +16,7 @@ namespace MiniSqlQuery.PlugIns.DatabaseInspector.Commands
{
/// <summary>Initializes a new instance of the <see cref="GenerateDeleteStatementCommand"/> class.</summary>
public GenerateDeleteStatementCommand()
- : base("Generate Delete Statement")
+ : base("生成删除语句")
{
}
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/GenerateInsertStatementCommand.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/GenerateInsertStatementCommand.cs
index 55f0802..b51688f 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/GenerateInsertStatementCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/GenerateInsertStatementCommand.cs
@@ -16,7 +16,7 @@ namespace MiniSqlQuery.PlugIns.DatabaseInspector.Commands
{
/// <summary>Initializes a new instance of the <see cref="GenerateInsertStatementCommand"/> class.</summary>
public GenerateInsertStatementCommand()
- : base("Generate Insert Statement")
+ : base("生成插入语句")
{
}
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/GenerateSelectCountStatementCommand.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/GenerateSelectCountStatementCommand.cs
index 14efcf5..171189d 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/GenerateSelectCountStatementCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/GenerateSelectCountStatementCommand.cs
@@ -16,7 +16,7 @@ namespace MiniSqlQuery.PlugIns.DatabaseInspector.Commands
{
/// <summary>Initializes a new instance of the <see cref="GenerateSelectCountStatementCommand"/> class.</summary>
public GenerateSelectCountStatementCommand()
- : base("Generate Select COUNT(*) Statement")
+ : base("����Select COUNT(*)���")
{
}
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/GenerateSelectStatementCommand.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/GenerateSelectStatementCommand.cs
index 7265429..17f248a 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/GenerateSelectStatementCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/GenerateSelectStatementCommand.cs
@@ -16,7 +16,7 @@ namespace MiniSqlQuery.PlugIns.DatabaseInspector.Commands
{
/// <summary>Initializes a new instance of the <see cref="GenerateSelectStatementCommand"/> class.</summary>
public GenerateSelectStatementCommand()
- : base("Generate Select Statement")
+ : base("生成查询语句")
{
}
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/GenerateUpdateStatementCommand.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/GenerateUpdateStatementCommand.cs
index 2f90fe6..774e7fe 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/GenerateUpdateStatementCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/GenerateUpdateStatementCommand.cs
@@ -16,7 +16,7 @@ namespace MiniSqlQuery.PlugIns.DatabaseInspector.Commands
{
/// <summary>Initializes a new instance of the <see cref="GenerateUpdateStatementCommand"/> class.</summary>
public GenerateUpdateStatementCommand()
- : base("Generate Update Statement")
+ : base("生成更新语句")
{
}
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/LocateFkReferenceColumnCommand.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/LocateFkReferenceColumnCommand.cs
index ec425e4..1663b11 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/LocateFkReferenceColumnCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/LocateFkReferenceColumnCommand.cs
@@ -14,7 +14,7 @@ namespace MiniSqlQuery.PlugIns.DatabaseInspector.Commands
{
/// <summary>Initializes a new instance of the <see cref="LocateFkReferenceColumnCommand"/> class.</summary>
public LocateFkReferenceColumnCommand()
- : base("Jump to FK column reference...")
+ : base("跳转到外键列引用...")
{
}
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/ShowDatabaseInspectorCommand.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/ShowDatabaseInspectorCommand.cs
index bdf1fd0..c99c013 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/ShowDatabaseInspectorCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/ShowDatabaseInspectorCommand.cs
@@ -16,7 +16,7 @@ namespace MiniSqlQuery.PlugIns.DatabaseInspector.Commands
{
/// <summary>Initializes a new instance of the <see cref="ShowDatabaseInspectorCommand"/> class.</summary>
public ShowDatabaseInspectorCommand()
- : base("Show Database Inspector")
+ : base("��ʾ���ݿ�����")
{
}
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/ShowFindObjectFormCommand.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/ShowFindObjectFormCommand.cs
index 079ffe4..728b7ea 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/ShowFindObjectFormCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/ShowFindObjectFormCommand.cs
@@ -18,7 +18,7 @@ namespace MiniSqlQuery.PlugIns.DatabaseInspector.Commands
{
/// <summary>Initializes a new instance of the <see cref="ShowFindObjectFormCommand"/> class.</summary>
public ShowFindObjectFormCommand()
- : base("Find Object...")
+ : base("查找对象...")
{
ShortcutKeys = Keys.Alt | Keys.F;
}
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/TruncateTableCommand.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/TruncateTableCommand.cs
index 373535d..6ebb878 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/TruncateTableCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/Commands/TruncateTableCommand.cs
@@ -18,7 +18,7 @@ namespace MiniSqlQuery.PlugIns.DatabaseInspector.Commands
{
/// <summary>Initializes a new instance of the <see cref="TruncateTableCommand"/> class.</summary>
public TruncateTableCommand()
- : base("Truncate Table")
+ : base("�ضϱ�")
{
SmallImage = ImageResource.table_delete;
}
@@ -29,8 +29,8 @@ namespace MiniSqlQuery.PlugIns.DatabaseInspector.Commands
IHostWindow hostWindow = Services.HostWindow;
string tableName = hostWindow.DatabaseInspector.RightClickedTableName;
- string caption = string.Format("Truncate '{0}' Table Confirmation", tableName);
- string msg = string.Format("Delete all '{0}' data, are you sure?", tableName);
+ string caption = string.Format("ȷ�Ͻضϱ� '{0}' ", tableName);
+ string msg = string.Format("ɾ���� '{0}' ������, ��ȷ��?", tableName);
if (tableName != null && MessageBox.Show(msg, caption, MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
{
DbConnection dbConnection;
@@ -48,11 +48,11 @@ namespace MiniSqlQuery.PlugIns.DatabaseInspector.Commands
}
catch (DbException dbExp)
{
- hostWindow.DisplaySimpleMessageBox(null, dbExp.Message, "Error");
+ hostWindow.DisplaySimpleMessageBox(null, dbExp.Message, "����");
}
catch (InvalidOperationException invalidExp)
{
- hostWindow.DisplaySimpleMessageBox(null, invalidExp.Message, "Error");
+ hostWindow.DisplaySimpleMessageBox(null, invalidExp.Message, "����");
}
finally
{
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/DatabaseInspectorLoader.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/DatabaseInspectorLoader.cs
index e29018e..b4f1758 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/DatabaseInspectorLoader.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/DatabaseInspector/DatabaseInspectorLoader.cs
@@ -32,8 +32,8 @@ namespace MiniSqlQuery.PlugIns.DatabaseInspector
IHostWindow hostWindow = Services.HostWindow;
hostWindow.AddPluginCommand<ShowDatabaseInspectorCommand>();
CommandManager.GetCommandInstance<ShowDatabaseInspectorCommand>().Execute();
-
- ToolStripMenuItem editMenu = hostWindow.GetMenuItem("edit");
+ //zhenggc 2023-11-28 modify .GetMenuItem("edit") GetMenuItem("editmenu")
+ ToolStripMenuItem editMenu = hostWindow.GetMenuItem("editmenu");
editMenu.DropDownItems.Add(CommandControlBuilder.CreateToolStripMenuItem<ShowFindObjectFormCommand>());
hostWindow.DatabaseInspector.TableMenu.Items.Add(CommandControlBuilder.CreateToolStripMenuItem<GenerateSelectStatementCommand>());
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/SearchTools/Commands/FindNextStringCommand.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/SearchTools/Commands/FindNextStringCommand.cs
index b972cff..d15431c 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/SearchTools/Commands/FindNextStringCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/SearchTools/Commands/FindNextStringCommand.cs
@@ -15,7 +15,7 @@ namespace MiniSqlQuery.PlugIns.SearchTools.Commands
public class FindNextStringCommand : CommandBase
{
/// <summary>Initializes a new instance of the <see cref="FindNextStringCommand"/> class.</summary>
- public FindNextStringCommand() : base("Find Next String")
+ public FindNextStringCommand() : base("查找下一个")
{
SmallImage = ImageResource.find;
ShortcutKeys = Keys.F3;
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/SearchTools/Commands/ReplaceStringCommand.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/SearchTools/Commands/ReplaceStringCommand.cs
index a7c38de..6454faf 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/SearchTools/Commands/ReplaceStringCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/SearchTools/Commands/ReplaceStringCommand.cs
@@ -15,7 +15,7 @@ namespace MiniSqlQuery.PlugIns.SearchTools.Commands
{
/// <summary>Initializes a new instance of the <see cref="ReplaceStringCommand"/> class.</summary>
public ReplaceStringCommand()
- : base("Replace String")
+ : base("�滻")
{
}
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/SearchTools/Commands/ShowFindTextFormCommand.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/SearchTools/Commands/ShowFindTextFormCommand.cs
index f27c357..e389597 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/SearchTools/Commands/ShowFindTextFormCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/SearchTools/Commands/ShowFindTextFormCommand.cs
@@ -16,7 +16,7 @@ namespace MiniSqlQuery.PlugIns.SearchTools.Commands
{
/// <summary>Initializes a new instance of the <see cref="ShowFindTextFormCommand"/> class.</summary>
public ShowFindTextFormCommand()
- : base("&Find Text...")
+ : base("(&F)查找文本...")
{
SmallImage = ImageResource.find;
ShortcutKeys = Keys.Control | Keys.F;
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/SearchTools/Commands/ShowGoToLineFormCommand.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/SearchTools/Commands/ShowGoToLineFormCommand.cs
index 88158bd..20e524f 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/SearchTools/Commands/ShowGoToLineFormCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/SearchTools/Commands/ShowGoToLineFormCommand.cs
@@ -16,7 +16,7 @@ namespace MiniSqlQuery.PlugIns.SearchTools.Commands
{
/// <summary>Initializes a new instance of the <see cref="ShowGoToLineFormCommand"/> class.</summary>
public ShowGoToLineFormCommand()
- : base("Go To Line...")
+ : base("转到行...")
{
ShortcutKeys = Keys.Control | Keys.G;
}
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/SearchTools/SearchToolsLoader.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/SearchTools/SearchToolsLoader.cs
index 7ccddb2..81c02e9 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/SearchTools/SearchToolsLoader.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/SearchTools/SearchToolsLoader.cs
@@ -27,8 +27,8 @@ namespace MiniSqlQuery.PlugIns.SearchTools
public override void InitializePlugIn()
{
Services.RegisterComponent<GoToLineForm>("GoToLineForm");
-
- ToolStripMenuItem editMenu = Services.HostWindow.GetMenuItem("edit");
+ //zhenggc 2023-11-28 modify GetMenuItem("edit") GetMenuItem("editmenu")
+ ToolStripMenuItem editMenu = Services.HostWindow.GetMenuItem("editmenu");
// add the find to the plugins menu
editMenu.DropDownItems.Add(CommandControlBuilder.CreateToolStripMenuItem<ShowFindTextFormCommand>());
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/TemplateViewer/Commands/NewQueryByTemplateCommand.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/TemplateViewer/Commands/NewQueryByTemplateCommand.cs
index 1bb5b26..2b693af 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/TemplateViewer/Commands/NewQueryByTemplateCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/TemplateViewer/Commands/NewQueryByTemplateCommand.cs
@@ -16,7 +16,7 @@ namespace MiniSqlQuery.PlugIns.TemplateViewer.Commands
{
/// <summary>Initializes a new instance of the <see cref="NewQueryByTemplateCommand"/> class.</summary>
public NewQueryByTemplateCommand()
- : base("New &Query from Template")
+ : base("从模板新建查询(&Q)")
{
SmallImage = ImageResource.script_code;
}
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/TemplateViewer/Commands/RunTemplateCommand.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/TemplateViewer/Commands/RunTemplateCommand.cs
index a915a40..10e01c8 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/TemplateViewer/Commands/RunTemplateCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/TemplateViewer/Commands/RunTemplateCommand.cs
@@ -16,7 +16,7 @@ namespace MiniSqlQuery.PlugIns.TemplateViewer.Commands
{
/// <summary>Initializes a new instance of the <see cref="RunTemplateCommand"/> class.</summary>
public RunTemplateCommand()
- : base("Run Template")
+ : base("����ģ��")
{
SmallImage = ImageResource.script_code;
}
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/TextGenerator/Commands/RunTextGeneratorCommand.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/TextGenerator/Commands/RunTextGeneratorCommand.cs
index 7b672a8..9a11a87 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/TextGenerator/Commands/RunTextGeneratorCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/TextGenerator/Commands/RunTextGeneratorCommand.cs
@@ -13,7 +13,7 @@ namespace MiniSqlQuery.PlugIns.TextGenerator.Commands
public class RunTextGeneratorCommand : CommandBase
{
public RunTextGeneratorCommand()
- : base("Run the (experimental) text to C# class generator")
+ : base("����ʵ�飩�ı����е�C#��������")
{
}
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/ViewTable/Commands/ViewTableFormCommand.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/ViewTable/Commands/ViewTableFormCommand.cs
index 393a83a..5cad593 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/ViewTable/Commands/ViewTableFormCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/ViewTable/Commands/ViewTableFormCommand.cs
@@ -18,7 +18,7 @@ namespace MiniSqlQuery.PlugIns.ViewTable.Commands
{
/// <summary>Initializes a new instance of the <see cref="ViewTableFormCommand"/> class.</summary>
public ViewTableFormCommand()
- : base("&View table...")
+ : base("查看表格...")
{
ShortcutKeys = Keys.Control | Keys.T;
}
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/ViewTable/Commands/ViewTableFromInspectorCommand.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/ViewTable/Commands/ViewTableFromInspectorCommand.cs
index 80785c8..696ab3f 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/ViewTable/Commands/ViewTableFromInspectorCommand.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/ViewTable/Commands/ViewTableFromInspectorCommand.cs
@@ -17,7 +17,7 @@ namespace MiniSqlQuery.PlugIns.ViewTable.Commands
{
/// <summary>Initializes a new instance of the <see cref="ViewTableFromInspectorCommand"/> class.</summary>
public ViewTableFromInspectorCommand()
- : base("&View table data")
+ : base("查看表数据")
{
SmallImage = ImageResource.table_go;
}
diff --git a/minisqlquery-master/src/MiniSqlQuery/QueryForm.cs b/minisqlquery-master/src/MiniSqlQuery/QueryForm.cs
index b507757..b7075a9 100644
--- a/minisqlquery-master/src/MiniSqlQuery/QueryForm.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/QueryForm.cs
@@ -184,7 +184,7 @@ namespace MiniSqlQuery
/// <summary>Gets FileFilter.</summary>
public string FileFilter
{
- get { return "SQL Files (*.sql)|*.sql|All Files (*.*)|*.*"; }
+ get { return "SQL�ļ�(*.sql)|*.sql|�����ļ� (*.*)|*.*"; }
}
/// <summary>Gets or sets FileName.</summary>
@@ -254,13 +254,13 @@ namespace MiniSqlQuery
{
if (IsBusy)
{
- _hostWindow.DisplaySimpleMessageBox(this, "Please wait for the current operation to complete.", "Busy");
+ _hostWindow.DisplaySimpleMessageBox(this, "��ȴ���ǰ�������.", "��æ");
return;
}
if (_settings.ConnectionDefinition == null)
{
- _hostWindow.DisplaySimpleMessageBox(this, "Please select a connection.", "Select a Connection");
+ _hostWindow.DisplaySimpleMessageBox(this, "��ѡ��һ������.", "ѡ��һ������");
return;
}
@@ -356,7 +356,7 @@ namespace MiniSqlQuery
{
if (FileName == null)
{
- throw new InvalidOperationException("The 'FileName' cannot be null");
+ throw new InvalidOperationException("'�ļ���'����Ϊ��");
}
txtQuery.SaveFile(FileName);
@@ -514,7 +514,7 @@ namespace MiniSqlQuery
{
TimeSpan ts = end.Subtract(start);
string msg = string.Format(
- "Query complete, {0:00}:{1:00}.{2:000}",
+ "��ѯ���, {0:00}:{1:00}.{2:000}",
ts.Minutes,
ts.Seconds,
ts.Milliseconds);
@@ -563,7 +563,7 @@ namespace MiniSqlQuery
tabPage.Controls.Add(grid);
tabPage.Name = "tabPageResults_" + counter;
tabPage.Padding = new Padding(3);
- tabPage.Text = string.Format("{0}/Table {1}", ds.DataSetName, counter);
+ tabPage.Text = string.Format("{0}/�� {1}", ds.DataSetName, counter);
tabPage.UseVisualStyleBackColor = false;
_resultsTabControl.TabPages.Add(tabPage);
@@ -786,7 +786,7 @@ namespace MiniSqlQuery
{
DialogResult saveFile = _hostWindow.DisplayMessageBox(
this,
- "Contents changed, do you want to save the file?\r\n" + TabText, "Save Changes?",
+ "�����Ѹ��ģ��Ƿ��ļ�?\r\n" + TabText, "����ı�?",
MessageBoxButtons.YesNoCancel,
MessageBoxIcon.Question,
MessageBoxDefaultButton.Button1,
@@ -827,7 +827,7 @@ namespace MiniSqlQuery
private void SetTabTextByFilename()
{
string dirty = string.Empty;
- string text = "Untitled";
+ string text = "���";
string tabtext;
if (_isDirty)
@@ -937,7 +937,7 @@ namespace MiniSqlQuery
Clipboard.Clear();
Clipboard.SetText(line);
- _hostWindow.SetStatus(this, "Selected data has been copied to your clipboard");
+ _hostWindow.SetStatus(this, "��ѡ�����Ѹ��Ƶ�������");
}
}
finally
@@ -964,7 +964,7 @@ namespace MiniSqlQuery
/// <param name="e">The e.</param>
private void queryBackgroundWorker_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
- SetStatus(string.Format("Processing batch {0}%...", e.ProgressPercentage));
+ SetStatus(string.Format("������{0}%...", e.ProgressPercentage));
}
/// <summary>The query background worker_ run worker completed.</summary>
@@ -978,7 +978,7 @@ namespace MiniSqlQuery
if (e.Error != null)
{
// todo: improve!
- _hostWindow.DisplaySimpleMessageBox(this, e.Error.Message, "Error");
+ _hostWindow.DisplaySimpleMessageBox(this, e.Error.Message, "����");
SetStatus(e.Error.Message);
}
else
@@ -987,7 +987,7 @@ namespace MiniSqlQuery
string message = CreateQueryCompleteMessage(_runner.Batch.StartTime, _runner.Batch.EndTime);
if (_runner.Exception != null)
{
- message = "ERROR - " + message;
+ message = "���� - " + message;
}
AddTables();