Skip to content

feat(l10n): word the client from the monorepo's messages - #316

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

enricobuehler merged 9 commits into
mainfrom
feat/l10n

Conversation

@enricobuehler

Copy link
Copy Markdown
Member

Pins punktfunk at c4d6fe182 (#2307 + #2308): the kit brings its text with the pin, the copied reject sentences in core/errors.rs are gone for the core's own reject_message, and the client's remaining text reads from pf-l10n (console, client, common, host parts). The TV's UI language comes from Luna (settingsservice/getSystemSettings, localeInfo.locales.UI) and goes to pf_l10n::set_languages and ConsoleOptions.languages; no setting. Only English ships today.

Verified in Docker: cargo fmt --check, fresh-target task docker:lint, task docker:check, task docker:test (113). Not run on a TV: the Luna reply shape and the app's permission for it are unproven there.

The kit and the core now word their text through pf-l10n. The port
that takes the new shapes follows.
The kit's options gain languages and prompts_unlock, and the core gains
a ProfileLocked refusal. The refusal sentences now come from
pf_client_core::trust and pf-l10n, so this client's copies of them go.
This client has no password prompt, so a locked profile is dialled as
it stands.
The TV picks the language, so the client asks it once at start-up:
settingsservice getSystemSettings, localeInfo.locales.UI. The tag goes
to pf_l10n::set_languages before any text is read, and to the kit's
options for its own call.

A TV that does not answer leaves the list empty, which reads as
English.
Library errors, the log upload's status line, the wake and host-action
notices, the licenses heading and the HDR calibration refusal read from
the shared messages. The licenses screen no longer shows a debug error;
it is logged.

Log lines that carried a library error now print its Debug form, so a
log stays English whatever the TV's language.
The stats hint and lines, the exit hint, the stop dialog, the reconnect
and failure toasts, and why a session ended read from the shared
messages. A failed reconnect now reads as the dial's connect failure
(dial_connect_failed): the shared messages have no reconnect variant.
A step's label and instruction are message functions, read when drawn.
The hint keeps the glyphs and the remote's key names; the verbs come
from the shared messages.
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 wording decisions land in the shared messages; this client reads them.
The monorepo's reject text says "pair again", so the phrase test does too.
@enricobuehler
enricobuehler merged commit 10c9c13 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