diff --git a/crates/ui-egui/locales/ja.json b/crates/ui-egui/locales/ja.json index 3078f95e23..558d8ab986 100644 --- a/crates/ui-egui/locales/ja.json +++ b/crates/ui-egui/locales/ja.json @@ -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に表示する行を選びます。" } diff --git a/crates/ui-egui/src/menus/menubar/tests.rs b/crates/ui-egui/src/menus/menubar/tests.rs index 8a99ae59dc..06c7043897 100644 --- a/crates/ui-egui/src/menus/menubar/tests.rs +++ b/crates/ui-egui/src/menus/menubar/tests.rs @@ -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(); diff --git a/crates/ui-egui/src/menus/ui_commands.rs b/crates/ui-egui/src/menus/ui_commands.rs index f79a4d2423..6c5ee9540c 100644 --- a/crates/ui-egui/src/menus/ui_commands.rs +++ b/crates/ui-egui/src/menus/ui_commands.rs @@ -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