Skip to content

Conversation

philmoz
Copy link
Collaborator

@philmoz philmoz commented Aug 7, 2025

Key changes:

  • Cleanup string usage. Remove all direct usage of TR_xxx strings, always use STR_xxx version. Changes to the translation files no longer require re-compiling almost every other file.
  • Add translation testing to tests build. Test all language translation files against the English base when running the 'tests' target. Issues with translation files can be caught during build.
  • Remove conditional sections, and string array definitions from the translation files. This simplifies the files as each line is a single string to translate. Ensures string arrays always have the correct number of entries.
  • Restructure 'translations' folder. Group translation and tts source files into sub folders. Move all translation related files into the translations folder.
  • Easier addition of new strings. Edit a single file (string_list.h) instead of modifying multiple files.

Note: based on 3.0UI PR.

@philmoz philmoz added this to the 3.0 milestone Aug 7, 2025
@philmoz philmoz added compilation Related to compiling the firmware and firmware options house keeping 🧹 Cleanup of code and house keeping labels Aug 7, 2025
@philmoz philmoz force-pushed the philmoz/string-cleaning branch from 0588b0d to f6bf416 Compare August 9, 2025 09:32
@philmoz philmoz force-pushed the philmoz/string-cleaning branch from f6bf416 to 70beb83 Compare August 11, 2025 22:18
Add translation testing to tests build.
Remove conditional sections from translation files.
Restructure 'translations' folder.
@philmoz philmoz force-pushed the philmoz/string-cleaning branch from 70beb83 to 89aff45 Compare August 12, 2025 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compilation Related to compiling the firmware and firmware options house keeping 🧹 Cleanup of code and house keeping
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant