Skip to content

Locales: French UI language - #636

Merged
GLinnik21 merged 3 commits into
plxnative:mainfrom
Yagz:feat/french-locale-upstream
Oct 13, 2026
Merged

GLinnik21 merged 3 commits into
plxnative:mainfrom
Yagz:feat/french-locale-upstream

Conversation

@Yagz

@Yagz Yagz commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds French (fr, shown as "Français") as a UI language, next to en, es and be.

  • locales/fr/{core,widgets,settings,browse}.json: all 988 keys, with one / many / other plurals (French CLDR rules). The wording translates what a string means rather than word for word.
  • Runtime: Preference::Fr and Language::Fr, fr-* locale resolution (Latin script), fr-FR regional formatting, a "Français" row in Settings → Language, an entry in i18n::SHIPPED.
  • Catalog compiler: 4 catalogs instead of 3, French plural requirements added and tested.
  • Strings that sit in fixed slots were shortened to fit; the text-fit tests measure them with the TV's glyph widths and now cover French.
  • Existing tests extended to French; docs updated (docs/localization.md, docs/pms-api.md, docs/lg-self-checklist.md, docs/distribution.md, rust-modules/ui/src/CLAUDE.md).

The launcher metadata (pkg/resources/fr/appinfo.json) was already there, and both bundled font faces cover every non-ASCII character used by the French catalogs.

Build budget

No change to ci/build-budgets.json. On a fork run of this branch, binary_bytes is 12,512,580 against the 13,800,000 limit (your main measures 12,434,756), so the French catalogs cost about 78 KB.

Verification

  • CI on a fork run of this exact commit: host lint, unit suites (default features and hostsim), harness, Python/shell/C gates and the ARMv7 cross-build with the size budget and ELF assertions all pass. The simulator jobs only run on a pull request and have not run on this commit.
  • Installed the CI-built .ipk on a real TV and checked the French UI there: glyph rendering, text fit and wording (done by me as the contributor).
  • The translation was written by Claude and reviewed by me on the TV, not by another native speaker, so it is open to the language review docs/localization.md mentions.

🤖 Generated with Claude Code

@GLinnik21 GLinnik21 added the help wanted Extra attention is needed label Oct 13, 2026 — with Claude

Copy link
Copy Markdown
Collaborator

Thanks for the French translation and for the thorough text-fit work!

I only merge locales that a native speaker has reviewed. Are you a native French speaker, or do you know someone who could read through locales/fr/*.json? They don't need to build anything: the catalogs plus a few screenshots of the UI (simulator with PLXNATIVE_LOCALE=fr, or your TV) are enough to judge the wording in place. I've added help wanted in the meantime, and once a native speaker has looked it over I'll land it. I wrote the policy down in docs/localization.md (#652).


Generated by Claude Code

@Yagz

Yagz commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

Hi, thanks for the review!

Yes, I'm a native French speaker. I wrote and reviewed the wording myself, and I've been running this build on my own LG TV.

I rendered the screens with make screenshots' demo library and PLXNATIVE_LOCALE=fr. After that pass I pushed one fix (15ec5d5): the episode abbreviation is now E instead of É (S1 · E92).

Note: the English text in these captures comes from the mock server, not from the catalogs: synopses, genres, the "Movies" section name, the section's "Continue Watching" shelf, the sort options ("Title", "Date Added"…) and the failure detail line. A real PMS receives X-Plex-Language: fr and returns its own text for those; I checked on my TV against my own server, and they come back in French there.

search ux-detail ux-home-hero ux-item-menu ux-library-sort ux-signin

Yagz and others added 2 commits October 13, 2026 18:54
Adds French (fr, shown as "Français") next to en, es and be.

- locales/fr/{core,widgets,settings,browse}.json carry all 988 keys with the
  one / many / other plural forms of French CLDR. The wording says what a
  string means rather than translating it word for word (captions and SDH
  descriptions, forced Direct Play messages, unencrypted-connection and
  session errors, player statuses). Switches stay "On / Off" and the SDH
  badge stays "SME".
- Runtime: Preference::Fr and Language::Fr, fr-* locale resolution (Latin
  script), fr-FR regional formatting, a "Français" row in Settings > Language
  and an entry in i18n::SHIPPED.
- The catalog compiler builds four catalogs instead of three and checks the
  French plural requirements.
- Strings that sit in fixed slots were shortened to fit; the text-fit tests
  measure them with the TV's glyph widths and now cover French.
- Existing tests extended to French; docs/localization.md, docs/pms-api.md,
  docs/lg-self-checklist.md, docs/distribution.md and
  rust-modules/ui/src/CLAUDE.md updated.

Verified: CI green on the PR (host lint and unit suites including hostsim,
ARMv7 cross-build with the size budget and ELF assertions, macOS / Linux /
Windows simulators), and the CI-built .ipk installed and checked by the owner
on a real TV (glyph rendering, text fit, wording). Not reviewed by a native
speaker other than the owner; the translation was written by Claude.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
A native reviewer reads "É92" as wrong: the French short form of
"épisode" in an S1 · E92 label is a plain capital E.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@GLinnik21

Copy link
Copy Markdown
Collaborator

Great! Thank you!

@GLinnik21

Copy link
Copy Markdown
Collaborator

Please check the CI and we're ready to land it

Five consent-preview playback-error fields, the library file name placeholder,
and the attempted-delivery and Continue Watching copy the English changed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Yagz
Yagz force-pushed the feat/french-locale-upstream branch from 15ec5d5 to d83d419 Compare October 13, 2026 17:14
@GLinnik21
GLinnik21 merged commit 9d2777f into plxnative:main Oct 13, 2026
11 checks passed
@Yagz
Yagz deleted the feat/french-locale-upstream branch October 14, 2026 07:53
GLinnik21 added a commit to Yagz/plx-native that referenced this pull request Oct 14, 2026
The caption-wrap commit dropped Preference::Fr from the failure-action label,
widgets jail help and forced-verdict fit tests (added in plxnative#636). Put it back.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

help wanted Extra attention is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants