-
-
Notifications
You must be signed in to change notification settings - Fork 558
feat(radio): allow disabling USB charge while the radio is running (on compatible hardware) #7564
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: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -993,6 +993,7 @@ | |
| #define TR_SENSOR "SENSOR" | ||
| #define TR_COUNTRY_CODE "Lande kode" | ||
| #define TR_USBMODE "USB tilstand" | ||
| #define TR_USB_CHARGE "USB SD/Joystick/VCP charge" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Localize the new setting label in non-English headers. Both files currently show the English fallback to users.
📍 Affects 2 files
🤖 Prompt for AI Agents |
||
| #define TR_JACK_MODE "Jack tilstand" | ||
| #define TR_VOICE_LANGUAGE "Stemme sprog" | ||
| #define TR_TEXT_LANGUAGE "Text language" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -982,6 +982,7 @@ | |
| #define TR_SENSOR "SENSOR" | ||
| #define TR_COUNTRY_CODE "Código país" | ||
| #define TR_USBMODE "Modo USB" | ||
| #define TR_USB_CHARGE "USB SD/Joystick/VCP charge" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Localize The new setting label currently remains English in all three localized headers:
📍 Affects 3 files
🤖 Prompt for AI Agents |
||
| #define TR_JACK_MODE "Modo Jack" | ||
| #define TR_VOICE_LANGUAGE "Idioma voces" | ||
| #define TR_TEXT_LANGUAGE "Text language" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -986,6 +986,7 @@ | |
| #define TR_SENSOR "CAPTEUR" | ||
| #define TR_COUNTRY_CODE TR("Zone géo.", "Zone géographique") | ||
| #define TR_USBMODE "Mode USB" | ||
| #define TR_USB_CHARGE "USB SD/Joystick/VCP charge" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Provide localized values for The new key is currently English in all three locale headers, so the Radio Settings option remains untranslated for French, Hebrew, and Italian users.
📍 Affects 3 files
🤖 Prompt for AI Agents |
||
| #define TR_JACK_MODE "Mode Jack" | ||
| #define TR_VOICE_LANGUAGE TR("Langue voix", "Langue annonces vocales") | ||
| #define TR_TEXT_LANGUAGE "Text language" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -987,6 +987,7 @@ | |
| #define TR_SENSOR "センサー" | ||
| #define TR_COUNTRY_CODE "カントリーコード" | ||
| #define TR_USBMODE "USBモード" | ||
| #define TR_USB_CHARGE "USB SD/Joystick/VCP charge" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
printf '\n== TR_USB_CHARGE occurrences ==\n'
rg -n 'TR_USB_CHARGE' radio/src/translations/i18n
printf '\n== Nearby lines in affected files ==\n'
for f in radio/src/translations/i18n/jp.h radio/src/translations/i18n/ko.h radio/src/translations/i18n/nl.h; do
echo "--- $f"
# show a small window around the matching line if present
line=$(rg -n 'TR_USB_CHARGE' "$f" | head -n1 | cut -d: -f1 || true)
if [ -n "${line:-}" ]; then
start=$((line-3)); [ "$start" -lt 1 ] && start=1
end=$((line+3))
sed -n "${start},${end}p" "$f" | cat -n
fi
done
printf '\n== File size hints ==\n'
wc -l radio/src/translations/i18n/jp.h radio/src/translations/i18n/ko.h radio/src/translations/i18n/nl.hRepository: EdgeTX/edgetx Length of output: 3686 Translate 📍 Affects 3 files
🤖 Prompt for AI Agents |
||
| #define TR_JACK_MODE "Jackモード" | ||
| #define TR_VOICE_LANGUAGE "音声言語" | ||
| #define TR_TEXT_LANGUAGE "Text language" | ||
|
|
||
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.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Localize
TR_USB_CHARGEin every affected language header.The new setting currently displays English text in both localized UIs:
radio/src/translations/i18n/cn.h#L987-L987: replace the English value with approved Chinese text.radio/src/translations/i18n/cz.h#L985-L985: replace the English value with approved Czech text.📍 Affects 2 files
radio/src/translations/i18n/cn.h#L987-L987(this comment)radio/src/translations/i18n/cz.h#L985-L985🤖 Prompt for AI Agents