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

Fix missing stat desc #3617

Merged
merged 1 commit into from
Oct 29, 2023
Merged
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
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