-
Notifications
You must be signed in to change notification settings - Fork 370
OSD elements i18n #2524
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
base: maintenance-9.x
Are you sure you want to change the base?
OSD elements i18n #2524
Conversation
PR Compliance Guide 🔍All compliance sections have been disabled in the configurations. |
| "osdElement_MISSION INFO": { | ||
| "message": "Mission Info" | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: Replace the space with an underscore in the osdElement_MISSION INFO key to follow naming conventions and prevent potential lookup errors. [general, importance: 7]
| "osdElement_MISSION INFO": { | |
| "message": "Mission Info" | |
| }, | |
| "osdElement_MISSION_INFO": { | |
| "message": "Mission Info" | |
| } |
| "osdElement_DISTANCE_TO_HOME": { | ||
| "message": "Направление домой" | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: Correct the Russian translation for osdElement_DISTANCE_TO_HOME to "Расстояние до дома" to accurately mean "Distance to Home". [possible issue, importance: 8]
| "osdElement_DISTANCE_TO_HOME": { | |
| "message": "Направление домой" | |
| }, | |
| "osdElement_DISTANCE_TO_HOME": { | |
| "message": "Расстояние до дома" | |
| } |
| "osd_pilot_name": { | ||
| "message": "Pilot's Name" | ||
| }, | ||
| "osdElement_POWER_SUPPLY_IMPEDANCE": { | ||
| "message": "Power Supply Impedance" | ||
| }, | ||
| "osdElement_REMAINING_FLIGHT_TIME": { | ||
| "message": "Remaining Flight Time" | ||
| }, | ||
| "osdElement_REMAINING_FLIGHT_DISTANCE": { | ||
| "message": "Remaining Flight Distance" | ||
| }, | ||
| "osdElement_THROTTLE_GAUGE": { | ||
| "message": "Throttle Gauge" | ||
| }, | ||
| "osdElement_THROTTLE_POSITION": { | ||
| "message": "Throttle Position" | ||
| }, | ||
| "osdElement_SCALED_THROTTLE_POSITION": { | ||
| "message": "Scaled Throttle Position" | ||
| }, | ||
| "osdElement_CRAFT_NAME": { | ||
| "message": "Craft Name" | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: Remove the duplicate osd_craft_name translation entry and standardize on using osdElement_CRAFT_NAME to avoid inconsistency. [general, importance: 6]
New proposed code:
-"osd_craft_name": {
- "message": "Craft Name"
-},
"osdElement_CRAFT_NAME": {
"message": "Craft Name"
}
User description
Added en osd elements string (for simplify track in tools like weblate, pontoon, poeditor and other), extracted from osd.js, i18n keys creates here.
Added ru translations of new elements.
PR Type
Enhancement
Description
Added 47 English OSD element translations for internationalization
Added 47 Russian OSD element translations with localized descriptions
Fixed HTML tag syntax error in Russian FrSky fuel unit help text
Diagram Walkthrough
File Walkthrough
messages.json
Added 47 English OSD element translationslocale/en/messages.json
elements
throttle, heading, altitude, and various configuration parameters
messages.json
Added 47 Russian OSD translations and fixed HTML taglocale/ru/messages.json
settings
serialrx_frSkyFuelUnitHelp(changed«топливо»to«топливо»)