Keeps the deletion of the in-repo catalogs. #9144 added Scroll All
Windows translations to 26 of them; craft-i18n has not synced them yet,
so the label shows in English until the next re-sync and re-pin.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The guard skipped catalog-independent checks too; they now run in every
build and only the translated language waits for the catalogs. The
Arabic layout test reads no catalog and runs unguarded, as on main.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A registered language without a photocraft.tsv is listed apart instead of
showing 0% with every key missing, and a catalog that exists but can't be
read is an error naming the file rather than a silent gap.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- An @id translation counts as PhotoCraft's only when it is the text of
photocraft.tsv's own row, so a malformed own row craft-i18n skipped
can't let the shared catalog's row for that id through.
- app.language.sr still switches (to sr-latn), as saved prefs already do.
- With catalogs embedded, every registered language must have one.
- Hindi plural fixture covers n = 0 (one).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The embedded translations are MIT OR Apache-2.0; MIT needs the upstream
copyright line, so NOTICE carries it and ATTRIBUTION points there.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
COPY . . used to bring the in-repo catalogs; the builder now fetches the
pinned craft-i18n commit and builds with CRAFT_I18N_DIR and
CRAFT_I18N_REQUIRED=1, so the image is not English only.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Five tests unwrapped a non-English Lang (or fell back to the system
language) without craft-i18n; they now skip those languages via
needs_catalogs() and keep their English cases. Help search drops a silent
early return for the same guard.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Both tests walked src/i18n/*.tsv, which this branch deletes: the Layer Via
count would fail and the rasterize check passed on no files. They now read
the embedded catalogs, skip commented rows, and skip without craft-i18n.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Instead of turning Anti-alias off, the tests keep the default setup and
expect the reference application's measured results (#11776, #11779):
the selection ends at 381, Subtract at 219, Intersect runs 219-381.
Suggested by hectorviov on #12399.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
#12146 gives near-matching neighbours a soft fringe when Anti-alias is on.
The #11848 tests left Anti-alias at its default and expected exact column
bounds, so main's engine tests failed (381 instead of 380).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Review follow-up. A pixel counts as selected exactly when the selection's
coverage8 stores it nonzero: the least such coverage is found once by
bisecting the f32 bits, so the scan stays one compare per pixel.
The scan no longer costs more than the select.lasso it replaces: strips
start at 64 rows and double up to about 4 MP, and each strip is checked
in parallel, branch-free blocks (sequential on wasm). A corner-to-corner
line on 7360 x 4912 now takes 25-32 ms (was 65-73 ms; select.lasso took
23-27 ms). A lasso that selects is still answered after the first strip.
Adds a test for a lasso over pixel centres with Anti-alias off.
Review follow-up. The check rasterizes the lasso as select.lasso does
(polygon_window over the canvas, kept from 1/255 as the selection stores
it) instead of a half-pixel area threshold. A tiny anti-aliased lasso that
covers part of a pixel selects it as before, and a thin lasso between
pixel centres without anti-aliasing now warns instead of adding an empty
Lasso step. Only the lasso's bounds are rasterized, 64 rows at a time,
stopping at the first selected pixel.
The Don't show again test now checks what reaches the preference store
and that a restart reads it back.
With no selection, a Content-Aware Move drag that encloses no area (a
click or a straight line) now opens the alert "No pixels are selected."
with OK and "Don't show again", instead of silently running select.lasso
on an empty polygon. No History state is added and nothing is selected.
A drag that encloses an area, a drag with a selection, and the Lasso tool
keep their behaviour.
"Don't show again" is a small reusable addition to the app's Error alert
(dialogs/dont_show_again.rs): the alert carries the dialog-preference key
it sets, and closing it with the box ticked keeps {"skip": true} there.
Fixes#12192
Review on #7809 asked for coverage of imported .kys bindings. The set moves
Cmd+M to Levels and gives Fill Cmd+, as its second key; the menu bar shows
Cmd+M on Levels only, Minimize keeps Ctrl+Cmd+M, Settings yields Cmd+, and
the clash is reported. Fails without app_layout's dispatch ownership pass.
Co-Authored-By: andeecollard <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Cause: is_hard_rect read selection coverage over the selection's own content bounds in one buffer. After a transform those bounds can reach far past the canvas, while the patch-size guard only measures the on-canvas part, so a huge mostly-off-canvas selection could stall or exhaust memory.
Fix: is_hard_rect now calls is_hard_rect_within with MAX_PIXELS (the patch's own cap); bounds over the cap are not a hard rectangle and the selection stays in place. Otherwise coverage is scanned in 64-row bands, stopping at the first pixel below 1.0.
Verified: new test covers a limit below and at the pixel count and a hole in the third band; patch (25) and retouch (126) lib tests pass, clippy -D warnings and fmt clean.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Model-Effort: Opus 5.5 drove and briefed; Sonnet 5.5 wrote at medium
The engine turned every "mode": "clear" stroke on the Background into
Normal, so a held ~ painted the foreground there instead of erasing to
the background colour as on main. The options bar already turns a chosen
Clear off at the press, so the engine conversion was not needed: drop it
and keep the one check in clear_off_on_background.
A Background with locked pixels refuses the stroke, so a chosen Clear now
stays chosen there. The "Tool state machine" doc line is back on
tool_event.
Co-Authored-By: DuBearte <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>