Skip to content

Commit

Permalink
Translate labels at reciever signal graph (#3622)
Browse files Browse the repository at this point in the history
* Translate labels at reciever signal graph

* Fix sonarcloud issue
  • Loading branch information
HThuren authored Nov 6, 2023
1 parent 3ce6b6e commit cf3070a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
16 changes: 16 additions & 0 deletions locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2211,6 +2211,22 @@
"receiverResetRefreshRateTitle": {
"message": "Reset refresh rate"
},
"receiverRowContainerRoll": {
"message": "Roll [A]:",
"description": "Roll label in signal graph"
},
"receiverRowContainerPitch": {
"message": "Pitch [E]:",
"description": "Pitch label in signal graph"
},
"receiverRowContainerYaw": {
"message": "Yaw [R]:",
"description": "Yaw label in signal graph"
},
"receiverRowContainerThrottle": {
"message": "Throttle [T]:",
"description": "Throttle label in signal graph"
},
"receiverButtonSave": {
"message": "Save"
},
Expand Down
16 changes: 12 additions & 4 deletions src/tabs/receiver.html
Original file line number Diff line number Diff line change
Expand Up @@ -399,31 +399,39 @@
<div class="row-container">
<div class="row">
<div class="left-cell">
Roll [A]:
<ul>
<li class="name" i18n="receiverRowContainerRoll"></li>
</ul>
</div>
<div class="ch1 value right-cell">
0
</div>
</div>
<div class="row">
<div class="left-cell">
Pitch [E]:
<ul>
<li class="name" i18n="receiverRowContainerPitch"></li>
</ul>
</div>
<div class="ch2 value right-cell">
0
</div>
</div>
<div class="row">
<div class="left-cell">
Yaw [R]:
<ul>
<li class="name" i18n="receiverRowContainerYaw"></li>
</ul>
</div>
<div class="ch3 value right-cell">
0
</div>
</div>
<div class="row">
<div class="left-cell">
Throttle [T]:
<ul>
<li class="name" i18n="receiverRowContainerThrottle"></li>
</ul>
</div>
<div class="ch4 value right-cell">
0
Expand Down

0 comments on commit cf3070a

Please sign in to comment.