Repository navigation
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
The panel behind Window → Crop & Rotate (C) has two sections, Crop and
Geometry (panels/right/crop.rs), and the code already calls it
"Crop & Geometry" (menus/run.rs, parity checklist KEY-GUIDEDUPRIGHT).
Rename the menu item and the tool strip tooltip. The catalogs follow
the new key and keep their current translations, so no language falls
back to English; only German gets the new name ("Zuschneiden und
Geometrie").
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
e376f95 to
932961f
Compare
FredApps
left a comment
There was a problem hiding this comment.
ReviewerA — source-read COMMENT (not an approval)
I read the visible hunks: the crop panel's label key changes from "Crop & Rotate" to "Crop & Geometry" in the locale files. In the Czech file the keys changed but the values are still the old "Oříznout a otočit" (Crop & Rotate), while German was updated to "Zuschneiden und Geometrie". Please update every locale's text (or leave a note that the others fall back to the old wording), and check no code path still looks up the old key.
I ran nothing and have no exact-head CI result for this PR, so this is not an approval. Where a diff was long I read its code hunks rather than every generated or documentation line.
Status: waiting_author.
|
Thanks! Keeping the existing translations is intentional (see "Not in this PR" in the description): every catalog moves to the new key but keeps its current text, so no language falls back to English. I only changed German, which I can check as a native speaker; the other translators may want to adopt the new name later. No code path looks up the old key anymore — |
wanikhawar
left a comment
There was a problem hiding this comment.
The rename changes the Crop & Rotate and Crop & Rotate (C) keys in 22 locale files but keeps the old translations, e.g. Czech "Oříznout a otočit" and Spanish "Recortar y rotar", which still say "rotate". Rule 16 also sends translations to storytold/craft-i18n, not crates/ui-egui/locales/. Please change the English key and strings only, and let craft-i18n follow.
Review feedback and AGENTS.md rule 16: a feature PR changes English only, so the locale files are back to what main has. Until craft-i18n has rows for the new keys, the menu item and the tooltip show in English. Also rename the label in widgets/icon_button_tests.rs, new on main.
|
Thanks, done: the PR now changes the English key and strings only, and the catalogs are as on |
The crop panel is named after its two sections, Crop and Geometry.
What the user saw: Window → Crop & Rotate (C) opens a panel with the sections Crop and Geometry, so the name undersells it. The code already calls it "Crop & Geometry" (
menus/run.rs, KEY-GUIDEDUPRIGHT in the parity checklist).What changed: the menu item, the tool strip tooltip, the tests that look the button up by name, the user guide and the KEY-CROP row of the parity checklist. English only (AGENTS.md rule 16): the catalogs are untouched, so other languages show the English name until they have rows for the new keys. German: storytold/craft-i18n#619.
Tests:
tool_strip_and_toolbar_buttons_are_named_by_label_with_the_shortcut_as_descriptionand the tool strip tests inwidgets/icon_button_tests.rslook for the new name.Verification (Linux, local):
cargo xtask ci --quickpassed fmt, clippy and heif. In its test step, 8 tests inlightcraft-ui-egui --libfailed, and they fail the same way without this change: 7 pass withLC_ALL=en_US.UTF-8(my system uses a decimal comma),filmstrip_stack_badge_expands_and_collapses_the_stackfails either way. parity, layers, assets, roots and wasm passed. Not checked in the running app since the merge ofmain.Summary by CodeRabbit