Skip to content

fix: localize the packaging toolchain and use English exceptions - #18

Merged
residua1 merged 4 commits into
mainfrom
fix/toolchain-language
Nov 2, 2026
Merged

residua1 merged 4 commits into
mainfrom
fix/toolchain-language

Conversation

@residua1

@residua1 residua1 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Packer usage, manifest/dependency validation, and MSBuild target errors are localized in Arabic, Chinese, English, French, Russian, and Spanish; targets call hosihikari-pack message so they share the packer resources.
  • Exceptions in the core and Hosihikari.Testing are English.
  • Missing-packer install corruption remains English because no localizer is available at that point.

Verification

  • Core assertions pass with the UI culture pinned to Chinese.
  • The packer prints Chinese on a Chinese locale; message MultiTargetFramework returns localized text.
  • Build smoke and the C# source template pack pass.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T10:42:41.772416Z 6f5e12a Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: de11532b44

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<Error Text="PackPlugin 需要单个目标框架;请用 dotnet build -t:PackPlugin -f &lt;tfm&gt; 指定。" />
<Error Condition="!Exists('$(HosihikariPackToolPath)')"
Text="Hosihikari packer not found: $(HosihikariPackToolPath)" />
<Exec Command="dotnet &quot;$(HosihikariPackToolPath)&quot; message MultiTargetFramework" />

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Update the smoke assertion for localized target errors

On an English-locale runner, this invocation now prints the English MultiTargetFramework resource, but tools/Build/smoke.sh still requires the Chinese substring 需要单个目标框架 and exits with an error otherwise. The Ubuntu job in .github/workflows/verify.yml runs that script without selecting a Chinese locale, so the packaging smoke check fails even when the target correctly rejects a multi-target build. Update the smoke test to select a deterministic language for the child process or make its assertion locale-independent.

AGENTS.md reference: AGENTS.md:L20-L20

Useful? React with 👍 / 👎.

@residua1

residua1 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 6f5e12a485

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@residua1
residua1 merged commit c7fbec4 into main Nov 2, 2026
5 checks passed
@residua1
residua1 deleted the fix/toolchain-language branch November 2, 2026 10:45
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