Skip to content

editor (1/6): the Chinese UI uses SolidWorks' terms - #102

Open
lizaixi01 wants to merge 3 commits into
PhySpace:devfrom
lizaixi01:feat/editor-1-sw-terms
Open

lizaixi01 wants to merge 3 commits into
PhySpace:devfrom
lizaixi01:feat/editor-1-sw-terms

Conversation

@lizaixi01

@lizaixi01 lizaixi01 commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Chinese wording follows SolidWorks

The Chinese UI uses the SolidWorks Chinese terms wherever the editor named the same thing differently (基准面, 完全定义/欠定义/过定义, 几何关系/尺寸, 镜向, 拉伸凸台/拉伸切除, 边线, 配合, 零部件 …). Words only: the SDK, the notebook code and everything an agent reads stay as they are. The table of terms and what was kept on purpose is in design-docs/editor-sw-terms.md.

Commits: the three at the start of the branch (editor i18n: the Chinese UI names things the way SolidWorks does, docs(design): record why the editor's Chinese wording follows SolidWorks, editor i18n: an assembly component is 零部件, as in SolidWorks).


Part 1 of 6 of the editor's manual-mode work, split by theme so each can be reviewed on its own (it replaces #101, which had all of it in one PR). The parts build on each other: merge them in order 1 → 6. Until the parts before this one are merged, this PR also shows their commits; the commits that belong to this part are listed above.

Every commit holds one decision and its reasons (AGENT.md). The series was reordered by theme after it was written; the "Checked" line of a commit describes the check made when it was written, and the tip of every part was checked again after the reordering (below). Manual mode stays off in a release; VITE_MANUAL_MODE=1 turns it on for development (part 2).

Checked at the tip of this part: tsc --noEmit and vitest run in editor-web; pytest test/test_editor_features.py test/test_editor.py test/test_editor_workplanes.py (and test_editor_agent_requests.py from part 3 on), run with PYTHONPATH set to the absolute src path; the editor tests need httpx, which the dev group locks. Results: tsc ok; vitest 331 passed; pytest 151 passed, 5 skipped.

🤖 Generated with Claude Code

lizaixi01 and others added 2 commits November 30, 2026 14:15
DECISION: the Chinese translation table uses the SolidWorks Chinese terms wherever the editor named the same thing
differently (基准面, 完全定义/欠定义/过定义, 几何关系/尺寸, 镜向, 构造几何线, 拉伸凸台/拉伸切除, 移动面, 简单直孔,
边线, and 配合 for assembly joints). Only words a person reads change; the SDK, the notebook code, the table's keys and
everything an agent reads stay as they are.

WHY (discussion of 2026-11-29 between the user and the assistant; record: design-docs/editor-sw-terms.md): the user,
learning CAD through the editor's manual mode and SolidWorks videos side by side, compared the two term by term and kept
looking for the SolidWorks word and not finding it (工作平面 for a 基准面, 已求解 for 完全定义, 约束 for 几何关系 and
尺寸, 镜像 for 镜向). The people this manual mode is for learned CAD on SolidWorks. The user's judgement: rename so that
everything a person reads matches SolidWorks as far as possible, as its own branch, while the kernel stays the
agent-friendly tool it is. Words only, so no code path changes.

ALTERNATIVE CONSIDERED AND REJECTED: replacing "约束" and "边" everywhere. 约束 also names assembly joints, which
SolidWorks calls 配合, and 边 occurs inside other words (边界, 两边); both were changed key by key instead.
基本体 is kept: SolidWorks has no primitives, so there is no word to copy.

WHAT CHANGES: editor-web/src/i18n/locales/zh-CN.json, 73 values (no key added, removed or reordered). Behaviour that
differs from SolidWorks (pick-kind chips instead of hover selection, connectors instead of face mates, no rollback
bar) is not touched here.

Checked: `vitest run src/i18n` (3 passed: every key the source uses has a Chinese entry, interpolations kept) and
`tsc --noEmit` in this branch, on origin/master. Seen in the running editor on the working branch: the pick chips read
边线, a picked face offers 简单直孔. Not checked: every dialog that shows the renamed words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DECISION: keep the term-by-term table of the change "editor i18n: the Chinese UI names things the way SolidWorks does"
as a design record, so that a later reader sees which words changed, which were kept on purpose (基本体, 组件) and that
behaviour differences are a separate matter.

WHY: the decision is about words only, and its reasons are not visible from the diff of a translation table; the repo's
rule is that a decision that outlives one commit gets a record in design-docs/.

WHAT CHANGES: design-docs/editor-sw-terms.md (new; design-docs/ is git-ignored, added with -f).

Checked: the table matches the 73 values the previous commit changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@NiJingzhe NiJingzhe left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! SolidWorks 术语统一得很清晰,设计文档 design-docs/editor-sw-terms.md 也把保留项说明得很清楚。

轻微 Nit:

  • design-docs/editor-sw-terms.md 说明保留「组件」而非统一改为「零部件」,不过 editor-web/src/i18n/locales/zh-CN.json 里有两处改成了「零部件」("Constrain two component connectors to the same frame." 和 "{{who}}: a constraint joins two different components"),而相邻文案仍使用「组件」,后续可顺手统一。

SolidWorks' Chinese help says 零部件 throughout (插入零部件, 零部件属性); the
table mixed it with 组件 (review of PhySpace#102). The wording note said both were
SolidWorks' words; it now lists 零部件 with the other terms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lizaixi01

Copy link
Copy Markdown
Contributor Author

谢谢!查了 SolidWorks 官方简体中文帮助(「插入零部件」「零部件属性」等),它统一用的是「零部件」,所以这次反过来把界面里所有「组件」统一成了「零部件」,设计文档里那条「两种都用」的说法也一并改正了。

现在界面里已经没有「组件」了。

This branch has not been deployed

No deployments
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.

2 participants