mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-26 11:07:54 -06:00
Text a helper draws for a panel was handed to that helper as a bare literal, so the catalog lookup never happened and parts of the interface stayed English with a Chinese language chosen: - the Composition panel's toolbar tooltips - Choose grid and guide options, Toggle Transparency Grid, Toggle Mask and Shape Path Visibility, Region of Interest, Show Channel and Color Management Settings, Reset Exposure, Take Snapshot, Show Snapshot (hold); - the items of its four popups (grid and guides, resolution, magnification, channel) - Grid, Guides, Rulers, Proportional Grid, 3D Reference Axes, Full, Half, Third, Quarter, Custom..., Fit, Fit up to 100%, Colorize; - the solid dialog's "Affect all layers that use this solid" checkbox and its disabled hint "Only this layer uses this solid.". `tog` and `popup` now look the label up themselves, so every current and future call site is covered by one change each; the automation ids and labels stay English, as the rest of the panels keep them for scripts and tests. `resolution_label` composes its words from the catalog, so the closed resolution dropdown reads Chinese too, and the viewer's item now reuses the panel's existing "Title/action safe" row instead of a second spelling of the same concept. 21 rows join the Simplified catalog. The same keys join the Traditional one with the English source as their value: the tests require the two lists to match, and the Traditional wording is the translator's call rather than this change's. Tests: the row-completeness check now also accepts a row that a helper draws (its English source appears as a literal there), and a new check refuses a bare `Checkbox::new` / `RadioButton::new` label - the shape that hid the solid dialog, and the one the literal scan cannot see because the label is the call's second argument. This also corrects two Simplified rows #398 left wrong (`Channel` read 色版 in a Simplified catalog, `Motion Blur: {}` read 动态模糊 while the menu catalog's own Motion Blur is 运动模糊).