miniSql

汉化
zgc authored at 11/28/2023 1:00:12 PM zgc committed at 11/28/2023 1:00:26 PM
93a03c2
Tree
1 Parent(s) 6136600
Summary: 4 changed files with 127 additions and 136 deletions.
Modified +6 -6
Modified +115 -124
Modified +5 -5
Modified +1 -1
Modified +6 -6
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/ViewTable/ViewTableForm.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/ViewTable/ViewTableForm.cs
index 7ccce01..5c9b760 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/ViewTable/ViewTableForm.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/ViewTable/ViewTableForm.cs
@@ -308,7 +308,7 @@ namespace MiniSqlQuery.PlugIns.ViewTable
         {
             if (_services.Settings.ConnectionDefinition == null)
             {
-                _services.HostWindow.DisplaySimpleMessageBox(this, "Please select a connection.", "Select a Connection");
+                _services.HostWindow.DisplaySimpleMessageBox(this, "请选择一个连接。", "选择连接");
                 return;
             }
 
@@ -348,13 +348,13 @@ namespace MiniSqlQuery.PlugIns.ViewTable
                 SetCommandTimeout(cmd, _settings.CommandTimeout);
                 adapter.SelectCommand = cmd;
                 adapter.Fill(query.Result);
-                SetStatus(string.Format("Loaded table '{0}'", TableName));
+                SetStatus(string.Format("已加载的表 '{0}'", TableName));
                 Text = TableName;
             }
             catch (DbException dbExp)
             {
                 // todo: improve!
-                _services.HostWindow.DisplaySimpleMessageBox(this, dbExp.Message, "View Table Error");
+                _services.HostWindow.DisplaySimpleMessageBox(this, dbExp.Message, "查看表错误");
                 SetStatus(dbExp.Message);
                 Text = Resources.ViewDataError;
             }
@@ -407,7 +407,7 @@ namespace MiniSqlQuery.PlugIns.ViewTable
             }
             else
             {
-                Trace.WriteLine("Command Timeout only supported by SQL Client (so far)");
+                Trace.WriteLine("命令超时仅受SQL客户端支持(到目前为止)");
             }
         }
 
@@ -493,11 +493,11 @@ namespace MiniSqlQuery.PlugIns.ViewTable
 
                     if (i % 10 == 0)
                     {
-                        UpdateStatus(string.Format("Processing {0} of {1} rows", i + 1, dt.Rows.Count));
+                        UpdateStatus(string.Format("正在处理{0} 行中的 {1} 行", i + 1, dt.Rows.Count));
                     }
                 }
 
-                UpdateStatus(string.Format("Processed {0} rows. Opening file...", dt.Rows.Count));
+                UpdateStatus(string.Format("正在处理 {0} 行. 打开文件...", dt.Rows.Count));
 
                 // HACK - need to clean up the values for now as the model is holding the last rows data  ;-)
                 // TODO - add a "deep clone" method to the table/columns
Modified +115 -124
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/ViewTable/ViewTableForm.Designer.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/ViewTable/ViewTableForm.Designer.cs
index 869349f..bedfcf9 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/ViewTable/ViewTableForm.Designer.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/ViewTable/ViewTableForm.Designer.cs
@@ -28,132 +28,123 @@ namespace MiniSqlQuery.PlugIns.ViewTable
 		/// </summary>
 		private void InitializeComponent()
 		{
-			this.components = new System.ComponentModel.Container();
-			System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
-			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ViewTableForm));
-			this.dataGridViewResult = new System.Windows.Forms.DataGridView();
-			this.groupBox1 = new System.Windows.Forms.GroupBox();
-			this.lnkExportScript = new System.Windows.Forms.LinkLabel();
-			this.chkAutoReload = new System.Windows.Forms.CheckBox();
-			this.lnkRefresh = new System.Windows.Forms.LinkLabel();
-			this.cboTableName = new System.Windows.Forms.ComboBox();
-			this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
-			this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
-			((System.ComponentModel.ISupportInitialize)(this.dataGridViewResult)).BeginInit();
-			this.groupBox1.SuspendLayout();
-			this.SuspendLayout();
-			// 
-			// dataGridViewResult
-			// 
-			this.dataGridViewResult.AllowUserToAddRows = false;
-			this.dataGridViewResult.AllowUserToDeleteRows = false;
-			this.dataGridViewResult.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
-			dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-			dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Window;
-			dataGridViewCellStyle1.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-			dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText;
-			dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-			dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-			dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
-			this.dataGridViewResult.DefaultCellStyle = dataGridViewCellStyle1;
-			this.dataGridViewResult.Dock = System.Windows.Forms.DockStyle.Fill;
-			this.dataGridViewResult.Location = new System.Drawing.Point(4, 69);
-			this.dataGridViewResult.Name = "dataGridViewResult";
-			this.dataGridViewResult.ReadOnly = true;
-			this.dataGridViewResult.Size = new System.Drawing.Size(562, 294);
-			this.dataGridViewResult.TabIndex = 0;
-			this.dataGridViewResult.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dataGridViewResult_DataError);
-			// 
-			// groupBox1
-			// 
-			this.groupBox1.Controls.Add(this.lnkExportScript);
-			this.groupBox1.Controls.Add(this.chkAutoReload);
-			this.groupBox1.Controls.Add(this.lnkRefresh);
-			this.groupBox1.Controls.Add(this.cboTableName);
-			this.groupBox1.Dock = System.Windows.Forms.DockStyle.Top;
-			this.groupBox1.Location = new System.Drawing.Point(4, 4);
-			this.groupBox1.Name = "groupBox1";
-			this.groupBox1.Size = new System.Drawing.Size(562, 65);
-			this.groupBox1.TabIndex = 2;
-			this.groupBox1.TabStop = false;
-			this.groupBox1.Text = "Table Name";
-			// 
-			// lnkExportScript
-			// 
-			this.lnkExportScript.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-			this.lnkExportScript.AutoSize = true;
-			this.lnkExportScript.Location = new System.Drawing.Point(469, 29);
-			this.lnkExportScript.Name = "lnkExportScript";
-			this.lnkExportScript.Size = new System.Drawing.Size(76, 13);
-			this.lnkExportScript.TabIndex = 4;
-			this.lnkExportScript.TabStop = true;
-			this.lnkExportScript.Text = "Export Script...";
-			this.toolTip1.SetToolTip(this.lnkExportScript, "Takes the current data and creates a script of insert statements in a new window." +
+            this.components = new System.ComponentModel.Container();
+            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ViewTableForm));
+            this.dataGridViewResult = new System.Windows.Forms.DataGridView();
+            this.groupBox1 = new System.Windows.Forms.GroupBox();
+            this.lnkExportScript = new System.Windows.Forms.LinkLabel();
+            this.chkAutoReload = new System.Windows.Forms.CheckBox();
+            this.lnkRefresh = new System.Windows.Forms.LinkLabel();
+            this.cboTableName = new System.Windows.Forms.ComboBox();
+            this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
+            this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
+            ((System.ComponentModel.ISupportInitialize)(this.dataGridViewResult)).BeginInit();
+            this.groupBox1.SuspendLayout();
+            this.SuspendLayout();
+            // 
+            // dataGridViewResult
+            // 
+            this.dataGridViewResult.AllowUserToAddRows = false;
+            this.dataGridViewResult.AllowUserToDeleteRows = false;
+            this.dataGridViewResult.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.dataGridViewResult.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.dataGridViewResult.Location = new System.Drawing.Point(4, 69);
+            this.dataGridViewResult.Name = "dataGridViewResult";
+            this.dataGridViewResult.ReadOnly = true;
+            this.dataGridViewResult.Size = new System.Drawing.Size(562, 294);
+            this.dataGridViewResult.TabIndex = 0;
+            this.dataGridViewResult.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dataGridViewResult_DataError);
+            // 
+            // groupBox1
+            // 
+            this.groupBox1.Controls.Add(this.lnkExportScript);
+            this.groupBox1.Controls.Add(this.chkAutoReload);
+            this.groupBox1.Controls.Add(this.lnkRefresh);
+            this.groupBox1.Controls.Add(this.cboTableName);
+            this.groupBox1.Dock = System.Windows.Forms.DockStyle.Top;
+            this.groupBox1.Location = new System.Drawing.Point(4, 4);
+            this.groupBox1.Name = "groupBox1";
+            this.groupBox1.Size = new System.Drawing.Size(562, 65);
+            this.groupBox1.TabIndex = 2;
+            this.groupBox1.TabStop = false;
+            this.groupBox1.Text = "����";
+            // 
+            // lnkExportScript
+            // 
+            this.lnkExportScript.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.lnkExportScript.AutoSize = true;
+            this.lnkExportScript.Location = new System.Drawing.Point(469, 29);
+            this.lnkExportScript.Name = "lnkExportScript";
+            this.lnkExportScript.Size = new System.Drawing.Size(64, 13);
+            this.lnkExportScript.TabIndex = 4;
+            this.lnkExportScript.TabStop = true;
+            this.lnkExportScript.Text = "�����ű�...";
+            this.toolTip1.SetToolTip(this.lnkExportScript, "Takes the current data and creates a script of insert statements in a new window." +
         "");
-			this.lnkExportScript.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkExportScript_LinkClicked);
-			// 
-			// chkAutoReload
-			// 
-			this.chkAutoReload.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-			this.chkAutoReload.AutoSize = true;
-			this.chkAutoReload.Checked = true;
-			this.chkAutoReload.CheckState = System.Windows.Forms.CheckState.Checked;
-			this.chkAutoReload.Location = new System.Drawing.Point(471, 45);
-			this.chkAutoReload.Name = "chkAutoReload";
-			this.chkAutoReload.Size = new System.Drawing.Size(85, 17);
-			this.chkAutoReload.TabIndex = 2;
-			this.chkAutoReload.Text = "Auto Reload";
-			this.toolTip1.SetToolTip(this.chkAutoReload, "Automatically reload the table when a \'Truncate\' action is performed.");
-			this.chkAutoReload.UseVisualStyleBackColor = true;
-			// 
-			// lnkRefresh
-			// 
-			this.lnkRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-			this.lnkRefresh.AutoSize = true;
-			this.lnkRefresh.Location = new System.Drawing.Point(469, 16);
-			this.lnkRefresh.Name = "lnkRefresh";
-			this.lnkRefresh.Size = new System.Drawing.Size(71, 13);
-			this.lnkRefresh.TabIndex = 1;
-			this.lnkRefresh.TabStop = true;
-			this.lnkRefresh.Text = "Reload Table";
-			this.toolTip1.SetToolTip(this.lnkRefresh, "Reload the selected table now.");
-			this.lnkRefresh.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkRefresh_LinkClicked);
-			// 
-			// cboTableName
-			// 
-			this.cboTableName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            this.lnkExportScript.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkExportScript_LinkClicked);
+            // 
+            // chkAutoReload
+            // 
+            this.chkAutoReload.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.chkAutoReload.AutoSize = true;
+            this.chkAutoReload.Checked = true;
+            this.chkAutoReload.CheckState = System.Windows.Forms.CheckState.Checked;
+            this.chkAutoReload.Location = new System.Drawing.Point(482, 45);
+            this.chkAutoReload.Name = "chkAutoReload";
+            this.chkAutoReload.Size = new System.Drawing.Size(74, 17);
+            this.chkAutoReload.TabIndex = 2;
+            this.chkAutoReload.Text = "�Զ�����";
+            this.toolTip1.SetToolTip(this.chkAutoReload, "Automatically reload the table when a \'Truncate\' action is performed.");
+            this.chkAutoReload.UseVisualStyleBackColor = true;
+            // 
+            // lnkRefresh
+            // 
+            this.lnkRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.lnkRefresh.AutoSize = true;
+            this.lnkRefresh.Location = new System.Drawing.Point(469, 16);
+            this.lnkRefresh.Name = "lnkRefresh";
+            this.lnkRefresh.Size = new System.Drawing.Size(67, 13);
+            this.lnkRefresh.TabIndex = 1;
+            this.lnkRefresh.TabStop = true;
+            this.lnkRefresh.Text = "���¼��ر�";
+            this.toolTip1.SetToolTip(this.lnkRefresh, "Reload the selected table now.");
+            this.lnkRefresh.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkRefresh_LinkClicked);
+            // 
+            // cboTableName
+            // 
+            this.cboTableName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-			this.cboTableName.FormattingEnabled = true;
-			this.cboTableName.Location = new System.Drawing.Point(12, 19);
-			this.cboTableName.MaxDropDownItems = 20;
-			this.cboTableName.Name = "cboTableName";
-			this.cboTableName.Size = new System.Drawing.Size(454, 21);
-			this.cboTableName.TabIndex = 0;
-			// 
-			// contextMenuStrip
-			// 
-			this.contextMenuStrip.Name = "contextMenuStrip";
-			this.contextMenuStrip.Size = new System.Drawing.Size(61, 4);
-			// 
-			// ViewTableForm
-			// 
-			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
-			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-			this.ClientSize = new System.Drawing.Size(570, 367);
-			this.Controls.Add(this.dataGridViewResult);
-			this.Controls.Add(this.groupBox1);
-			this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
-			this.Name = "ViewTableForm";
-			this.Padding = new System.Windows.Forms.Padding(4);
-			this.TabText = "ViewTableForm";
-			this.Text = "ViewTableForm";
-			this.Activated += new System.EventHandler(this.ViewTableForm_Activated);
-			this.Shown += new System.EventHandler(this.ViewTableForm_Shown);
-			((System.ComponentModel.ISupportInitialize)(this.dataGridViewResult)).EndInit();
-			this.groupBox1.ResumeLayout(false);
-			this.groupBox1.PerformLayout();
-			this.ResumeLayout(false);
+            this.cboTableName.FormattingEnabled = true;
+            this.cboTableName.Location = new System.Drawing.Point(12, 19);
+            this.cboTableName.MaxDropDownItems = 20;
+            this.cboTableName.Name = "cboTableName";
+            this.cboTableName.Size = new System.Drawing.Size(454, 21);
+            this.cboTableName.TabIndex = 0;
+            // 
+            // contextMenuStrip
+            // 
+            this.contextMenuStrip.Name = "contextMenuStrip";
+            this.contextMenuStrip.Size = new System.Drawing.Size(61, 4);
+            // 
+            // ViewTableForm
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(570, 367);
+            this.Controls.Add(this.dataGridViewResult);
+            this.Controls.Add(this.groupBox1);
+            this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+            this.Name = "ViewTableForm";
+            this.Padding = new System.Windows.Forms.Padding(4);
+            this.TabText = "ViewTableForm";
+            this.Text = "�鿴��";
+            this.Activated += new System.EventHandler(this.ViewTableForm_Activated);
+            this.Shown += new System.EventHandler(this.ViewTableForm_Shown);
+            ((System.ComponentModel.ISupportInitialize)(this.dataGridViewResult)).EndInit();
+            this.groupBox1.ResumeLayout(false);
+            this.groupBox1.PerformLayout();
+            this.ResumeLayout(false);
 
 		}
 
Modified +5 -5
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/ViewTable/ViewTableForm.resx b/minisqlquery-master/src/MiniSqlQuery/PlugIns/ViewTable/ViewTableForm.resx
index e58af44..887ee64 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/ViewTable/ViewTableForm.resx
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/ViewTable/ViewTableForm.resx
@@ -112,18 +112,18 @@
     <value>2.0</value>
   </resheader>
   <resheader name="reader">
-    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
   <resheader name="writer">
-    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
-  <metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+  <metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>132, 17</value>
   </metadata>
-  <metadata name="contextMenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+  <metadata name="contextMenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>229, 17</value>
   </metadata>
-  <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
+  <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
     <value>
         AAABAAEAEBAAAAAAAABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAQAEAAAAAAAAAAAAAAAAAAAAA
Modified +1 -1
diff --git a/minisqlquery-master/src/MiniSqlQuery/PlugIns/ViewTable/ViewTableLoader.cs b/minisqlquery-master/src/MiniSqlQuery/PlugIns/ViewTable/ViewTableLoader.cs
index 1fd6f8f..deaa65f 100644
--- a/minisqlquery-master/src/MiniSqlQuery/PlugIns/ViewTable/ViewTableLoader.cs
+++ b/minisqlquery-master/src/MiniSqlQuery/PlugIns/ViewTable/ViewTableLoader.cs
@@ -15,7 +15,7 @@ namespace MiniSqlQuery.PlugIns.ViewTable
     {
         /// <summary>Initializes a new instance of the <see cref="ViewTableLoader"/> class.</summary>
         public ViewTableLoader()
-            : base("View Table Data", "A Mini SQL Query Plugin for viewing table data.", 50)
+            : base("查看表数据", "用于查看表数据的迷你SQL查询插件。", 50)
         {
         }