Merge pull request #2627 from mikeller/add_sliders_mode_internationalisation

Added internationalisation support for the sliders mode drop down.
10.8-maintenance
haslinghuis 2021-10-13 22:23:25 +02:00 committed by GitHub
commit dc5d1d9b05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 11 deletions

View File

@ -1812,7 +1812,7 @@
"pidTuningFeedforwardAveraging": {
"message": "Averaging"
},
"pidTuningFeedforwardAveragingOptionOff": {
"pidTuningOptionOff": {
"message": "OFF"
},
"pidTuningFeedforwardAveragingOption2Point": {
@ -2001,7 +2001,7 @@
"filterWarning": {
"message": "<span class=\"message-negative\"><b>Warning:</b></span> The amount of filtering you are using is dangerously low. This is likely to make the craft hard to control, and can result in flyaways. It is highly recommended that you <b>enable at least one of Gyro Dynamic Lowpass or Gyro Lowpass 1 and at least one of D-Term Dynamic Lowpass or D Term Lowpass 1</b>."
},
"sliderPidsModeSelect": {
"pidTuningSliderPidsMode": {
"message": "Mode:",
"description": "Pidtuning slider mode can be OFF, RP or RPY"
},
@ -3970,10 +3970,10 @@
"message": "Axes",
"description": "Iterm Relax Axes selection"
},
"pidTuningItermRelaxAxesOptionRP": {
"pidTuningOptionRP": {
"message": "RP"
},
"pidTuningItermRelaxAxesOptionRPY": {
"pidTuningOptionRPY": {
"message": "RPY"
},
"pidTuningItermRelaxAxesOptionRPInc": {

View File

@ -172,11 +172,12 @@
<div id="slidersPidsBox" class="gui_box grey topspacer tuningPIDSliders">
<table class="pid_titlebar">
<tr>
<th scope="col" class="sm-min">Mode
<th scope="col">
<div i18n="pidTuningSliderPidsMode" class="sm-min"></div>
<select id="sliderPidsModeSelect" class="sliderMode">
<option value="0">OFF</option>
<option value="1">RP</option>
<option value="2">RPY</option>
<option value="0" i18n="pidTuningOptionOff"></option>
<option value="1" i18n="pidTuningOptionRP"></option>
<option value="2" i18n="pidTuningOptionRPY"></option>
</select>
<div class="helpicon cf_tip" i18n_title="pidTuningSliderModeHelp"></div>
</th>
@ -612,7 +613,7 @@
<span class="feedforwardOption feedforwardAveraging suboption">
<select id="feedforwardAveraging">
<option i18n="pidTuningFeedforwardAveragingOptionOff" value="0"/>
<option i18n="pidTuningOptionOff" value="0"/>
<option i18n="pidTuningFeedforwardAveragingOption2Point" value="1"/>
<option i18n="pidTuningFeedforwardAveragingOption3Point" value="2"/>
<option i18n="pidTuningFeedforwardAveragingOption4Point" value="3"/>
@ -757,8 +758,8 @@
<span class="suboption">
<select id="itermrelaxAxes">
<option i18n="pidTuningItermRelaxAxesOptionRP" value="1">
<option i18n="pidTuningItermRelaxAxesOptionRPY" value="2"/>
<option i18n="pidTuningOptionRP" value="1">
<option i18n="pidTuningOptionRPY" value="2"/>
<option i18n="pidTuningItermRelaxAxesOptionRPInc" value="3"/>
<option i18n="pidTuningItermRelaxAxesOptionRPYInc" value="4"/>
</select>