Update text for marked spot and 'more options' labels.

This commit is contained in:
Sean Lip
2016-08-15 14:05:06 -07:00
parent 6885a88a82
commit d0083f802e
3 changed files with 8 additions and 8 deletions

View File

@@ -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>

View File

@@ -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';

View File

@@ -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;