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 support #23

Merged
4 commits merged into from
Oct 17, 2021
Merged

Add I18n support #23

4 commits merged into from
Oct 17, 2021

Conversation

ghost
Copy link

@ghost ghost commented Oct 16, 2021

Resolves #7

Introduces i18n support by adding a new i18n top-level folder containing a script to search for all translatable UI text in src and replace them with a chosen locale's translations, kept in the i18n/translations folder.

Adds a new build-software step that must be run before flash-software now. This new step creates a build folder that is copied over to the SD card in flash-software. Since the translations take up a lot of memory, they are done as part of the build step by essentially find-replacing all UI text at build time.

The translated version of Krux is then copied over by the flash-software step.

I added a Google Translate'd version of German to use as a reference for other languages. If you know German, please do feel free to make any and all changes to the translations in a new PR :)

@ghost ghost merged commit b18fc23 into main Oct 17, 2021
@ghost ghost deleted the i18n branch October 17, 2021 00:27
jdlcdl pushed a commit to jdlcdl/krux that referenced this pull request Mar 13, 2024
This pull request was closed.
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.

Add localization support
0 participants