Skip to content

feat(l10n): word the title from the shared messages - #15

Merged
enricobuehler merged 8 commits into
mainfrom
feat/l10n
Nov 7, 2026
Merged

enricobuehler merged 8 commits into
mainfrom
feat/l10n

Conversation

@enricobuehler

Copy link
Copy Markdown
Member

Pins punktfunk at c4d6fe182 (#2307 + #2308; pins.env and docs/pins.md follow). The copied reject sentences in core/errors.rs are deleted for the core's connect_reject_message; the title's own text reads from pf-l10n. The console's language comes from the system parameter (sceSystemServiceParamGetInt, bound in pf-ps5-sys) through a pure table to BCP-47 tags, then set_languages and ConsoleOptions.languages; unknown gives English. No setting.

Verified on the Mac: cargo fmt --check, cargo clippy --workspace --all-targets -- -D warnings, cargo test --workspace. Not run: task cross-check (needs the GPL payload SDK and the Skia bring-up); nothing on a console, so linking sceSystemServiceParamGetInt is unconfirmed.

Carries the messages crate. The kit words its own text from it and the core words the host's sentences, so this title reads both from one rev.

The pin alone does not build: the port follows in the next commits. scripts/pins.env and docs/pins.md follow Cargo.toml.
The core words a typed refusal now, so this title's copy of those sentences goes and connect_reject_message answers. The new ProfileLocked refusal needs no arm here.

The console options gain two fields. This title has no profile passwords to prompt for, and the language list stays empty until the console's language is read.
The console keeps its UI language as a system parameter. It reaches the kit's options and the process's message language before any text is read. A language the table does not know, or a read that fails, leaves English.

The setting is the console's own and never a title setting. The dev box and the fakes report no language.
The console texts the title drew itself come from pf-l10n: library and log errors, why a session ended, the controller chip, the present line, the wake and host-action notices, and two headings.

The ended-session wording follows the shared messages, so a lost connection now reads Connection lost. Four literals have no message and stay English: the stream start failure, the stopped picture, and the two power rows.
Sleep and Shut down are the host's own power actions, so the exit menu takes the host part's labels instead of two English literals of its own.
The client part already has the sentence for a stream that stops on its own; the title read its own English instead.
The wording decisions landed in the shared messages: reworded sentences, merged keys, complete German.
A launch the title refuses reads the client part's sentence; the cause stays in the log.
@enricobuehler
enricobuehler merged commit 1010ed9 into main Nov 7, 2026
2 checks passed
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.

1 participant