fix: replace 'command' with 'statement' for block descriptions (#9912)

This commit is contained in:
Maribeth Moffatt
2026-05-20 16:31:38 -04:00
committed by GitHub
parent 6a6871ea54
commit b996259a0d
4 changed files with 9 additions and 10 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
{
"@metadata": {
"author": "Ellen Spertus <ellen.spertus@gmail.com>",
"lastupdated": "2026-05-15 12:51:08.370549",
"lastupdated": "2026-05-20 15:01:32.744856",
"locale": "en",
"messagedocumentation" : "qqq"
},
@@ -513,13 +513,13 @@
"BLOCK_LABEL_HAS_INPUT": "has input",
"BLOCK_LABEL_HAS_INPUTS": "has inputs",
"BLOCK_LABEL_HAS_BRANCHES": "has %1 branches",
"BLOCK_LABEL_STATEMENT": "command",
"BLOCK_LABEL_STATEMENT": "statement",
"BLOCK_LABEL_CONTAINER": "container",
"BLOCK_LABEL_VALUE": "value",
"BLOCK_LABEL_STACK_BLOCKS": "%1 stack blocks",
"INPUT_LABEL_INDEX": "input %1",
"INPUT_LABEL_VALUE": "value position",
"INPUT_LABEL_STATEMENT": "command position",
"INPUT_LABEL_STATEMENT": "statement position",
"INPUT_LABEL_END_STATEMENT": "End %1",
"INPUT_LABEL_EMPTY": "Empty",
"ANNOUNCE_MOVE_WORKSPACE": "Moving %1 on workspace.",
+2 -2
View File
@@ -497,7 +497,7 @@
"WORKSPACE_CONTENTS_COMMENTS_ONE": "ARIA live region phrase appended when there is exactly one workspace comment.",
"KEYBOARD_NAV_BLOCK_NAVIGATION_HINT": "Message shown when a user presses Enter with a navigable block focused.",
"KEYBOARD_NAV_WORKSPACE_NAVIGATION_HINT": "Message shown when a user presses Enter with the workspace focused.",
"KEYBOARD_NAV_FLYOUT_LABEL_HINT": "Message shown when a user presses Enter with a flyout label (heading) focused. Placeholder %1 is the keyboard shortcut for navigating to the next heading.",
"KEYBOARD_NAV_FLYOUT_LABEL_HINT": "Message shown when a user presses Enter with a flyout label (heading) focused.",
"BLOCK_LABEL_BEGIN_STACK": "Part of an accessibility label for a block that indicates it is the first block in the stack.",
"BLOCK_LABEL_BEGIN_PREFIX": "Part of an accessibility label for a block that indicates it is the first block inside of a statement input. Placeholder corresponds to the parent statement input's accessibility label.",
"BLOCK_LABEL_TOOLBOX_CATEGORY": "Part of an accessibility label for a block that indicates its parent toolbox category. Placeholder corresponds to a category name, e.g. 'Logic' or 'Math'.",
@@ -507,7 +507,7 @@
"BLOCK_LABEL_HAS_INPUT": "Part of an accessibility label for a block that indicates that it has a single input.",
"BLOCK_LABEL_HAS_INPUTS": "Part of an accessibility label for a block that indicates that it has more than one input.",
"BLOCK_LABEL_HAS_BRANCHES": "Part of an accessibility label for a block that indicates that it has more than one statement input, such as branches of an if-else block.",
"BLOCK_LABEL_STATEMENT": "Part of an accessibility label for a block that indicates that it is a statement block, i.e. that it has a next or previous connection. 'command' here is used in the sense of a computer command, or a command block in Scratch.",
"BLOCK_LABEL_STATEMENT": "Part of an accessibility label for a block that indicates that it is a statement block, i.e. that it has a next or previous connection. 'statement' here is used in the sense of a statement in a line of code.",
"BLOCK_LABEL_CONTAINER": "Part of an accessibility label for a block that indicates that it is a container block, i.e. that it has one or more statement inputs.",
"BLOCK_LABEL_VALUE": "Part of an accessibility label for a block that indicates that it is a value block, i.e. that it has an output connection.",
"BLOCK_LABEL_STACK_BLOCKS": "Accessibility label for a block that indicates it is a stack of two or more blocks.",
+3 -4
View File
@@ -2002,9 +2002,8 @@ Blockly.Msg.BLOCK_LABEL_HAS_BRANCHES = 'has %1 branches';
/** @type {string} */
/// Part of an accessibility label for a block that indicates that it is
/// a statement block, i.e. that it has a next or previous connection.
/// "command" here is used in the sense of a computer command, or a
/// command block in Scratch.
Blockly.Msg.BLOCK_LABEL_STATEMENT = 'command';
/// "statement" here is used in the sense of a statement in a line of code.
Blockly.Msg.BLOCK_LABEL_STATEMENT = 'statement';
/** @type {string} */
/// Part of an accessibility label for a block that indicates that it is
/// a container block, i.e. that it has one or more statement inputs.
@@ -2028,7 +2027,7 @@ Blockly.Msg.INPUT_LABEL_VALUE = 'value position';
/** @type {string} */
/// Accessibility label for an empty next connection that can hold a statement
/// block. This should use the same language as the BLOCK_LABEL_STATEMENT string.
Blockly.Msg.INPUT_LABEL_STATEMENT = 'command position';
Blockly.Msg.INPUT_LABEL_STATEMENT = 'statement position';
/** @type {string} */
/// Accessibility label describing the last connection point inside a statement
/// input. e.g. "End if, true, do" where the "if, true, do" is assembled from
+1 -1
View File
@@ -315,7 +315,7 @@ suite('ARIA', function () {
block.getFocusableElement(),
Blockly.utils.aria.State.ROLEDESCRIPTION,
);
assert.equal(roleDescription, 'command');
assert.equal(roleDescription, 'statement');
});
test('Value blocks have correct role description', function () {