-
Notifications
You must be signed in to change notification settings - Fork 35
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
Can't select languages other than English. #150
Comments
Ok, the "problem" was in Also, the .wav files I was using were in the wrong format. Maybe we can update the documentation for the translator? |
You should be able to just remove the Documentation PRs are gratefully received; all it needs to say is "WAV format as defined by OpenTX / EdgeTX". It may also be that OpenTX and EdgeTX have different WAV formats, in which case the user may have to reformat the files as needed. e.g. see EdgeTX documentation |
Greatly appreciated. There are CSV files and a script for auto-generating voices. I will do another pull request with new voices. |
Maybe we should fix that to use ".lua"? Since it is always available. |
Describe the bug
The script always runs in English, regardless of the selected language. Even with a custom EdgeTX build in another language or by setting
in
SCRIPTS/TELEMETRY/iNav.lua
it still defaults to English.Tested on Jumper T16 with EdgeTX 2.10.2 and Edge Companion Simulator.
To reproduce
SCRIPTS/TELEMETRY/iNav.lua
changingdata.lang
anddata.voice
Expected behavior
The script should use the selected language.
Screenshots
n.a.
Radio and model settings
I believe these are not relevant; I also tested with an empty SD card.
Additional context
if i change from
lang = loadScript(FILE_PATH .. "lang" .. ext, env)(modes, labels, data, FILE_PATH, env)
to (for example)
lang = loadScript(FILE_PATH .. "lang_es" .. ext, env)(modes, labels, data, FILE_PATH, env)
it works
The text was updated successfully, but these errors were encountered: