Browse Source

添加语言

master
sc 5 months ago
parent
commit
e1b93e7804
  1. 9
      Properties/Resources.Designer.cs
  2. 3
      Properties/Resources.en-US.resx
  3. 3
      Properties/Resources.resx
  4. 3
      Properties/Resources.zh-CN.resx
  5. 3
      Properties/Resources.zh-TW.resx
  6. 4
      ViewModel/MainWindowViewModel.cs

9
Properties/Resources.Designer.cs

@ -276,6 +276,15 @@ namespace DyeingComputer.Properties {
} }
} }
/// <summary>
/// 查找类似 CylinderBottom 的本地化字符串。
/// </summary>
public static string CylinderBottom {
get {
return ResourceManager.GetString("CylinderBottom", resourceCulture);
}
}
/// <summary> /// <summary>
/// 查找类似 Delete 的本地化字符串。 /// 查找类似 Delete 的本地化字符串。
/// </summary> /// </summary>

3
Properties/Resources.en-US.resx

@ -504,4 +504,7 @@
<data name="Swing" xml:space="preserve"> <data name="Swing" xml:space="preserve">
<value>Swing</value> <value>Swing</value>
</data> </data>
<data name="CylinderBottom" xml:space="preserve">
<value />
</data>
</root> </root>

3
Properties/Resources.resx

@ -504,4 +504,7 @@
<data name="Swing" xml:space="preserve"> <data name="Swing" xml:space="preserve">
<value>swing</value> <value>swing</value>
</data> </data>
<data name="CylinderBottom" xml:space="preserve">
<value>CylinderBottom</value>
</data>
</root> </root>

3
Properties/Resources.zh-CN.resx

@ -504,4 +504,7 @@
<data name="Swing" xml:space="preserve"> <data name="Swing" xml:space="preserve">
<value>摆布</value> <value>摆布</value>
</data> </data>
<data name="CylinderBottom" xml:space="preserve">
<value>缸底</value>
</data>
</root> </root>

3
Properties/Resources.zh-TW.resx

@ -504,4 +504,7 @@
<data name="Swing" xml:space="preserve"> <data name="Swing" xml:space="preserve">
<value>擺佈</value> <value>擺佈</value>
</data> </data>
<data name="CylinderBottom" xml:space="preserve">
<value />
</data>
</root> </root>

4
ViewModel/MainWindowViewModel.cs

@ -1557,8 +1557,8 @@ namespace DyeingComputer.ViewModel
public static string SYSlog; public static string SYSlog;
void LOG_view()//细节页面 void LOG_view()//细节页面
{ {
SYSlog = Resources.Target + Resources.Temperature + " : " + string.Format(" {0:###.#}", TEMP_tar) + "°C";//显示目标温度 SYSlog = Resources.MasterCylinder + Resources.Temperature + " : " + string.Format(" {0:###.#}", Convert.ToDouble(Selet_dtm("1010"))) + "°C";//显示实际温度
SYSlog = SYSlog + " | " + Resources.MasterCylinder + Resources.Temperature + " : " + string.Format(" {0:###.#}", Convert.ToDouble(Selet_dtm("1010"))) + "°C";//显示实际温度 SYSlog = SYSlog + " | "+ Resources.CylinderBottom + Resources.Temperature + " : " + string.Format(" {0:###.#}", Convert.ToDouble(Selet_dtm("1011"))) + "°C";//显示目标温度
SYSlog = SYSlog + "\n" + Resources.Compute + Resources.Temperature + " : " + string.Format(" {0:###.#}", Convert.ToDouble(Selet_dtm("1005"))) + "°C";//显示计算温度 SYSlog = SYSlog + "\n" + Resources.Compute + Resources.Temperature + " : " + string.Format(" {0:###.#}", Convert.ToDouble(Selet_dtm("1005"))) + "°C";//显示计算温度
SYSlog = SYSlog + " | " + Resources.ProportionalValves + " : " + string.Format("{0:###.#}", Convert.ToDouble(Selet_dtm("1004")) / 10) + "%";//显示比例 SYSlog = SYSlog + " | " + Resources.ProportionalValves + " : " + string.Format("{0:###.#}", Convert.ToDouble(Selet_dtm("1004")) / 10) + "%";//显示比例
int IO1015 = Convert.ToInt16(Selet_dtm("1015")); int IO1015 = Convert.ToInt16(Selet_dtm("1015"));

Loading…
Cancel
Save