Repository navigation
fix(adopt): keep the Unix messages lite already translates - #141
Merged
Merged
Conversation
#138 folded the Unix and Windows findings about same-name variables into one message: `adopt.diag.shell_export` lost its `line` argument and got a new English sentence, and `no_exports.detail` gained a `looked` argument. lite translates by code with the arguments of the released version, so its Chinese would have read "line undefined" and claimed .zshrc was checked on Windows. The Unix messages are back exactly as in v0.30.0. Windows says different sentences, so it gets its own codes instead of sharing one: adopt.diag.registry_env, adopt.diag.registry_env.overrides, adopt.diag.no_registry_env and adopt.diag.no_registry_env.detail. Each platform branch now builds its whole sentences; the shared finding code only assembles them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fylorn
force-pushed
the
fix/adopt-message-contract
branch
from
September 23, 2026 12:56
6fca58b to
b3b3f02
Compare
Merged
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.
Follow-up to #138, which changed a message contract without meaning to.
lite translates core messages by code, using the arguments the released version sends. #138 changed three Unix messages:
adopt.diag.shell_exportlost itslineargument (lite's Chinese uses it, so it would render "line undefined").adopt.diag.no_exports.detailgained alookedargument, and on Windows lite's Chinese would still say it checked.zshrc.This restores the Unix messages exactly as in v0.30.0 (checked by diffing every
adopt.diag.*code, argument list and English text against the tag). Windows says different sentences, so it gets its own codes rather than sharing one:adopt.diag.registry_envadopt.diag.registry_env.overridesadopt.diag.no_registry_envadopt.diag.no_registry_env.detailplus
adopt.diag.unset_env/adopt.diag.unset_env_machinefrom #138. lite will add translations for these six when it moves to the next core tag.EnvConflictnow carries the finding's title, fix, and the "overrides" detail, built by each platform branch;diagnosejust assembles them.Verification
cargo fmt --check,cargo clippy --all-targets -D warnings,cargo clippy -p tw-adopt --lib -D warnings,cargo test --workspacepass on macOS. Windows is covered by this repo's Windows CI job.🤖 Generated with Claude Code