Repository navigation
feat(i18n): add Qt-native multilingual UI with Simplified Chinese pack - #71
Merged
benapetr merged 4 commits intoSep 9, 2026
Merged
Conversation
Add a language selector (Options -> Language: System default / English / 简体中文) backed by the Qt translation system: - New I18n module loads tux-manager_<locale>.qm and the Qt qtbase_* catalog. Translations are embedded in the binary via CONFIG += lrelease embed_translations (:/i18n/) and are also installed as filesystem .qm files for the .deb. - Language preference is stored in General/Language (empty = follow the system locale). - Switching languages prompts the user and restarts the application so every widget/model is re-translated consistently. - Wrap previously hard-coded process-table headers and process-state strings in tr(). - Add tux-manager_zh_CN.ts with 399 translated messages (0 unfinished). - Package translations under /usr/share/tux-manager/translations/ and add the qt6 qttools/lrelease build dependency for the Debian build.
we don't need it, that extra menu is cluttering the simple UI layout and there is virtually no need for user to ever decide to pick a different language for a tool of this kind from the OS language that menu where you could explicitly set a language made sense only for debugging of localizations themselves and that can be overriden via env var
we are using embed_translations we don't need to ship localizations twice
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a language selector (Options -> Language: System default / English / 简体中文) backed by the Qt translation system: