MENU-BAR: the cycle commands' catalog paths and the Japanese menu labels match the menus

ui.menu.list reads the command registry, which still put View > Mask Overlay's two cycle commands (Cycle Mask Overlay Mode, Cycle Mask Overlay Color) directly under View, where the menu bar no longer shows them. The Japanese hint under Settings > Display names the menu labels Loupe Overlay and View Options…, which ja.json had no entries for, so the menu showed them in English; it has them now, worded as the hint words them.
This commit is contained in:
Nathaniel Ledford committed 2026-10-28 08:44:22 -04:00
1 parent a970c8b1a3
commit 6def88ea10
3 files changed
+6 -2

No files matched your search

+2
View File
@@ -2360,5 +2360,7 @@
"An import is running": "読み込み中です",
"An import is running. Drop photos when it has finished": "読み込み中です。完了してから写真をドロップしてください",
"Finish Lightroom catalog import before adding photos": "写真を追加する前に Lightroom カタログの読み込みを完了してください",
"Loupe Overlay": "ルーペのオーバーレイ",
"View Options…": "表示オプション…",
"View → Loupe Overlay → View Options chooses the lines Info 1 and Info 2 show.": "表示 → ルーペのオーバーレイ → 表示オプション で、情報1と情報2に表示する行を選びます。"
}
@@ -880,6 +880,8 @@ fn mask_overlay_menu_lists_modes_and_colors_with_the_current_one_checked() {
assert_eq!(colors, crate::panels::masking::OVERLAY_COLORS.len());
for id in ["view.maskOverlayMode", "view.maskOverlayColor"] {
assert!(kids.iter().any(|n| matches!(n, MenuNode::Item { id: i, params, .. } if i == id && params.is_null())), "the cycle item {id} stays");
let catalog_path = super::super::ui_commands::UI_COMMANDS.iter().find(|c| c.0 == id).map(|c| c.3);
assert_eq!(catalog_path, Some("View>Mask Overlay"), "the command catalog (ui.menu.list) places {id} where the menu does");
}
run_item(&mut a, "view.maskOverlayMode", json!({"mode": MaskView::WhiteOnBlack.name()})).unwrap();
run_item(&mut a, "view.maskOverlayColor", json!({"color": "#28c846"})).unwrap();
+2 -2
View File
@@ -109,8 +109,8 @@ pub const UI_COMMANDS: &[UiCommand] = &[
// Ctrl+Shift+O / Cmd+Shift+O: every mask's region at once, not just the selected one
("view.maskOverlayAll", "All Mask Overlays", Some("Cmd+Shift+O"), "View>Mask Overlay"),
// Shift+O in the Masking panel (elsewhere it cycles the crop overlay)
("view.maskOverlayMode", "Cycle Mask Overlay Mode", None, "View"),
("view.maskOverlayColor", "Cycle Mask Overlay Color", None, "View"),
("view.maskOverlayMode", "Cycle Mask Overlay Mode", None, "View>Mask Overlay"),
("view.maskOverlayColor", "Cycle Mask Overlay Color", None, "View>Mask Overlay"),
("view.maskPins", "Mask Pins", None, "View>Mask Overlay"),
// {mode?: auto | always | selected | never}: when spot and mask pins show (steps to the next
// mode when omitted; Shift+H, like Classic's H for pins, since H opens Remove). View ▸ Tool