pub type HintRow = (&'static str, &'static str);
#[derive(Debug, Clone, Copy)]
pub struct Strings {
pub hud_hint_rows: &'static [HintRow],
pub hud_edit_rows: &'static [HintRow],
pub hud_saved_prefix: &'static str,
pub hud_save_failed_prefix: &'static str,
pub hud_quit_unsaved: &'static str,
pub hud_release_blocked_prefix: &'static str,
pub hud_release_blocked_suffix: &'static str,
pub hud_released: &'static str,
pub hud_release_busy: &'static str,
pub hud_snap_on: &'static str,
pub hud_snap_off: &'static str,
pub hud_snap_row_key: &'static str,
pub hud_snap_row_on: &'static str,
pub hud_snap_row_off: &'static str,
}
pub const EN: Strings = Strings {
hud_hint_rows: &[
("drag", "draw / move / resize"),
("Shift", "lock ratio / 15 turns"),
("Q E", "rotate"),
("W", "tool"),
("A", "label"),
("S", "save"),
("D", "delete"),
("Z", "undo / Shift redo"),
("C", "cycle overlap"),
("Alt+drag", "duplicate"),
("arrows", "nudge (Shift 10, Alt size)"),
("M", "hold: loupe"),
("N", "name session"),
("X", "edge snap"),
("R", "release monitor"),
("3-9", "polygon sides"),
("Space", "hold: move panel"),
("H", "hide panel"),
("Esc", "quit"),
],
hud_edit_rows: &[("type", "text"), ("Enter", "commit"), ("Esc", "cancel")],
hud_saved_prefix: "Saved ",
hud_save_failed_prefix: "Save failed: ",
hud_quit_unsaved: "Unsaved work - S saves, Esc again quits",
hud_release_blocked_prefix: "Monitor holds ",
hud_release_blocked_suffix: " selections - delete them first",
hud_released: "Monitor released",
hud_release_busy: "Finish the drag first - then R releases the monitor",
hud_snap_on: "SNAP ON",
hud_snap_off: "SNAP OFF",
hud_snap_row_key: "X",
hud_snap_row_on: "edge snap: on",
hud_snap_row_off: "edge snap: off",
};