Repository navigation
Conversation
The settings page has 语言 (跟随系统 / 简体中文 / English), applied after a restart. Source texts stay Chinese and go through tr(); English comes from app/resource/i18n/en.json, the same table FluentHMI Studio uses. .uidp values keep their Chinese and are only shown translated. Exported apps take the language set at export time, like the theme. tools/check_i18n.py, run by the tests, keeps every text translatable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
README.md is now English and README_zh.md Chinese, each linking to the other. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Exports follow the designer's language setting, which is 跟随系统 by default, so on an English CI runner the exported apps came out English while the tests check Chinese texts. Every test export now passes language="zh_CN", as test_demo already did. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
tr(). English comes from one table,en.json(732 entries), byte-identical in PyQt UI Designer and FluentHMI Studio, so the same UI text reads the same in both apps. Placeholders are Qt-style%1in both..uidpvalues that are Chinese (主站/从站, 保持寄存器, 文本, …) never change in files; combo boxes keep the value as item data and only show it translated. Loading never depends on the language; widgets added from the palette get their default texts in the interface language.## English).tools/check_i18n.py(same file in both repos, run by the tests) fails on Chinese outsidetr()or a text without English.tests/data/modbus_slave_vectors.jsonare unchanged and still pass, since tests run untranslated.README.mdis now the English README andREADME_zh.mdthe Chinese one, each linking to the other.Both test suites pass. The designer, its preview and the settings page were checked in English and Chinese, light and dark, with tutorial 02 loaded.
PyQt specifics: runtime module
app/core/i18n.py(also copied into exports, which get ani18n.pyholding only the strings they use;demo/regenerated), the existingcfg.languageitem now has a card, anden.jsonis included in Nuitka builds.🤖 Generated with Claude Code