Repository navigation
feat(l10n): word the client from the monorepo's messages - #316
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pins punktfunk at
c4d6fe182(#2307 + #2308): the kit brings its text with the pin, the copied reject sentences incore/errors.rsare gone for the core's ownreject_message, and the client's remaining text reads frompf-l10n(console,client,common,hostparts). The TV's UI language comes from Luna (settingsservice/getSystemSettings,localeInfo.locales.UI) and goes topf_l10n::set_languagesandConsoleOptions.languages; no setting. Only English ships today.Verified in Docker:
cargo fmt --check, fresh-targettask 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.