Skip to content

Conversation

@funkill
Copy link
Contributor

@funkill funkill commented Jan 18, 2026

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

flowchart LR
  A["OSD Elements"] --> B["English Translations"]
  A --> C["Russian Translations"]
  B --> D["47 New Keys Added"]
  C --> D
  C --> E["HTML Tag Fix"]
Loading

File Walkthrough

Relevant files
Internationalization
messages.json
Added 47 English OSD element translations                               

locale/en/messages.json

  • Added 47 new OSD element translation keys with English messages
  • Keys cover flight parameters, navigation, control settings, and custom
    elements
  • Includes elements like power supply impedance, flight time/distance,
    throttle, heading, altitude, and various configuration parameters
+237/-0 
messages.json
Added 47 Russian OSD translations and fixed HTML tag         

locale/ru/messages.json

  • Added 47 new OSD element translation keys with Russian messages
  • Provided Russian translations for all flight parameters and control
    settings
  • Fixed malformed HTML tag in serialrx_frSkyFuelUnitHelp (changed
    «топливо» to «топливо»)
+232/-1 

@qodo-code-review
Copy link
Contributor

qodo-code-review bot commented Jan 18, 2026

PR Compliance Guide 🔍

All compliance sections have been disabled in the configurations.

Comment on lines +3674 to +3676
"osdElement_MISSION INFO": {
"message": "Mission Info"
},
Copy link
Contributor

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]

Suggested change
"osdElement_MISSION INFO": {
"message": "Mission Info"
},
"osdElement_MISSION_INFO": {
"message": "Mission Info"
}

Comment on lines 6390 to 6392
"osdElement_DISTANCE_TO_HOME": {
"message": "Направление домой"
},
Copy link
Contributor

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]

Suggested change
"osdElement_DISTANCE_TO_HOME": {
"message": "Направление домой"
},
"osdElement_DISTANCE_TO_HOME": {
"message": "Расстояние до дома"
}

Comment on lines 3623 to +3646
"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"
},
Copy link
Contributor

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"
 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant