Skip to content

feat(i18n): translate app and startup status messages - #923

Merged
LargeModGames merged 1 commit into
mainfrom
feat/l10n-zh-app-status
Oct 23, 2026
Merged

LargeModGames merged 1 commit into
mainfrom
feat/l10n-zh-app-status

Conversation

@kapok-4o

@kapok-4o kapok-4o commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The seventh Chinese translation PR (refs #726), the first of the status-message tables after the screens (#912): application feedback and startup messages in Simplified Chinese (zh-Hans) and Traditional Chinese with Taiwan wording (zh-Hant).

  • src/core/i18n/status_app.rs: all 122 application status strings, the toasts and status-bar lines for playback, devices, sources, likes, the visualizer and similar actions. Three of them came in on main after the series was drafted and are translated here too: the missing ALSA default device (fix(streaming): explain a missing ALSA default device #861), a link that fails to open in the browser, and a visualizer.yml problem.
  • src/core/i18n/status_runtime.rs: all 17 startup and routing strings, including native-streaming fallbacks, the Spotify login failure and the first-run global song counter prompt.
  • Templates keep their placeholders, so paths, device names, ports and error text are shown exactly as given. The song counter prompt keeps (Y/n) and the config keys in backticks, since those are what the user types or edits.
  • gui/src/bindings/strings.json is regenerated.

English, log lines and CLI diagnostics are unchanged.

Testing

macOS (aarch64), on top of 95e32f62:

  • cargo fmt --all --check: clean. cargo clippy --locked -- -D warnings: clean on slim (telemetry,tui) and default.
  • cargo test --locked: slim 1760 passed; default plus local-files,subsonic 2362 passed, 21 ignored; the gui feature set with the five sources 2178 passed, 30 ignored, and the regenerated gui/src/bindings/strings.json passes prettier --check.

Not run: the Linux-only all-sources leg (PipeWire), which CI covers.

Additional notes

A native-speaker review of the wording is welcome; any fix is a one-line change in the table.

Summary by CodeRabbit

  • New Features
    • Added Simplified Chinese and Traditional Chinese translations for application and runtime status messages.
    • Status messages without a translation continue to display in English.

Translate application actions, playback feedback and startup messages into both Chinese scripts, including the three status strings added on main since the series was drafted. English, log lines and CLI diagnostics keep their original wording.
@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
📥 Commits

Reviewing files that changed from the base of the PR and between 95e32f6 and 386d58d.

⛔ Files ignored due to path filters: 1
  • gui/src/bindings/strings.json is excluded by !gui/src/bindings/**
📒 Files selected for processing: 2
  • src/core/i18n/status_app.rs
  • src/core/i18n/status_runtime.rs

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

📝 Walkthrough

Simplified and Traditional Chinese translations were added to application and runtime status strings. Fields without explicit translations continue to use English fallback values.

Changes: Chinese status translations

Layer / File(s) Summary
Application and runtime status tables
src/core/i18n/status_app.rs, src/core/i18n/status_runtime.rs
The tables now provide Simplified and Traditional Chinese translations. Unspecified fields continue to use EN fallback values.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Merge Risk: ⚪ Minimal · up to 386d5

The translations are mergeable with no identified correctness, formatting, or runtime-contract risk.

Pre-merge checks: Passed 4
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title uses the allowed conventional-commit prefix feat(i18n):, concisely and imperatively describes the added translations, and matches the main changes.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
✨ Simplify code
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@LargeModGames
LargeModGames merged commit 9b99965 into main Oct 23, 2026
36 checks passed
@LargeModGames
LargeModGames deleted the feat/l10n-zh-app-status branch October 23, 2026 16:32
LargeModGames pushed a commit that referenced this pull request Oct 25, 2026
# Summary

The eighth Chinese translation PR (refs #726), the second status-message
table after the app and startup messages (#923): source and speaker
playback feedback in Simplified Chinese (`zh-Hans`) and Traditional
Chinese with Taiwan wording (`zh-Hant`).

- `src/core/i18n/status_infra.rs`: 142 of the table's 269 strings,
covering Cast and Spotify Connect speaker failures, native playback
recovery, and the status lines of the alternative sources (Local,
Subsonic, Radio, YouTube, Qobuz).
- The other 127 strings in this table are network, listening history and
DJ feedback; they are left on `..EN` here and come in the next PR.
- Raw provider details stay as given: templates keep their placeholders,
and product names, protocol fields (`clientID`, `accessToken`,
`getInfoResponse`), URIs and config keys such as `behavior.subsonic_url`
are not translated.
- `gui/src/bindings/strings.json` is regenerated.

English is unchanged. This PR does not depend on #923; whichever merges
second needs `strings.json` regenerated.

# Testing

macOS (aarch64), on top of `4962dcc3`:

- `cargo fmt --all --check`: clean. `cargo clippy --locked -- -D
warnings`: clean on slim (`telemetry,tui`) and default.
- `cargo test --locked`: slim 1771 passed; default plus
`local-files,subsonic` 2373 passed, 21 ignored; the gui feature set with
the five sources 2189 passed, 30 ignored.

Not run: the Linux-only `all-sources` leg (PipeWire), which CI covers.

# Additional notes

A native-speaker review of the wording is welcome; any fix is a one-line
change in the table.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Localization**
* Infrastructure status messages now display in Simplified and
Traditional Chinese, including messages about casting, speakers,
playback, accounts, queues, and local files.
* Status messages without a Chinese translation continue to use the
existing fallback text.
* This provides more Chinese-language coverage while keeping
untranslated messages available in the fallback language.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: 2570165831 <[email protected]>
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