Skip to content

Commit 28d6ff7

Browse files
authored
chore: Update messages for keyboard-experiment. (#9152)
* chore: Remove unused messages. * fix: Remove unneeded message placeholders. * feat: Add additional messages used in the keyboard experiment. * chore: Update messages.
1 parent 253ea15 commit 28d6ff7

3 files changed

Lines changed: 34 additions & 96 deletions

File tree

msg/json/en.json

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"@metadata": {
33
"author": "Ellen Spertus <ellen.spertus@gmail.com>",
4-
"lastupdated": "2025-04-21 10:42:10.549634",
4+
"lastupdated": "2025-06-17 15:36:41.845826",
55
"locale": "en",
66
"messagedocumentation" : "qqq"
77
},
@@ -398,22 +398,8 @@
398398
"COLLAPSED_WARNINGS_WARNING": "Collapsed blocks contain warnings.",
399399
"DIALOG_OK": "OK",
400400
"DIALOG_CANCEL": "Cancel",
401-
"DELETE_SHORTCUT": "Delete block (%1)",
402-
"DELETE_KEY": "Del",
403-
"EDIT_BLOCK_CONTENTS": "Edit Block contents (%1)",
404-
"INSERT_BLOCK": "Insert Block (%1)",
405-
"START_MOVE": "Start move",
406-
"FINISH_MOVE": "Finish move",
407-
"ABORT_MOVE": "Abort move",
408-
"MOVE_LEFT_CONSTRAINED": "Move left, constrained",
409-
"MOVE_RIGHT_CONSTRAINED": "Move right constrained",
410-
"MOVE_UP_CONSTRAINED": "Move up, constrained",
411-
"MOVE_DOWN_CONSTRAINED": "Move down constrained",
412-
"MOVE_LEFT_UNCONSTRAINED": "Move left, unconstrained",
413-
"MOVE_RIGHT_UNCONSTRAINED": "Move right, unconstrained",
414-
"MOVE_UP_UNCONSTRAINED": "Move up unconstrained",
415-
"MOVE_DOWN_UNCONSTRAINED": "Move down, unconstrained",
416-
"MOVE_BLOCK": "Move Block (%1)",
401+
"EDIT_BLOCK_CONTENTS": "Edit Block contents",
402+
"MOVE_BLOCK": "Move Block",
417403
"WINDOWS": "Windows",
418404
"MAC_OS": "macOS",
419405
"CHROME_OS": "ChromeOS",
@@ -423,11 +409,15 @@
423409
"COMMAND_KEY": "⌘ Command",
424410
"OPTION_KEY": "⌥ Option",
425411
"ALT_KEY": "Alt",
426-
"CUT_SHORTCUT": "Cut (%1)",
427-
"COPY_SHORTCUT": "Copy (%1)",
428-
"PASTE_SHORTCUT": "Paste (%1)",
412+
"CUT_SHORTCUT": "Cut",
413+
"COPY_SHORTCUT": "Copy",
414+
"PASTE_SHORTCUT": "Paste",
429415
"HELP_PROMPT": "Press %1 for help on keyboard controls",
430416
"SHORTCUTS_GENERAL": "General",
431417
"SHORTCUTS_EDITING": "Editing",
432-
"SHORTCUTS_CODE_NAVIGATION": "Code navigation"
418+
"SHORTCUTS_CODE_NAVIGATION": "Code navigation",
419+
"KEYBOARD_NAV_UNCONSTRAINED_MOVE_HINT": "Hold %1 and use arrow keys to move freely, then %2 to accept the position",
420+
"KEYBOARD_NAV_CONSTRAINED_MOVE_HINT": "Use the arrow keys to move, then %1 to accept the position",
421+
"KEYBOARD_NAV_COPIED_HINT": "Copied. Press %1 to paste.",
422+
"KEYBOARD_NAV_CUT_HINT": "Cut. Press %1 to paste."
433423
}

msg/json/qqq.json

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -405,21 +405,7 @@
405405
"COLLAPSED_WARNINGS_WARNING": "warning - This appears if the user collapses a block, and blocks inside that block have warnings attached to them. It should inform the user that the block they collapsed contains blocks that have warnings.",
406406
"DIALOG_OK": "button label - Pressing this button closes help information.\n{{Identical|OK}}",
407407
"DIALOG_CANCEL": "button label - Pressing this button cancels a proposed action.\n{{Identical|Cancel}}",
408-
"DELETE_SHORTCUT": "menu label - Contextual menu item that deletes the focused block.",
409-
"DELETE_KEY": "menu label - Keyboard shortcut for the Delete key, shown at the end of a menu item that deletes the focused block.",
410408
"EDIT_BLOCK_CONTENTS": "menu label - Contextual menu item that moves the keyboard navigation cursor into a subitem of the focused block.",
411-
"INSERT_BLOCK": "menu label - Contextual menu item that prompts the user to choose a block to insert into the program at the focused location.",
412-
"START_MOVE": "keyboard shortcut label - Contextual menu item that starts a keyboard-driven move of the focused block.",
413-
"FINISH_MOVE": "keyboard shortcut label - Contextual menu item that ends a keyboard-driven move of the focused block.",
414-
"ABORT_MOVE": "keyboard shortcut label - Contextual menu item that ends a keyboard-drive move of the focused block by returning it to its original location.",
415-
"MOVE_LEFT_CONSTRAINED": "keyboard shortcut label - Description of shortcut that moves a block to the next valid location to the left.",
416-
"MOVE_RIGHT_CONSTRAINED": "keyboard shortcut label - Description of shortcut that moves a block to the next valid location to the right.",
417-
"MOVE_UP_CONSTRAINED": "keyboard shortcut label - Description of shortcut that moves a block to the next valid location above it.",
418-
"MOVE_DOWN_CONSTRAINED": "keyboard shortcut label - Description of shortcut that moves a block to the next valid location below it.",
419-
"MOVE_LEFT_UNCONSTRAINED": "keyboard shortcut label - Description of shortcut that moves a block freely to the left.",
420-
"MOVE_RIGHT_UNCONSTRAINED": "keyboard shortcut label - Description of shortcut that moves a block freely to the right.",
421-
"MOVE_UP_UNCONSTRAINED": "keyboard shortcut label - Description of shortcut that moves a block freely upwards.",
422-
"MOVE_DOWN_UNCONSTRAINED": "keyboard shortcut label - Description of shortcut that moves a block freely downwards.",
423409
"MOVE_BLOCK": "menu label - Contextual menu item that starts a keyboard-driven block move.",
424410
"WINDOWS": "Name of the Microsoft Windows operating system displayed in a list of keyboard shortcuts.",
425411
"MAC_OS": "Name of the Apple macOS operating system displayed in a list of keyboard shortcuts,",
@@ -436,5 +422,9 @@
436422
"HELP_PROMPT": "Alert message shown to prompt users to review available keyboard shortcuts.",
437423
"SHORTCUTS_GENERAL": "shortcut list section header - Label for general purpose keyboard shortcuts.",
438424
"SHORTCUTS_EDITING": "shortcut list section header - Label for keyboard shortcuts related to editing a workspace.",
439-
"SHORTCUTS_CODE_NAVIGATION": "shortcut list section header - Label for keyboard shortcuts related to moving around the workspace."
425+
"SHORTCUTS_CODE_NAVIGATION": "shortcut list section header - Label for keyboard shortcuts related to moving around the workspace.",
426+
"KEYBOARD_NAV_UNCONSTRAINED_MOVE_HINT": "Message shown to inform users how to move blocks to arbitrary locations with the keyboard.",
427+
"KEYBOARD_NAV_CONSTRAINED_MOVE_HINT": "Message shown to inform users how to move blocks with the keyboard.",
428+
"KEYBOARD_NAV_COPIED_HINT": "Message shown when an item is copied in keyboard navigation mode.",
429+
"KEYBOARD_NAV_CUT_HINT": "Message shown when an item is cut in keyboard navigation mode."
440430
}

msg/messages.js

Lines changed: 18 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1618,68 +1618,13 @@ Blockly.Msg.DIALOG_OK = 'OK';
16181618
/// button label - Pressing this button cancels a proposed action.\n{{Identical|Cancel}}
16191619
Blockly.Msg.DIALOG_CANCEL = 'Cancel';
16201620

1621-
/** @type {string} */
1622-
/// menu label - Contextual menu item that deletes the focused block.
1623-
Blockly.Msg.DELETE_SHORTCUT = 'Delete block (%1)';
1624-
/** @type {string} */
1625-
/// menu label - Keyboard shortcut for the Delete key, shown at the end of a
1626-
/// menu item that deletes the focused block.
1627-
Blockly.Msg.DELETE_KEY = 'Del';
16281621
/** @type {string} */
16291622
/// menu label - Contextual menu item that moves the keyboard navigation cursor
16301623
/// into a subitem of the focused block.
1631-
Blockly.Msg.EDIT_BLOCK_CONTENTS = 'Edit Block contents (%1)';
1632-
/** @type {string} */
1633-
/// menu label - Contextual menu item that prompts the user to choose a block to
1634-
/// insert into the program at the focused location.
1635-
Blockly.Msg.INSERT_BLOCK = 'Insert Block (%1)';
1636-
/** @type {string} */
1637-
/// keyboard shortcut label - Contextual menu item that starts a keyboard-driven
1638-
/// move of the focused block.
1639-
Blockly.Msg.START_MOVE = 'Start move';
1640-
/** @type {string} */
1641-
/// keyboard shortcut label - Contextual menu item that ends a keyboard-driven
1642-
/// move of the focused block.
1643-
Blockly.Msg.FINISH_MOVE = 'Finish move';
1644-
/** @type {string} */
1645-
/// keyboard shortcut label - Contextual menu item that ends a keyboard-drive
1646-
/// move of the focused block by returning it to its original location.
1647-
Blockly.Msg.ABORT_MOVE = 'Abort move';
1648-
/** @type {string} */
1649-
/// keyboard shortcut label - Description of shortcut that moves a block to the
1650-
/// next valid location to the left.
1651-
Blockly.Msg.MOVE_LEFT_CONSTRAINED = 'Move left, constrained';
1652-
/** @type {string} */
1653-
/// keyboard shortcut label - Description of shortcut that moves a block to the
1654-
/// next valid location to the right.
1655-
Blockly.Msg.MOVE_RIGHT_CONSTRAINED = 'Move right constrained';
1656-
/** @type {string} */
1657-
/// keyboard shortcut label - Description of shortcut that moves a block to the
1658-
/// next valid location above it.
1659-
Blockly.Msg.MOVE_UP_CONSTRAINED = 'Move up, constrained';
1660-
/** @type {string} */
1661-
/// keyboard shortcut label - Description of shortcut that moves a block to the
1662-
/// next valid location below it.
1663-
Blockly.Msg.MOVE_DOWN_CONSTRAINED = 'Move down constrained';
1664-
/** @type {string} */
1665-
/// keyboard shortcut label - Description of shortcut that moves a block freely
1666-
/// to the left.
1667-
Blockly.Msg.MOVE_LEFT_UNCONSTRAINED = 'Move left, unconstrained';
1668-
/** @type {string} */
1669-
/// keyboard shortcut label - Description of shortcut that moves a block freely
1670-
/// to the right.
1671-
Blockly.Msg.MOVE_RIGHT_UNCONSTRAINED = 'Move right, unconstrained';
1672-
/** @type {string} */
1673-
/// keyboard shortcut label - Description of shortcut that moves a block freely
1674-
/// upwards.
1675-
Blockly.Msg.MOVE_UP_UNCONSTRAINED = 'Move up unconstrained';
1676-
/** @type {string} */
1677-
/// keyboard shortcut label - Description of shortcut that moves a block freely
1678-
/// downwards.
1679-
Blockly.Msg.MOVE_DOWN_UNCONSTRAINED = 'Move down, unconstrained';
1624+
Blockly.Msg.EDIT_BLOCK_CONTENTS = 'Edit Block contents';
16801625
/** @type {string} */
16811626
/// menu label - Contextual menu item that starts a keyboard-driven block move.
1682-
Blockly.Msg.MOVE_BLOCK = 'Move Block (%1)';
1627+
Blockly.Msg.MOVE_BLOCK = 'Move Block';
16831628
/** @type {string} */
16841629
/// Name of the Microsoft Windows operating system displayed in a list of
16851630
/// keyboard shortcuts.
@@ -1714,13 +1659,13 @@ Blockly.Msg.OPTION_KEY = '⌥ Option';
17141659
Blockly.Msg.ALT_KEY = 'Alt';
17151660
/** @type {string} */
17161661
/// menu label - Contextual menu item that cuts the focused item.
1717-
Blockly.Msg.CUT_SHORTCUT = 'Cut (%1)';
1662+
Blockly.Msg.CUT_SHORTCUT = 'Cut';
17181663
/** @type {string} */
17191664
/// menu label - Contextual menu item that copies the focused item.
1720-
Blockly.Msg.COPY_SHORTCUT = 'Copy (%1)';
1665+
Blockly.Msg.COPY_SHORTCUT = 'Copy';
17211666
/** @type {string} */
17221667
/// menu label - Contextual menu item that pastes the previously copied item.
1723-
Blockly.Msg.PASTE_SHORTCUT = 'Paste (%1)';
1668+
Blockly.Msg.PASTE_SHORTCUT = 'Paste';
17241669
/** @type {string} */
17251670
/// Alert message shown to prompt users to review available keyboard shortcuts.
17261671
Blockly.Msg.HELP_PROMPT = 'Press %1 for help on keyboard controls';
@@ -1735,3 +1680,16 @@ Blockly.Msg.SHORTCUTS_EDITING = 'Editing'
17351680
/// shortcut list section header - Label for keyboard shortcuts related to
17361681
/// moving around the workspace.
17371682
Blockly.Msg.SHORTCUTS_CODE_NAVIGATION = 'Code navigation';
1683+
/** @type {string} */
1684+
/// Message shown to inform users how to move blocks to arbitrary locations
1685+
/// with the keyboard.
1686+
Blockly.Msg.KEYBOARD_NAV_UNCONSTRAINED_MOVE_HINT = 'Hold %1 and use arrow keys to move freely, then %2 to accept the position';
1687+
/** @type {string} */
1688+
/// Message shown to inform users how to move blocks with the keyboard.
1689+
Blockly.Msg.KEYBOARD_NAV_CONSTRAINED_MOVE_HINT = 'Use the arrow keys to move, then %1 to accept the position';
1690+
/** @type {string} */
1691+
/// Message shown when an item is copied in keyboard navigation mode.
1692+
Blockly.Msg.KEYBOARD_NAV_COPIED_HINT = 'Copied. Press %1 to paste.';
1693+
/** @type {string} */
1694+
/// Message shown when an item is cut in keyboard navigation mode.
1695+
Blockly.Msg.KEYBOARD_NAV_CUT_HINT = 'Cut. Press %1 to paste.';

0 commit comments

Comments
 (0)