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

Add i18n to the LED_strip Tab #1756

Merged
merged 2 commits into from
May 1, 2023
Merged

Add i18n to the LED_strip Tab #1756

merged 2 commits into from
May 1, 2023

Conversation

YI-BOYANG
Copy link
Contributor

@YI-BOYANG YI-BOYANG commented Apr 14, 2023

This PR adds all the text in LED_strip.html to i18n.

Why would I want to do this?

Since INAV configurator only supports English language for the time being, since INAV4.0, I have provided a local built Chinese version of the configurator for Chinese players, but I found that there is still a lot of text in the code that has not been added to i18n. Every time INAV releases a new version of the configurator, I have to spend a lot of time manually changing the text to Chinese before building.

This may be a relic of history, but if INAV eventually wants to support multiple languages like Betaflight, these texts will have to be added to i18n. So why not start preparing for multilingualism now?

For my first attempt, I chose the LED_strip Tab because the Betaflight configurator code gives me a good reference, since INAV and Betaflight both originate from Cleanflight.

@mmosca
Copy link
Collaborator

mmosca commented Apr 17, 2023

This looks good. I'll test it later and report back.

@mmosca
Copy link
Collaborator

mmosca commented Apr 26, 2023

Looks good. I didn't find any regressions.

@mmosca mmosca added this to the 7.0 milestone Apr 26, 2023
@DzikuVx DzikuVx merged commit ae0a662 into iNavFlight:master May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants