Repository navigation
feat(i18n): translate app and startup status messages - #923
Conversation
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.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
# 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]>
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 onmainafter 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 avisualizer.ymlproblem.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.(Y/n)and the config keys in backticks, since those are what the user types or edits.gui/src/bindings/strings.jsonis 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 pluslocal-files,subsonic2362 passed, 21 ignored; the gui feature set with the five sources 2178 passed, 30 ignored, and the regeneratedgui/src/bindings/strings.jsonpassesprettier --check.Not run: the Linux-only
all-sourcesleg (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