Skip to content

Add Dutch (nl) UI language - #1160

Merged
GLinnik21 merged 4 commits into
plxnative:mainfrom
BamischijfNL:add-dutch-localization
Oct 30, 2026
Merged

GLinnik21 merged 4 commits into
plxnative:mainfrom
BamischijfNL:add-dutch-localization

Conversation

@BamischijfNL

Copy link
Copy Markdown
Contributor

Add Dutch (nl) UI language

Adds Dutch as a UI language, following docs/localization.md → Adding a language.

What changed

  • locales/nl/: all 12 catalogs. Every translatable source key is covered (889 keys); English-only translate: false keys are left out.
  • locales/languages.json: nl, native name Nederlands, region nl-NL, script Latn, plurals one/other, row 12.
  • LocaleContext::month_day (platform/src/i18n/mod.rs): NL_MEDIUM / NL_LONG (CLDR nl format months, e.g. 12 mrt / 12 maart), with tests for both widths. There are also tests for Dutch plural selection and for system-locale resolution (nl, nl-NL, nl_NL.UTF-8, nl-BE).
  • pkg/resources/nl/appinfo.json already existed, so it is unchanged.
  • Tests that pin the language count or list were updated from 10 to 11 and given nl: the HUD lint goldens, hud_cli, and the subtitle-mode read-out table in preferences_text_fit_tests.rs. collections_page_tests now exempts nl from the "count is not English" check, as it already did for fr, because Dutch also writes "7 films". One existing test used nl-NL as an example of an unsupported locale; it now uses sv-SE.

Wording choices

The app uses informal "je", as Plex and most Dutch streaming apps do. The main terms are:

English Dutch
Library Bibliotheek
TV Shows Series
Episode / Season Aflevering / Seizoen
Watchlist Kijklijst
Continue Watching / On Deck Verder kijken
Collection Collectie
Forced subtitles Geforceerde ondertitels
Sign in Inloggen

"Direct Play" and "Direct Stream" stay in English, as in the Dutch Plex apps.

Consent and privacy texts are translated in full and keep their exact meaning. Brand names, URLs and protocol identifiers are not translated.

How it was checked

  • cargo test --lib for plx_platform, plx_ui, plx_data, plx_appkit and plx_screens all pass, including the catalog contract, glyph coverage and the TV glyph-width fit tests. Every nl string that overflowed a fixed slot was shortened until those tests passed.
  • ci/check-language-lists.py passes.
  • These runs used the stable 1.97 toolchain, because 1.99.1 could not be downloaded in my environment. Please let CI run make check on the pinned toolchain. Unrelated TLS and storage tests in plx_session and plxnative-modules failed in that sandbox; nothing in this PR touches them.
  • (TODO: simulator screenshots with PLXNATIVE_LOCALE=nl: Home, detail, Settings, privacy/consent, player menus.)

Translation review

The first draft was AI-assisted. All 889 strings were then read and approved by myself. I'm a native Dutch speaker and have professional experience as a UX writer (copywriter for software interfaces). I did a side-by-side EN/NL review. Changes I made:

  • Smoother wording in the unencrypted-connection prompts and several sign-in and search lines.
  • "Kijklijst" is capitalised throughout as the feature name.
  • Forced-subtitle choices became "(Niet-)geforceerde ondertitels prefereren". The short read-outs became "Liever (niet-)geforceerd", so they fit the 342 px value column.
  • "Spoelinterval" (skip interval); "Aftellen naar volgende" (Up Next countdown, kept identical in its explanation); "Ondertiteling {duration} later/eerder".
  • SDH → "ODS" (Ondertitels voor Doven en Slechthorenden), with the explanation in browse.detail.sdh changed to match.
  • Delete confirmation: the button is "Wissen", matching the question "Alle lokale gegevens wissen?".

@BamischijfNL

Copy link
Copy Markdown
Contributor Author

A couple of screenshots previewing the nl locale in the simulator:
Scherm­afbeelding 2026-10-30 om 13 52 09
Scherm­afbeelding 2026-10-30 om 13 54 27
Scherm­afbeelding 2026-10-30 om 13 54 59

@BamischijfNL
BamischijfNL marked this pull request as ready for review October 30, 2026 13:58
@GLinnik21
GLinnik21 enabled auto-merge (squash) October 30, 2026 16:27
@GLinnik21
GLinnik21 disabled auto-merge October 30, 2026 16:29
@GLinnik21
GLinnik21 enabled auto-merge (squash) October 30, 2026 16:29
@BamischijfNL

Copy link
Copy Markdown
Contributor Author

@GLinnik21 CI fails on the binary size budget: 15,214,216 bytes vs. the 15,180,000 limit (baseline 13,799,944 from 2026-10-18). The Dutch catalog adds roughly 50–80 KB (about 46 KB of strings plus the generated accessors), so main itself appears to be within a few dozen KB of the limit already. Any further addition would hit this too.

Would you like me to raise the budget in this PR (new baseline 15,214,216, 10% headroom → 16,740,000), or would you rather re-baseline it separately on main?

@GLinnik21

Copy link
Copy Markdown
Collaborator

Yes I would

GLinnik21 and others added 3 commits October 30, 2026 21:34
main's plxnative#1154 raised the binary size budget (limit 17,000,000), which is what this branch's cross-build needed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…counts plxnative#1154 pinned

The frozen goldens (classic-geometry 32, classic-title-right 8, census-classic 148
rows per language) were written from the hand-written classic layout, which plxnative#1154 then
deleted, so main has no generator for a language that arrives afterwards. The nl rows
come from that hand-written side at edd3d0d (the last commit before its deletion,
both sides live) with the Dutch catalog applied; the generator reproduced all 320, 84
and 1480 existing lines byte for byte before the nl rows were taken. At edd3d0d the
compile and the renderer agree with the hand-written side for nl in all three tests.

The four tests still iterate every SHIPPED language with their count asserts intact.
The language-count pins and prose the new language made false now say eleven (11 / 352
cases): loaded.rs, compile_tests.rs, docs/hud-plugins.md, the two lint_size test names,
the month-table doc comment, and the hud_cli --lang usage pin.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
docs/localization.md named its languages in five closed lists (the intro, the
locales/<tag> directories, the plural categories, the PLXNATIVE_LOCALE values and the
Settings > Language sentence) and none had Dutch; each now does, with Dutch among the
one/other languages as locales/languages.json declares. docs/lg-self-checklist.md said
its list was the languages the registry holds and lacked Polish and Dutch. docs/hud-plugins.md:
a failed package everywhere would punish ten languages, not nine.

Three fmt tests claimed every shipped language but looped over a hand-written eight tags,
which left ru and pl unchecked; they iterate i18n::SHIPPED, as docs/localization.md says
each-language loops do, and pass in all eleven.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@GLinnik21
GLinnik21 merged commit 11f714d into plxnative:main Oct 30, 2026
13 checks passed
@GLinnik21

Copy link
Copy Markdown
Collaborator

Thanks!

icepin7 pushed a commit to icepin7/plx-native that referenced this pull request Oct 31, 2026
… and settings

Upstream's Dutch UI language (plxnative#1160) reached seerr with origin/seerr's merge of the
fork's main, and locales/nl held none of the 90 Seerr keys, so the catalog build
refused every gate. The four Seerr catalog files now have their Dutch, in the voice
the rest of locales/nl uses (je, Inloggen, Opnieuw proberen, tv); Seerr and Plex stay
product names and the example address stays the documentation one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
GLinnik21 added a commit to MozgOFF/plx-native that referenced this pull request Oct 31, 2026
main's plxnative#1160 registered nl after this branch's base, so the two
settings.playback.dolby_vision keys the PR adds to en were missing from nl.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
GLinnik21 added a commit that referenced this pull request Nov 1, 2026
Two textual conflicts, both resolved by keeping both sides:
- ui/src/cards/mod.rs: the `card_row` re-export keeps this branch's `Rim` and main's `SortValue` and
  `SORT_VALUE_*` items.
- screens/src/player/mod.rs: `row_primary` keeps main's `pub` and its doc (the FocusEngine's re-seat
  lands on it) with this branch's body, which reads the discs through `eff_slot` and the open sections.

Main's BACK-dismisses-an-offer arm (#1161, #1187) sits below the section arm of the BACK ladder, so a BACK
over an open section closes the section and never retires the offer under it; a test pins that for the
modal and the inline policy. Dutch (#1160) is covered by the SHIPPED-driven tests and goldens.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

2 participants