Commit 4952489b LN

增加俄文切换

1 个父辈 74ca67e9
...@@ -32,13 +32,14 @@ ...@@ -32,13 +32,14 @@
this.rbtnEnglish = new System.Windows.Forms.RadioButton(); this.rbtnEnglish = new System.Windows.Forms.RadioButton();
this.btnCancel = new System.Windows.Forms.Button(); this.btnCancel = new System.Windows.Forms.Button();
this.btnOk = new System.Windows.Forms.Button(); this.btnOk = new System.Windows.Forms.Button();
this.rbtnRussian = new System.Windows.Forms.RadioButton();
this.SuspendLayout(); this.SuspendLayout();
// //
// rbtnChina // rbtnChina
// //
this.rbtnChina.AutoSize = true; this.rbtnChina.AutoSize = true;
this.rbtnChina.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.rbtnChina.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.rbtnChina.Location = new System.Drawing.Point(163, 76); this.rbtnChina.Location = new System.Drawing.Point(163, 54);
this.rbtnChina.Name = "rbtnChina"; this.rbtnChina.Name = "rbtnChina";
this.rbtnChina.Size = new System.Drawing.Size(60, 25); this.rbtnChina.Size = new System.Drawing.Size(60, 25);
this.rbtnChina.TabIndex = 0; this.rbtnChina.TabIndex = 0;
...@@ -50,7 +51,7 @@ ...@@ -50,7 +51,7 @@
// //
this.rbtnEnglish.AutoSize = true; this.rbtnEnglish.AutoSize = true;
this.rbtnEnglish.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.rbtnEnglish.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.rbtnEnglish.Location = new System.Drawing.Point(163, 130); this.rbtnEnglish.Location = new System.Drawing.Point(163, 97);
this.rbtnEnglish.Name = "rbtnEnglish"; this.rbtnEnglish.Name = "rbtnEnglish";
this.rbtnEnglish.Size = new System.Drawing.Size(60, 25); this.rbtnEnglish.Size = new System.Drawing.Size(60, 25);
this.rbtnEnglish.TabIndex = 1; this.rbtnEnglish.TabIndex = 1;
...@@ -84,11 +85,24 @@ ...@@ -84,11 +85,24 @@
this.btnOk.UseVisualStyleBackColor = false; this.btnOk.UseVisualStyleBackColor = false;
this.btnOk.Click += new System.EventHandler(this.btnOk_Click); this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
// //
// rbtnRussian
//
this.rbtnRussian.AutoSize = true;
this.rbtnRussian.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.rbtnRussian.Location = new System.Drawing.Point(163, 140);
this.rbtnRussian.Name = "rbtnRussian";
this.rbtnRussian.Size = new System.Drawing.Size(60, 25);
this.rbtnRussian.TabIndex = 280;
this.rbtnRussian.TabStop = true;
this.rbtnRussian.Text = "俄文";
this.rbtnRussian.UseVisualStyleBackColor = true;
//
// FrmLanguage // FrmLanguage
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(453, 300); this.ClientSize = new System.Drawing.Size(453, 300);
this.Controls.Add(this.rbtnRussian);
this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnOk); this.Controls.Add(this.btnOk);
this.Controls.Add(this.rbtnEnglish); this.Controls.Add(this.rbtnEnglish);
...@@ -107,5 +121,6 @@ ...@@ -107,5 +121,6 @@
private System.Windows.Forms.RadioButton rbtnEnglish; private System.Windows.Forms.RadioButton rbtnEnglish;
private System.Windows.Forms.Button btnCancel; private System.Windows.Forms.Button btnCancel;
private System.Windows.Forms.Button btnOk; private System.Windows.Forms.Button btnOk;
private System.Windows.Forms.RadioButton rbtnRussian;
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Data; using System.Data;
using System.Diagnostics.Eventing.Reader;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
...@@ -24,6 +25,9 @@ namespace TSA_V ...@@ -24,6 +25,9 @@ namespace TSA_V
if (ResourceCulture.CurrLanguage.Equals(ResourceCulture.English)) if (ResourceCulture.CurrLanguage.Equals(ResourceCulture.English))
{ {
rbtnEnglish.Checked = true; rbtnEnglish.Checked = true;
}else if (ResourceCulture.CurrLanguage.Equals(ResourceCulture.Russian))
{
rbtnRussian.Checked = true;
} }
else else
{ {
...@@ -44,6 +48,10 @@ namespace TSA_V ...@@ -44,6 +48,10 @@ namespace TSA_V
{ {
str = ResourceCulture.English; str = ResourceCulture.English;
} }
else if (rbtnRussian.Checked)
{
str = ResourceCulture.Russian;
}
else else
{ {
str = ResourceCulture.China; str = ResourceCulture.China;
......
...@@ -2569,7 +2569,6 @@ ...@@ -2569,7 +2569,6 @@
<data name="GuobanMode" xml:space="preserve"> <data name="GuobanMode" xml:space="preserve">
<value>Operation failed, currently in InLine mode</value> <value>Operation failed, currently in InLine mode</value>
</data> </data>
<data name="LineCheckHigh" xml:space="preserve"> <data name="LineCheckHigh" xml:space="preserve">
<value>Line detection signal on</value> <value>Line detection signal on</value>
</data> </data>
...@@ -2582,4 +2581,7 @@ ...@@ -2582,4 +2581,7 @@
<data name="NoAirAlarm" xml:space="preserve"> <data name="NoAirAlarm" xml:space="preserve">
<value>No air pressure signal.</value> <value>No air pressure signal.</value>
</data> </data>
<data name="ComInsufficient" xml:space="preserve">
<value>Insufficient component inventory</value>
</data>
</root> </root>
\ No newline at end of file \ No newline at end of file
...@@ -16,6 +16,8 @@ namespace TSA_V ...@@ -16,6 +16,8 @@ namespace TSA_V
public static string China = "zh-CN"; public static string China = "zh-CN";
public static string English = "en-US"; public static string English = "en-US";
public static string Russian = "ru-RU";
public static string CurrLanguage = "zh-CN"; public static string CurrLanguage = "zh-CN";
public static Dictionary<string, string> defaultMap = new Dictionary<string, string>(); public static Dictionary<string, string> defaultMap = new Dictionary<string, string>();
/// <summary> /// <summary>
......
...@@ -352,6 +352,11 @@ ...@@ -352,6 +352,11 @@
<EmbeddedResource Include="projector\FrmScreenTest.resx"> <EmbeddedResource Include="projector\FrmScreenTest.resx">
<DependentUpon>FrmScreenTest.cs</DependentUpon> <DependentUpon>FrmScreenTest.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Properties\Resource.ru-RU.resx">
<CustomToolNamespace>TSA_V</CustomToolNamespace>
<SubType>Designer</SubType>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</EmbeddedResource>
<EmbeddedResource Include="workForm\FrmAOICheck.resx"> <EmbeddedResource Include="workForm\FrmAOICheck.resx">
<DependentUpon>FrmAOICheck.cs</DependentUpon> <DependentUpon>FrmAOICheck.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!