Skip to content

Commit

Permalink
Fix missing stat desc (#3617)
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis authored Oct 29, 2023
1 parent db1eb88 commit 510ac9f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
21 changes: 21 additions & 0 deletions locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -6081,6 +6081,27 @@
"osdDescStatBestLap": {
"message": "Best lap"
},
"osdTextStatFullThrottleTime": {
"message": "Full throttle timer",
"description": "One of the statistics that can be shown at the end of the flight in the OSD"
},
"osdDescStatFullThrottleTime": {
"message": "Full throttle timer"
},
"osdTextStatFullThrottleCounter": {
"message": "Full throttle counter",
"description": "One of the statistics that can be shown at the end of the flight in the OSD"
},
"osdDescStatFullThrottleCounter": {
"message": "Full throttle counter"
},
"osdTextStatAvgThrottle": {
"message": "Average throttle",
"description": "One of the statistics that can be shown at the end of the flight in the OSD"
},
"osdDescStatAvgThrottle": {
"message": "Average throttle"
},
"osdTextStatUnknown": {
"message": "Unknown $1",
"description": "One of the statistics that can be shown at the end of the flight in the OSD"
Expand Down
15 changes: 15 additions & 0 deletions src/js/tabs/osd.js
Original file line number Diff line number Diff line change
Expand Up @@ -1720,6 +1720,21 @@ OSD.constants = {
text: 'osdTextStatBestLap',
desc: 'osdDescStatBestLap',
},
STAT_FULL_THROTTLE_TIME : {
name: 'STAT_FULL_THROTTLE_TIME',
text: 'osdTextStatFullThrottleTime',
desc: 'osdDescStatFullThrottleTime',
},
STAT_FULL_THROTTLE_COUNTER : {
name: 'STAT_FULL_THROTTLE_COUNTER',
text: 'osdTextStatFullThrottleCounter',
desc: 'osdDescStatFullThrottleCounter',
},
STAT_AVG_THROTTLE : {
name: 'STAT_AVG_THROTTLE',
text: 'osdTextStatAvgThrottle',
desc: 'osdDescStatAvgThrottle',
},
},
ALL_WARNINGS: {
ARMING_DISABLED: {
Expand Down

0 comments on commit 510ac9f

Please sign in to comment.