Repository navigation
Translate GPT validation reasons in partition notes - #31
Conversation
The note for a damaged GPT copy translated the copy name but left the reason (e.g. "missing signature") in English, since none of the gpt() error messages were in the locale catalogs. Translate the reason on its own and add the 12 partition inspection messages to every locale. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Summary
The Quick Drive Check note for a damaged GPT copy translated the copy name but left the failure reason in English (e.g.
GPT de secours · missing signature). None of thegpt()/inspect()error messages were in the locale catalogs, and the combined note can't match a catalog key.src/partition.rs: translate the reason separately from the copy name.locales/*.json: add the 12 partition inspection messages (missing signature,partition array checksum mismatch,unknown logical sector size, …) to all 10 locales. Key parity is kept (325 keys each).OS-supplied I/O errors (e.g. a short read) still pass through untranslated, since they aren't app strings.
Testing
cargo fmt --checkcleancargo test --no-fail-fastpasses locally. Theaudittest passes on a clean tree; it only fails locally when untracked review output (.codehawk/) sits in the working tree, which CI never has.🤖 Generated with Claude Code
Summary by CodeRabbit