Commit 4952489b LN

增加俄文切换

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