mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
Update text for marked spot and 'more options' labels.
This commit is contained in:
@@ -49,7 +49,7 @@ blocklyApp.AppView = ng.core
|
||||
<label aria-hidden="true" hidden id="blockly-argument-text">{{'TEXT'|translate}}</label>
|
||||
<label aria-hidden="true" hidden id="blockly-block-menu">{{'BLOCK_ACTION_LIST'|translate}}</label>
|
||||
<label aria-hidden="true" hidden id="blockly-block-summary">{{'BLOCK_SUMMARY'|translate}}</label>
|
||||
<label aria-hidden="true" hidden id="blockly-other-actions">{{'OTHER_ACTIONS'|translate}}</label>
|
||||
<label aria-hidden="true" hidden id="blockly-more-options">{{'MORE_OPTIONS'|translate}}</label>
|
||||
<label aria-hidden="true" hidden id="blockly-submenu-indicator">{{'SUBMENU_INDICATOR'|translate}}</label>
|
||||
<label aria-hidden="true" hidden id="blockly-toolbox-block">{{'TOOLBOX_BLOCK'|translate}}</label>
|
||||
<label aria-hidden="true" hidden id="blockly-workspace-block">{{'WORKSPACE_BLOCK'|translate}}</label>
|
||||
|
||||
@@ -35,8 +35,8 @@ Blockly.Msg.CUT_BLOCK = 'cut block';
|
||||
Blockly.Msg.COPY_BLOCK = 'copy block';
|
||||
Blockly.Msg.PASTE_BELOW = 'paste below';
|
||||
Blockly.Msg.PASTE_ABOVE = 'paste above';
|
||||
Blockly.Msg.MARK_SPOT_BELOW = 'mark spot below';
|
||||
Blockly.Msg.MARK_SPOT_ABOVE = 'mark spot above';
|
||||
Blockly.Msg.MARK_SPOT_BEFORE = 'mark spot before';
|
||||
Blockly.Msg.MARK_SPOT_AFTER = 'mark spot after';
|
||||
Blockly.Msg.MOVE_TO_MARKED_SPOT = 'move to marked spot';
|
||||
Blockly.Msg.DELETE = 'delete';
|
||||
Blockly.Msg.MARK_THIS_SPOT = 'mark this spot';
|
||||
@@ -70,4 +70,4 @@ Blockly.Msg.BLOCK_MOVED_TO_MARKED_SPOT_MSB = 'Block moved to marked spot: ';
|
||||
Blockly.Msg.TOOLBOX_BLOCK = 'toolbox block';
|
||||
Blockly.Msg.WORKSPACE_BLOCK = 'workspace block';
|
||||
Blockly.Msg.SUBMENU_INDICATOR = 'move right to view submenu';
|
||||
Blockly.Msg.OTHER_ACTIONS = 'Other actions';
|
||||
Blockly.Msg.MORE_OPTIONS = 'More options';
|
||||
|
||||
@@ -69,9 +69,9 @@ blocklyApp.WorkspaceTreeComponent = ng.core
|
||||
</template>
|
||||
|
||||
<li [id]="idMap['listItem']" class="blocklyHasChildren" role="treeitem"
|
||||
[attr.aria-labelledBy]="generateAriaLabelledByAttr('blockly-other-actions', 'blockly-submenu-indicator')"
|
||||
[attr.aria-labelledBy]="generateAriaLabelledByAttr('blockly-more-options', 'blockly-submenu-indicator')"
|
||||
[attr.aria-level]="level + 1">
|
||||
<label [id]="idMap['label']">{{'OTHER_ACTIONS'|translate}}</label>
|
||||
<label [id]="idMap['label']">{{'MORE_OPTIONS'|translate}}</label>
|
||||
<ol role="group">
|
||||
<li *ngFor="#buttonInfo of actionButtonsInfo"
|
||||
[id]="idMap[buttonInfo.baseIdKey]" role="treeitem"
|
||||
@@ -289,14 +289,14 @@ blocklyApp.WorkspaceTreeComponent = ng.core
|
||||
}
|
||||
}, {
|
||||
baseIdKey: 'markBelow',
|
||||
translationIdForText: 'MARK_SPOT_BELOW',
|
||||
translationIdForText: 'MARK_SPOT_BEFORE',
|
||||
action: that.markSpotBelow_.bind(that),
|
||||
isDisabled: function() {
|
||||
return !that.block.nextConnection;
|
||||
}
|
||||
}, {
|
||||
baseIdKey: 'markAbove',
|
||||
translationIdForText: 'MARK_SPOT_ABOVE',
|
||||
translationIdForText: 'MARK_SPOT_AFTER',
|
||||
action: that.markSpotAbove_.bind(that),
|
||||
isDisabled: function() {
|
||||
return !that.block.previousConnection;
|
||||
|
||||
Reference in New Issue
Block a user