Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add translation of Simplified Chinese for RTCM/GPS Inject. #3424

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
273 changes: 273 additions & 0 deletions GCSViews/ConfigurationView/ConfigSerialInjectGPS.zh-CN.resx
Original file line number Diff line number Diff line change
@@ -0,0 +1,273 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
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.

mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<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" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="chk_rtcmmsg.Size" type="System.Drawing.Size, System.Drawing">
<value>96, 16</value>
</data>
<data name="chk_rtcmmsg.Text" xml:space="preserve">
<value>注入消息类型</value>
</data>
<data name="lbl_svin.ToolTip" xml:space="preserve">
<value>Survey in information
Valid: is the survey in valid
InProgress: are we currently surveying in our position
Duration: the number of seconds we have surveyed in
Obs: number of obsivation used in our survey in
Acc: current accuracy of our survey in point
</value>
</data>
<data name="chk_autoconfig.Size" type="System.Drawing.Size, System.Drawing">
<value>108, 16</value>
</data>
<data name="chk_autoconfig.Text" xml:space="preserve">
<value>自动配置接收器</value>
</data>
<data name="chk_autoconfig.ToolTip" xml:space="preserve">
<value>自动配置连接到所选端口的接收器以输出校正消息。</value>
</data>
<data name="groupBox_autoconfig.Text" xml:space="preserve">
<value>自动化配置</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="label21.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="chk_septentriogalileo.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="chk_septentriobeidou.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="chk_septentriogps.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="label1.ToolTip" xml:space="preserve">
<value>Both accuracy and duration must be meet in order for the survey in to complete
ie less than 2 m accuracy, and Greater than 60 seconds of observations</value>
</data>
<data name="label10.ToolTip" xml:space="preserve">
<value>Survey in information
Valid: is the survey in valid
InProgress: are we currently surveying in our position
Duration: the number of seconds we have surveyed in
Obs: number of obsivation used in our survey in
Acc: current accuracy of our survey in point
</value>
</data>
<data name="label7.ToolTip" xml:space="preserve">
<value>Survey in information
Valid: is the survey in valid
InProgress: are we currently surveying in our position
Duration: the number of seconds we have surveyed in
Obs: number of obsivation used in our survey in
Acc: current accuracy of our survey in point
</value>
</data>
<data name="label9.ToolTip" xml:space="preserve">
<value>Survey in information
Valid: is the survey in valid
InProgress: are we currently surveying in our position
Duration: the number of seconds we have surveyed in
Obs: number of obsivation used in our survey in
Acc: current accuracy of our survey in point
</value>
</data>
<data name="label8.ToolTip" xml:space="preserve">
<value>Survey in information
Valid: is the survey in valid
InProgress: are we currently surveying in our position
Duration: the number of seconds we have surveyed in
Obs: number of obsivation used in our survey in
Acc: current accuracy of our survey in point
</value>
</data>
<data name="chk_sendgga.Size" type="System.Drawing.Size, System.Drawing">
<value>180, 16</value>
</data>
<data name="chk_sendgga.Text" xml:space="preserve">
<value>发送NTRIP GGA? (VRS/Smart)</value>
</data>
<data name="check_sendntripv1.Size" type="System.Drawing.Size, System.Drawing">
<value>120, 16</value>
</data>
<data name="check_sendntripv1.Text" xml:space="preserve">
<value>发送NTRIP v1.0 ?</value>
</data>
<data name="label3.Size" type="System.Drawing.Size, System.Drawing">
<value>77, 12</value>
</data>
<data name="label3.Text" xml:space="preserve">
<value>传入速率</value>
</data>
<data name="label4.Size" type="System.Drawing.Size, System.Drawing">
<value>84, 12</value>
</data>
<data name="label4.Text" xml:space="preserve">
<value>输出速率</value>
</data>
<data name="label5.Size" type="System.Drawing.Size, System.Drawing">
<value>101, 12</value>
</data>
<data name="label5.Text" xml:space="preserve">
<value>RTCM 基准站位置 </value>
</data>
<data name="label6.Size" type="System.Drawing.Size, System.Drawing">
<value>65, 12</value>
</data>
<data name="label6.Text" xml:space="preserve">
<value>RTCM消息ID</value>
</data>
<data name="label11.Size" type="System.Drawing.Size, System.Drawing">
<value>41, 12</value>
</data>
<data name="label11.Text" xml:space="preserve">
<value>基准站</value>
</data>
<data name="label13.Size" type="System.Drawing.Size, System.Drawing">
<value>53, 12</value>
</data>
<data name="label13.Text" xml:space="preserve">
<value>格洛纳斯</value>
</data>
<data name="groupBox2.Text" xml:space="preserve">
<value>RTCM数据时效</value>
</data>
<data name="label16.Size" type="System.Drawing.Size, System.Drawing">
<value>41, 12</value>
</data>
<data name="label16.Text" xml:space="preserve">
<value>伽利略</value>
</data>
<data name="label15.Size" type="System.Drawing.Size, System.Drawing">
<value>29, 12</value>
</data>
<data name="label15.Text" xml:space="preserve">
<value>北斗</value>
</data>
<data name="labelbase.Location" type="System.Drawing.Point, System.Drawing">
<value>47, 16</value>
</data>
<data name="groupBox3.Text" xml:space="preserve">
<value>链路状态</value>
</data>
<data name="BUT_connect.Text" xml:space="preserve">
<value>连接</value>
</data>
</root>
7 changes: 6 additions & 1 deletion GCSViews/InitialSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,12 @@ private void HardwareConfig_Load(object sender, EventArgs e)
var opt = AddBackstageViewPage(typeof(ConfigOptional), rm.GetString("backstageViewPageopt.Text"));
if (MainV2.DisplayConfiguration.displayRTKInject)
{
AddBackstageViewPage(typeof(ConfigSerialInjectGPS), "RTK/GPS Inject", true, opt);
var rtcmStr = rm.GetString("backstageViewPageSerialInjectGPS.Text");
if(rtcmStr == null)
{
rtcmStr = "RTK/GPS Inject";
}
AddBackstageViewPage(typeof(ConfigSerialInjectGPS), rtcmStr, true, opt);
}

AddBackstageViewPage(typeof(ConfigCubeID), "CubeID Update",
Expand Down
3 changes: 3 additions & 0 deletions GCSViews/InitialSetup.zh-Hans.resx
Original file line number Diff line number Diff line change
Expand Up @@ -205,4 +205,7 @@
<data name="backstageViewPagePX4Flow.Text" xml:space="preserve">
<value>PX4Flow光流</value>
</data>
<data name="backstageViewPageSerialInjectGPS.Text" xml:space="preserve">
<value>差分定位</value>
</data>
</root>