diff --git a/Tools/ArdupilotMegaPlanner/Arduino/ArduinoDetect.cs b/Tools/ArdupilotMegaPlanner/Arduino/ArduinoDetect.cs index 76f0a6d57e..ad59c49534 100644 --- a/Tools/ArdupilotMegaPlanner/Arduino/ArduinoDetect.cs +++ b/Tools/ArdupilotMegaPlanner/Arduino/ArduinoDetect.cs @@ -163,7 +163,7 @@ namespace ArdupilotMega.Arduino { serialPort.Close(); //HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_2341&PID_0010\640333439373519060F0\Device Parameters - if (!MainV2.MONO && !Thread.CurrentThread.CurrentUICulture.IsChildOf(CultureInfoEx.GetCultureInfo("zh-Hans"))) + if (!MainV2.MONO && !Thread.CurrentThread.CurrentCulture.IsChildOf(CultureInfoEx.GetCultureInfo("zh-Hans"))) { ObjectQuery query = new ObjectQuery("SELECT * FROM Win32_SerialPort"); // Win32_USBControllerDevice ManagementObjectSearcher searcher = new ManagementObjectSearcher(query); diff --git a/Tools/ArdupilotMegaPlanner/ArdupilotMega.csproj b/Tools/ArdupilotMegaPlanner/ArdupilotMega.csproj index 29064ddc38..1413297211 100644 --- a/Tools/ArdupilotMegaPlanner/ArdupilotMega.csproj +++ b/Tools/ArdupilotMegaPlanner/ArdupilotMega.csproj @@ -704,6 +704,9 @@ ConfigPlanner.cs + + ConfigPlanner.cs + ConfigRadioInput.cs diff --git a/Tools/ArdupilotMegaPlanner/GCSViews/ConfigurationView/ConfigPlanner.cs b/Tools/ArdupilotMegaPlanner/GCSViews/ConfigurationView/ConfigPlanner.cs index 1cb8bf6522..f1e8803610 100644 --- a/Tools/ArdupilotMegaPlanner/GCSViews/ConfigurationView/ConfigPlanner.cs +++ b/Tools/ArdupilotMegaPlanner/GCSViews/ConfigurationView/ConfigPlanner.cs @@ -151,7 +151,10 @@ namespace ArdupilotMega.GCSViews.ConfigurationView } private void CMB_language_SelectedIndexChanged(object sender, EventArgs e) - { + { + if (startup) + return; + MainV2.instance.changelanguage((CultureInfo)CMB_language.SelectedItem); #if !DEBUG @@ -492,7 +495,7 @@ namespace ArdupilotMega.GCSViews.ConfigurationView break; } } - CMB_language.SelectedIndexChanged += CMB_language_SelectedIndexChanged; + //CMB_language.SelectedIndexChanged += CMB_language_SelectedIndexChanged; startup = false; } diff --git a/Tools/ArdupilotMegaPlanner/GCSViews/ConfigurationView/ConfigPlanner.resx b/Tools/ArdupilotMegaPlanner/GCSViews/ConfigurationView/ConfigPlanner.resx index 7836529e84..eb2fb01213 100644 --- a/Tools/ArdupilotMegaPlanner/GCSViews/ConfigurationView/ConfigPlanner.resx +++ b/Tools/ArdupilotMegaPlanner/GCSViews/ConfigurationView/ConfigPlanner.resx @@ -1268,7 +1268,7 @@ BUT_Joystick - ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner, Version=1.1.4498.31567, Culture=neutral, PublicKeyToken=null + ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner, Version=1.1.4507.18015, Culture=neutral, PublicKeyToken=null $this @@ -1295,7 +1295,7 @@ BUT_videostop - ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner, Version=1.1.4498.31567, Culture=neutral, PublicKeyToken=null + ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner, Version=1.1.4507.18015, Culture=neutral, PublicKeyToken=null $this @@ -1322,7 +1322,7 @@ BUT_videostart - ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner, Version=1.1.4498.31567, Culture=neutral, PublicKeyToken=null + ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner, Version=1.1.4507.18015, Culture=neutral, PublicKeyToken=null $this @@ -1397,6 +1397,6 @@ ConfigPlanner - ArdupilotMega.Controls.BackstageView.BackStageViewContentPanel, ArdupilotMegaPlanner, Version=1.1.4498.31567, Culture=neutral, PublicKeyToken=null + ArdupilotMega.Controls.BackstageView.BackStageViewContentPanel, ArdupilotMegaPlanner, Version=1.1.4507.18015, Culture=neutral, PublicKeyToken=null \ No newline at end of file diff --git a/Tools/ArdupilotMegaPlanner/GCSViews/ConfigurationView/ConfigPlanner.zh-Hans.resx b/Tools/ArdupilotMegaPlanner/GCSViews/ConfigurationView/ConfigPlanner.zh-Hans.resx new file mode 100644 index 0000000000..a86888c15c --- /dev/null +++ b/Tools/ArdupilotMegaPlanner/GCSViews/ConfigurationView/ConfigPlanner.zh-Hans.resx @@ -0,0 +1,226 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 传感器 + + + 视频格式 + + + 航 点 + + + 连接时加载航点? + + + 轨迹长度 + + + 高度警告 + + + APM 重启 + + + USB 连接时重置 APM + + + Mavlink 消息调试 + + + 模式/状态 + + + 位置 + + + 姿态 + + + 遥测速率 + + + 注意: 配置选项卡中不会显示这些单位,因为它们是原始数据 + + + 速度单位 + + + + 65, 13 + + + 长度单位 + + + 69, 13 + + + 游戏摇杆 + + + 57, 13 + + + 语音合成 + + + 电池警告 + + + 时间间隔 + + + 模式 + + + 航点 + + + OSD 颜色 + + + UI 语言 + + + 启用语音 + + + 启用HUD叠加 + + + 视频设备 + + + 摇杆设置 + + + 停止 + + + 启动 + + + 地图追随 + + + 地图随飞机转动 + + \ No newline at end of file