Chinese language for the 'Order' protocol

This commit is contained in:
Milan Hanajik
2015-04-10 12:59:26 +02:00
parent 2133df002b
commit 110f8d5e29
8 changed files with 256 additions and 113 deletions
+9 -9
View File
@@ -24,16 +24,16 @@ namespace TBF
{ {
en, en,
de, de,
fr,
es,
it,
ru,
pl,
cz,
sk,
hu,
ro,
cn, cn,
//fr,
//es,
//it,
//ru,
//pl,
//cz,
//sk,
//hu,
//ro,
Count, Count,
} }
+8 -5
View File
@@ -463,7 +463,7 @@
<value>processTabPageCtrl</value> <value>processTabPageCtrl</value>
</data> </data>
<data name="&gt;&gt;processTabPageCtrl.Type" xml:space="preserve"> <data name="&gt;&gt;processTabPageCtrl.Type" xml:space="preserve">
<value>TBF.Screens.ProcessTabPageCtrl, TBF, Version=1.2.5.2, Culture=neutral, PublicKeyToken=null</value> <value>TBF.Screens.ProcessTabPageCtrl, TBF, Version=1.2.10.7, Culture=neutral, PublicKeyToken=null</value>
</data> </data>
<data name="&gt;&gt;processTabPageCtrl.Parent" xml:space="preserve"> <data name="&gt;&gt;processTabPageCtrl.Parent" xml:space="preserve">
<value>processTabPage</value> <value>processTabPage</value>
@@ -517,7 +517,7 @@
<value>MeasurementTabPageCtrl</value> <value>MeasurementTabPageCtrl</value>
</data> </data>
<data name="&gt;&gt;MeasurementTabPageCtrl.Type" xml:space="preserve"> <data name="&gt;&gt;MeasurementTabPageCtrl.Type" xml:space="preserve">
<value>TBF.Screens.MeasurementTabPageCtrl, TBF, Version=1.2.5.2, Culture=neutral, PublicKeyToken=null</value> <value>TBF.Screens.MeasurementTabPageCtrl, TBF, Version=1.2.10.7, Culture=neutral, PublicKeyToken=null</value>
</data> </data>
<data name="&gt;&gt;MeasurementTabPageCtrl.Parent" xml:space="preserve"> <data name="&gt;&gt;MeasurementTabPageCtrl.Parent" xml:space="preserve">
<value>measurementTabPage</value> <value>measurementTabPage</value>
@@ -592,7 +592,7 @@
<value>picturesTabPageCtrl1</value> <value>picturesTabPageCtrl1</value>
</data> </data>
<data name="&gt;&gt;picturesTabPageCtrl1.Type" xml:space="preserve"> <data name="&gt;&gt;picturesTabPageCtrl1.Type" xml:space="preserve">
<value>TBF.Screens.PicturesTabPageCtrl, TBF, Version=1.2.5.2, Culture=neutral, PublicKeyToken=null</value> <value>TBF.Screens.PicturesTabPageCtrl, TBF, Version=1.2.10.7, Culture=neutral, PublicKeyToken=null</value>
</data> </data>
<data name="&gt;&gt;picturesTabPageCtrl1.Parent" xml:space="preserve"> <data name="&gt;&gt;picturesTabPageCtrl1.Parent" xml:space="preserve">
<value>picturesTabPage</value> <value>picturesTabPage</value>
@@ -646,7 +646,7 @@
<value>resultsTabPageCtrl</value> <value>resultsTabPageCtrl</value>
</data> </data>
<data name="&gt;&gt;resultsTabPageCtrl.Type" xml:space="preserve"> <data name="&gt;&gt;resultsTabPageCtrl.Type" xml:space="preserve">
<value>TBF.Screens.ResultsTabPageCtrl, TBF, Version=1.2.5.2, Culture=neutral, PublicKeyToken=null</value> <value>TBF.Screens.ResultsTabPageCtrl, TBF, Version=1.2.10.7, Culture=neutral, PublicKeyToken=null</value>
</data> </data>
<data name="&gt;&gt;resultsTabPageCtrl.Parent" xml:space="preserve"> <data name="&gt;&gt;resultsTabPageCtrl.Parent" xml:space="preserve">
<value>resultsTabPage</value> <value>resultsTabPage</value>
@@ -700,7 +700,7 @@
<value>logsTabPageCtrl</value> <value>logsTabPageCtrl</value>
</data> </data>
<data name="&gt;&gt;logsTabPageCtrl.Type" xml:space="preserve"> <data name="&gt;&gt;logsTabPageCtrl.Type" xml:space="preserve">
<value>TBF.Screens.LogsTabPageCtrl, TBF, Version=1.2.5.2, Culture=neutral, PublicKeyToken=null</value> <value>TBF.Screens.LogsTabPageCtrl, TBF, Version=1.2.10.7, Culture=neutral, PublicKeyToken=null</value>
</data> </data>
<data name="&gt;&gt;logsTabPageCtrl.Parent" xml:space="preserve"> <data name="&gt;&gt;logsTabPageCtrl.Parent" xml:space="preserve">
<value>logsTabPage</value> <value>logsTabPage</value>
@@ -1119,6 +1119,9 @@
<data name="&gt;&gt;mainMenuStrip.ZOrder" xml:space="preserve"> <data name="&gt;&gt;mainMenuStrip.ZOrder" xml:space="preserve">
<value>2</value> <value>2</value>
</data> </data>
<metadata name="$this.Language" type="System.Globalization.CultureInfo, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>zh-Hans</value>
</metadata>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
+1 -1
View File
@@ -361,7 +361,7 @@ namespace TBF
///---------- ///----------
/// Footer /// Footer
///---------- ///----------
PrintAt(e, leftMargin, topMargin + printHeight - SpacingOne, string.Format("Page {0}/{1}", pageNr++, nrPages)); PrintAt(e, leftMargin, topMargin + printHeight - SpacingOne, string.Format("{0} {1}/{2}", Strings.Page, pageNr++, nrPages));
} }
/// <summary> /// <summary>
+2 -1
View File
@@ -131,8 +131,9 @@ namespace TBF
{ {
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(LocalSettings.Language); System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(LocalSettings.Language);
} }
catch catch (Exception e)
{ {
string msg = e.Message;
MessageBox.Show("Selected language not supported.\nUsing English.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); MessageBox.Show("Selected language not supported.\nUsing English.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en"); System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en");
} }
+9
View File
@@ -1392,6 +1392,15 @@ namespace TBF.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Page.
/// </summary>
internal static string Page {
get {
return ResourceManager.GetString("Page", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Parameters. /// Looks up a localized string similar to Parameters.
/// </summary> /// </summary>
+81
View File
@@ -59,5 +59,86 @@ namespace TBF.Resources {
resourceCulture = value; resourceCulture = value;
} }
} }
/// <summary>
/// Looks up a localized string similar to Ambient humidity / 空气温度:.
/// </summary>
internal static string Ambient_humidity_ {
get {
return ResourceManager.GetString("Ambient_humidity_", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Ambient pressure / 大气压强:.
/// </summary>
internal static string Ambient_pressure_ {
get {
return ResourceManager.GetString("Ambient_pressure_", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Ambient temperature / 空气温度:.
/// </summary>
internal static string Ambient_temperature_ {
get {
return ResourceManager.GetString("Ambient_temperature_", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Approval / 审核:.
/// </summary>
internal static string Approval_ {
get {
return ResourceManager.GetString("Approval_", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Date and time / 日期及时间: .
/// </summary>
internal static string Date_and_time_ {
get {
return ResourceManager.GetString("Date_and_time_", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Page/页面 .
/// </summary>
internal static string Page {
get {
return ResourceManager.GetString("Page", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Procedure / 测试程序:.
/// </summary>
internal static string Procedure_ {
get {
return ResourceManager.GetString("Procedure_", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Purchase order / 采购订单:.
/// </summary>
internal static string Purchase_order_ {
get {
return ResourceManager.GetString("Purchase_order_", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Tester / 测试者:.
/// </summary>
internal static string Tester_ {
get {
return ResourceManager.GetString("Tester_", resourceCulture);
}
}
} }
} }
+143 -97
View File
@@ -1,101 +1,147 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<root> <root>
<!-- <!--
Microsoft ResX Schema Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
Version 1.3 mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
The primary goals of this format is to allow a simple XML format : using a System.ComponentModel.TypeConverter
that is mostly human readable. The generation and parsing of the : and then encoded with base64 encoding.
various data types are done through the TypeConverter classes -->
associated with the data types. <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
Example: <xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
... ado.net/XML headers & schema ... <xsd:choice maxOccurs="unbounded">
<resheader name="resmimetype">text/microsoft-resx</resheader> <xsd:element name="metadata">
<resheader name="version">1.3</resheader> <xsd:complexType>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <xsd:sequence>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <xsd:element name="value" type="xsd:string" minOccurs="0" />
<data name="Name1">this is my long string</data> </xsd:sequence>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <xsd:attribute name="name" use="required" type="xsd:string" />
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <xsd:attribute name="type" type="xsd:string" />
[base64 mime encoded serialized .NET Framework object] <xsd:attribute name="mimetype" type="xsd:string" />
</data> <xsd:attribute ref="xml:space" />
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> </xsd:complexType>
[base64 mime encoded string representing a byte array form of the .NET Framework object] </xsd:element>
</data> <xsd:element name="assembly">
<xsd:complexType>
There are any number of "resheader" rows that contain simple <xsd:attribute name="alias" type="xsd:string" />
name/value pairs. <xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
Each data row contains a name, and value. The row also contains a </xsd:element>
type or mimetype. Type corresponds to a .NET class that support <xsd:element name="data">
text/value conversion through the TypeConverter architecture. <xsd:complexType>
Classes that don't support this are serialized and stored with the <xsd:sequence>
mimetype set. <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
The mimetype is used for serialized objects, and tells the </xsd:sequence>
ResXResourceReader how to depersist the object. This is currently not <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
extensible. For a given mimetype the value must be set accordingly: <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
Note - application/x-microsoft.net.object.binary.base64 is the format <xsd:attribute ref="xml:space" />
that the ResXResourceWriter will generate, however the reader can </xsd:complexType>
read any of the formats listed below. </xsd:element>
<xsd:element name="resheader">
mimetype: application/x-microsoft.net.object.binary.base64 <xsd:complexType>
value : The object must be serialized with <xsd:sequence>
: System.Serialization.Formatters.Binary.BinaryFormatter <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
: and then encoded with base64 encoding. </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
mimetype: application/x-microsoft.net.object.soap.base64 </xsd:complexType>
value : The object must be serialized with </xsd:element>
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter </xsd:choice>
: and then encoded with base64 encoding. </xsd:complexType>
</xsd:element>
mimetype: application/x-microsoft.net.object.bytearray.base64 </xsd:schema>
value : The object must be serialized into a byte array <resheader name="resmimetype">
: using a System.ComponentModel.TypeConverter <value>text/microsoft-resx</value>
: and then encoded with base64 encoding. </resheader>
--> <resheader name="version">
<value>2.0</value>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> </resheader>
<xsd:element name="root" msdata:IsDataSet="true"> <resheader name="reader">
<xsd:complexType> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<xsd:choice maxOccurs="unbounded"> </resheader>
<xsd:element name="data"> <resheader name="writer">
<xsd:complexType> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<xsd:sequence> </resheader>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <data name="Ambient_humidity_" xml:space="preserve">
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> <value>Ambient humidity / 空气温度:</value>
</xsd:sequence> </data>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> <data name="Ambient_pressure_" xml:space="preserve">
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <value>Ambient pressure / 大气压强:</value>
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> </data>
</xsd:complexType> <data name="Ambient_temperature_" xml:space="preserve">
</xsd:element> <value>Ambient temperature / 空气温度:</value>
<xsd:element name="resheader"> </data>
<xsd:complexType> <data name="Approval_" xml:space="preserve">
<xsd:sequence> <value>Approval / 审核:</value>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> </data>
</xsd:sequence> <data name="Date_and_time_" xml:space="preserve">
<xsd:attribute name="name" type="xsd:string" use="required" /> <value>Date and time / 日期及时间: </value>
</xsd:complexType> </data>
</xsd:element> <data name="Page" xml:space="preserve">
</xsd:choice> <value>Page/页面 </value>
</xsd:complexType> </data>
</xsd:element> <data name="Procedure_" xml:space="preserve">
</xsd:schema> <value>Procedure / 测试程序:</value>
<resheader name="resmimetype"> </data>
<value>text/microsoft-resx</value> <data name="Purchase_order_" xml:space="preserve">
</resheader> <value>Purchase order / 采购订单:</value>
<resheader name="version"> </data>
<value>1.3</value> <data name="Tester_" xml:space="preserve">
</resheader> <value>Tester / 测试者:</value>
<resheader name="reader"> </data>
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root> </root>
@@ -1021,4 +1021,7 @@
<data name="Tester_" xml:space="preserve"> <data name="Tester_" xml:space="preserve">
<value>Tester: </value> <value>Tester: </value>
</data> </data>
<data name="Page" xml:space="preserve">
<value>Page</value>
</data>
</root> </root>