Skip to content

Add Catalan localization - #1230

Merged
GLinnik21 merged 20 commits into
plxnative:mainfrom
seergi893:traduccio-catala
Nov 5, 2026
Merged

GLinnik21 merged 20 commits into
plxnative:mainfrom
seergi893:traduccio-catala

Conversation

@seergi893

@seergi893 seergi893 commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add Catalan (ca) localization across all 14 translation files.
  • Register Catalan in the language catalog.
  • Add Catalan month names and date formatting support.
  • Include tests for Catalan date and month formatting.

Validation

  • Validated all 14 Catalan JSON files.
  • Verified that all translation keys match the Spanish locale.
  • Checked the Catalan language registration and date formatting implementation.

Language
I'm a native Catalan speaker from Catalonia, and I've reviewed the translations to ensure they sound natural and appropriate for Catalan as spoken in Catalonia.

Thanks for considering this contribution!

seergi893 and others added 3 commits November 4, 2026 12:05
Add Catalan localization
plxnative#1229)

`make check` hung for about an hour, twice. A `sample` of the stuck plx_plex test binary showed
`http::tests::a_completed_500_cannot_become_a_deadline_after_the_caller_crosses_the_boundary`
blocked in `server.join()`, and its server thread blocked for ever in `TcpListener::accept()`.

The test gives `request_until_outcome` a 250 ms caller deadline. When the host is loaded (the
python half of `make check` runs beside the cargo half) the client can reach that deadline before
it ever connects, and `request_with` returns `Deadline` WITHOUT dialing once the clock has passed.
Nobody connects, so the fixture's blocking `accept()` never returns and the joiner never
returns. A run that should have failed, or never have depended on the clock at all, hung the
whole suite instead. Reproduced by giving that test an already-expired deadline: it ran 130 s
until killed, with `join` in the test thread and `accept` in the server thread.

Two fixes, both systematic:

* `plx_base::testnet` (the repo's one fixture accept, which `plx_plex` already used) gains the
  bounded forms: `accept_within(listener, wait)` returns a TimedOut error naming the listener, and
  `serve_once(listener, wait, serve)` spawns the server thread and panics with "its client never
  arrived" when nobody connects, so the test's `join()` fails after `CLIENT_WAIT` (10 s) instead
  of blocking. Every hand-written blocking `accept()` test server in plx_plex (http.rs,
  plex/notify.rs, plex/client.rs, plex/collections.rs, plex/transcoder.rs; the last four are
  `devtriggers` tests, which `make test-crate` does not enable) now goes through them, and keeps
  the Darwin blocking-socket fix `testnet::accept` exists for. The two stop-flag pollers
  in the pin tests get a `CLIENT_WAIT` bound too (an assertion failing before `stop` was set left
  their thread scope joining them for ever); the "must not dial" asserts were never servers and
  are unchanged.
* The deadline tests no longer race the scheduler. The 250 ms and 80 ms deadlines become
  `testnet::LOOPBACK_DEADLINE` (2 s): far above any delay a loaded host adds to a millisecond
  exchange, and under plx_net's 15 s inactivity budget, past which `request_until_outcome` would
  read the expiry as the transport's liveness rather than the caller's deadline. Each test keeps
  its intent: the completed 500 and the reset are decided before the boundary and read after it
  (`testnet::cross`, now shared with client.rs's copy, sleeps out the 2 s), and the silent peer is
  still stopped by the caller's timer.

Regression tests: `testnet`'s own (no client gives an error / a failed join within the wait, the
accepted socket blocks, `cross`), and `an_expired_caller_deadline_is_a_deadline_without_dialing_
and_a_bounded_accept_says_so` in http.rs, which pins the precheck behind the hang.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add Browse HUDs, native preview scenes, package details and separate Install and Use actions to Player HUD settings. Reuse the shared settings forms, focus engine, press protocol, ancestor navigation and image cache. Keep the left preview display-only.

Drive registry discovery through a Sans-IO catalog with conditional daily refresh, durable retry backoff, compatibility checks, exact package hashes and revocation handling. Keep preview fetches credential-free and content-addressed. Gate stable gallery access on the signed-index follow-up.

Cover real remote and pointer preview activation and keep recorded route layouts from capturing the GL framebuffer.
@GLinnik21
GLinnik21 enabled auto-merge (squash) November 4, 2026 18:25
GLinnik21 and others added 4 commits November 4, 2026 21:31
…ive#1233)

ci/test_disk_preflight.py passed the real checkout as --root while the tree
under test lived in the fixture's temp dir. With TMPDIR on another volume
than the checkout, the tree read as cross-volume and the guard test failed.
The fixture now makes a stand-in checkout beside the tree, on its volume and
outside the roots' common parent, and asserts the shared volume.
tools/disk-budget.py is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…plxnative#1232)

plx_net's test servers blocked in TcpListener::accept() for a client the
test under them might never send. A loaded host that carried a short caller
deadline past before the opener's first connect left the accept with no
client, and the join that waited on it hung `make check` instead of failing
it, as plx_plex's did before plxnative#1229.

- plx_base::testnet::accept_client(listener, wait) is a bounded accept that
  panics "its client never arrived"; serve_once accepts through it.
- Every spawned or scoped blocking-accept server in plx_net goes through
  testnet, and the request reads in the scope servers and one-shot fixtures
  are bounded too, so a panicking client cannot park its server in read.
- The two deadlines that raced the first dial (80 ms and 300 ms) use
  LOOPBACK_DEADLINE; the slice-count bound is rescaled to the span waited.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…r pages (plxnative#1234)

The playurl dev trigger could not start playback on a boot with no stored
session: the autoplay arm excluded the Login and Profiles routes, and even
when a Player push was pending, follow_auth_landing re-rooted the stack to
Login and withdrew it.

- dev::scenarios: the arm's condition is autoplay_arm_due. playurl may fire
  from Login and Profiles; autoplay/playidx keep the old guard, and the
  Player route is never due. The 2000 ms delay and the one-shot latch are
  unchanged, and the playurl answer is latched at the first eligible frame.
- app::bridge: player_arriving answers whether the Player is the page the
  stack is about to land on. follow_auth_landing returns early while it is,
  before it takes the session handoff, and enter_player's already_up uses
  the same helper.
- Regression tests: autoplay_arm_due_tests and a session-picker rig test
  that runs the production follow_auth_landing over a real Dispatcher; all
  three failed before the fix.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
auto-merge was automatically disabled November 4, 2026 20:33

Head branch was pushed to by a user without write access

seergi893 and others added 11 commits November 4, 2026 21:33
…lxnative#1235)

The macOS simulator's `player` screenshot scene failed 4-5 runs in 10. The
settle rule captures once nothing is pending, the screen is 2 s old and it has
been quiet for 1.5 s, and `ScreenshotArms::pending()` held the capture for the
scene's other arms but not for `autopause`, which cannot arm before 6 s and
whose Pause lands about 14 s in. A quiet 1.5 s while the player was still
loading captured a frame with no picture and no pause.

- `ScreenshotArms` gains an `autopause` `PauseDebt` (Unread, Owed, Paid),
  counted in `pending()` and kept by `autopause_debt` from `each_frame`. An
  unread trigger counts as owed, as an unread `clockstop` does.
- A Pause that never lands gives up after 60 s with its own log line, so the
  scene fails on its `expect` lines instead of waiting for ever.
- `pause_edges_left` is a pure function with its own test, and two more tests
  pin the hold and the give-up; removing either hold clause fails one.

An interleaved A/B with the binaries on the internal SSD: 6/10 and 5/10 passes
before on two trees, 10/10 after.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Three unit tests made the local `make check` red in most runs, from timing
and shared-state races in the tests, not the code under them.

- plx_media `hls_reserve_tests`: the tests that assert a live transport
  watchdog ran it on a 50 ms wall clock, so any 50 ms stall reported
  `transport_due`. They use `LIVENESS_NEVER_DUE`; a stall-injected twin pins
  the projection under a real stall.
- plx_media `stall_guard_tests`: a hold published from a second thread could
  lose to the reader's next 100 ms ask. `observe::on_nth_continue` runs the
  change on the reading thread between one answer and the next ask; the
  open-leg and NotReady waits use it too.
- plx_plex `arm_candidate_assembly_puts_the_canonical_wrapper_first` read
  the process-global persistent state root twice without `testlock::serial()`;
  it takes the lock like every redirecting writer.

The `observe` seam is cfg(test | test-support); no production code changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e#1238)

Cycle equivalent registry preview images within the selected HUD scene and language. Both the display-only Settings image and full-size preview hold for six seconds and dissolve for 1.2 seconds. Hidden or suspended pages pause; single-image entries stay static and slow images preserve the current frame.

Use the shared adaptive glass track and glass Back control in the full-size preview. Discover current backdrop consumers before recording any required surface prefix, keeping the existing fast path for ordinary Settings and frozen menus. Extend the shared motion Ramp for quiet deadlines and pause/resume, and blend textures before parent opacity and card coverage.

Consume existing content-addressed catalog entries without changing the HUD DSL, initial 1.0 bundle format, plugin versions or package archive bytes.
The Player HUD gallery used to fetch a bare `index.json` and trust whatever the origin served, so it was kept off in the stable flavour. It now fetches `index.signed`. That file is one compact header line, `{"format":1,"key":"<16 hex>","sig":"<128 hex>"}`, then a newline, then the exact bytes of the `index.json` published in the same deploy. The gallery shows and caches an index only when it passes every check. The header must be strict. The key id must be one of the two compiled-in keys: the primary `4fe9b53b661ff2e8` or the standby `437641d803b6932b`. The Ed25519 signature must verify strictly over those bytes, the index must parse, and it must carry a `serial` no lower than the cached one. A refusal names its cause (`malformed`, `unknown-key`, `bad-signature`, `index`, `no-serial` or `rollback`) in one log line, keeps the cached index and counts as a failed refresh under the daily backoff.

The cache now stores the whole signed body and verifies it again on every load. A cache written by the previous build fails that check and is dropped with its ETag, so the next request is unconditional. Verification runs on the network and storage workers, never on the UI thread. The catalog machine still does no IO: it returns a refusal as an effect, and the runner logs it.

With the index signed, both stable gates are gone. `gallery_enabled` is deleted from the settings model and its Bridge projection, and so is the copy of the same condition on the Bridge's `HudCmd::Open` arm, which kept stable from ever fetching the catalog. A regression test fails under the old condition.

Verification uses `ed25519-compact` 2.6.0, pinned exactly, with `default-features = false` and the `opt_size` feature. It is pure Rust with no dependencies, no build script and no FFI. The armv7 binary grows by 32,768 bytes. `docs/hud-plugins.md` describes the trust model and the key rotation plan. On the TV, the build dropped the old cache, accepted the live registry's signed index, listed its packages, and verified its cache again after a relaunch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ser (plxnative#1240)

`fuzz/` is a `cargo fuzz` package with its own workspace, outside `rust-modules`, so no shipped `Cargo.toml` names it and it changes no shipped build. It puts a libFuzzer target on every parser a HUD package or the registry reaches:
- admission (`admit`);
- the 1.0 bundle and archive readers;
- the SVG subset check in front of nanosvg;
- the typed address parser;
- the registry index parser;
- the signed-index verifier and the cache record.

Each target asserts what its code promises: no panic and no unbounded allocation, an admitted SVG stays inside the policy, and the verifier refuses every input under the shipped keys. The signed-index targets sign only with the TEST ONLY seeds the catalog tests use.

`make fuzz-hud [T=<target>] [SECS=60]` runs one target or all of them, one after another, on the nightly toolchain, in its own tree `rust-modules/target-fuzz`. `tools/fuzz-hud.py` copies the seeds from fixtures the repository already has and writes a JSON-key dictionary. The target is in `DISK_ENTRIES` and `SIDE_EFFECT_FREE`. `tools/build-gc.sh` treats the generated files as derived, but never `fuzz/artifacts/`, since a crash input is a finding. `.github/workflows/fuzz.yml` builds every target on a pinned nightly for a PR that touches the fuzz package or a parser it covers, runs each for 10 s, and runs a longer pass weekly. It is not a required check.

Every target ran 300 s locally, about 8 million executions in all, with no crash, timeout or out-of-memory. The one failure was in the harness: the SVG target scanned inside a skipped `<?xml ?>` declaration. It was fixed, and its input is kept as a seed.

This also exempts `ed25519-compact` 2.6.0's `src/pem.rs` from the source bundle's credential scan. The file holds the crate's unit-test PEM keys, and since plxnative#1239 added the crate, the scan refused it and failed the nightly bundle. The exemption covers that exact file at an exact sha256, as for the existing `pem` and `rcgen` entries, and a test pins it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…HUD on the TV (plxnative#1241)

`tools/hud-dev` serves a HUD under development to the TV. It is stdlib Python and runs on macOS's `/usr/bin/python3`, the interpreter the firewall lets accept LAN connections by default. Given a source directory or a `.plxhud`, it watches the files and runs the simulator's own `--hud-lint` over every change. It packs a clean build with the shared helpers in `tools/hud_package.py` and serves it over HTTP. It prints the `http://` address on this machine's private LAN address for the TV's "Install from address" row, plus the steps on the TV. A build with findings is not served: the tool prints the findings and keeps serving the last clean build.

The store compares versions as numeric MAJOR.MINOR.PATCH, so every served build raises the patch to the seconds since 2026-01-01, never below the author's own version. The TV's existing "a higher version replaces" rule then takes each build. The catch is that a dev install outranks the author's later registry release. The tool, `site/hud/AUTHORING.md` and `docs/hud-plugins.md` therefore say to remove the dev install, with the Player HUD page's existing Remove row, before installing the published one.

On the TV, a package installed from a development source (`http://` on a private LAN address) now records that address in `installed.json` as `from`. No other source records one, and an address on a record that could not have written it is dropped on read. Play on that package's row in Settings > Player HUD sends the same fetch as the address row. The author sees the next build through the same offer, prompt and confirmation, so nothing is installed without OK. The key goes through the shared input classifier, fires on a fresh press only, and only while no fetch or package work is running. On any other row Play stays unhandled. No row and no string is added. A build older than this one reads an index that holds a `from` as read-only and installs elsewhere instead of rewriting it.

`tests/test_hud_dev.py` covers the tool on Python 3.9 and 3.13. The store and screen tests cover recording, reading back, dropping, and the key on dev and non-dev rows. On the television, a dev-source install was seeded by hand, because the remote harness cannot type into the address field. Play on its row fetched the next `hud-dev` build and showed the offer as a development source. Install replaced the package and the store kept the address. Remove took it out, and Play on Classic did nothing.

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

Copy link
Copy Markdown
Contributor Author

All changes are ready and validated. Just waiting for workflow approvals when you have a moment!

@GLinnik21
GLinnik21 enabled auto-merge (squash) November 5, 2026 15:06
auto-merge was automatically disabled November 5, 2026 15:37

Head branch was pushed to by a user without write access

@seergi893

Copy link
Copy Markdown
Contributor Author

I've pushed the fixes: merged the latest main, added the missing Catalan strings, translated hud_controls.json and replaced the hand-written language lists with SHIPPED. The workflows need approval again to run. Thanks!

@GLinnik21
GLinnik21 enabled auto-merge (squash) November 5, 2026 15:50
@GLinnik21
GLinnik21 merged commit e1ea6e2 into plxnative:main Nov 5, 2026
18 checks passed
@GLinnik21

Copy link
Copy Markdown
Collaborator

Thanks

GLinnik21 added a commit that referenced this pull request Nov 6, 2026
`tools/hud_preview.py` refuses to plan a HUD preview matrix when the simulator's languages differ from its `LONG_TITLES` corpus, one authored long chapter title per shipped language for the `long-title-<lang>` states. Catalan shipped in #1230 without an entry, so the matrix stopped planning on main. The HUD registry renders with an older pinned simulator and would have broken when that pin moved past #1230.

`LONG_TITLES` gains the Catalan sentence, the same one the other languages carry. The tests' fake inspection now reads the shipped languages from `locales/languages.json`, the file `i18n::SHIPPED` is generated from, instead of from the corpus itself, which is why the gap went unseen. `test_every_shipped_language_has_its_authored_long_title` fails a language that ships without its sentence.

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