Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
Line-Smart-Workstation
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 4952489b
由
LN
编写于
2023-08-02 13:33:40 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
增加俄文切换
1 个父辈
74ca67e9
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
35 行增加
和
3 行删除
TSA-V/FrmLanguage.Designer.cs
TSA-V/FrmLanguage.cs
TSA-V/Properties/Resource.en-US.resx
TSA-V/Properties/Resource.ru-RU.resx
TSA-V/ResourceCulture.cs
TSA-V/Smart-Workstation.csproj
TSA-V/FrmLanguage.Designer.cs
查看文件 @
4952489
...
...
@@ -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
TSA-V/FrmLanguage.cs
查看文件 @
4952489
...
...
@@ -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
;
...
...
TSA-V/Properties/Resource.en-US.resx
查看文件 @
4952489
...
...
@@ -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
TSA-V/Properties/Resource.ru-RU.resx
0 → 100644
查看文件 @
4952489
此文件的差异被折叠,
点击展开。
TSA-V/ResourceCulture.cs
查看文件 @
4952489
...
...
@@ -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>
...
...
TSA-V/Smart-Workstation.csproj
查看文件 @
4952489
...
...
@@ -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!
Cancel
请
注册
或
登录
后发表评论