mirror of
https://github.com/google/blockly.git
synced 2026-01-09 01:50:11 +01:00
Change tooltip on text/list indexOf blocks to be 0/1 index aware. All languages.
Delete ta:TEXT_INDEXOF_TOOLTIP since that text does not appear to make sense.
This commit is contained in:
@@ -300,7 +300,9 @@ Blockly.Blocks['lists_indexOf'] = {
|
||||
this.appendValueInput('FIND')
|
||||
.appendField(new Blockly.FieldDropdown(OPERATORS), 'END');
|
||||
this.setInputsInline(true);
|
||||
this.setTooltip(Blockly.Msg.LISTS_INDEX_OF_TOOLTIP);
|
||||
var tooltip = Blockly.Msg.LISTS_INDEX_OF_TOOLTIP
|
||||
.replace('%1', Blockly.Blocks.ONE_BASED_INDEXING ? '0' : '-1');
|
||||
this.setTooltip(tooltip);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -322,7 +322,9 @@ Blockly.Blocks['text_indexOf'] = {
|
||||
this.appendDummyInput().appendField(Blockly.Msg.TEXT_INDEXOF_TAIL);
|
||||
}
|
||||
this.setInputsInline(true);
|
||||
this.setTooltip(Blockly.Msg.TEXT_INDEXOF_TOOLTIP);
|
||||
var tooltip = Blockly.Msg.TEXT_INDEXOF_TOOLTIP
|
||||
.replace('%1', Blockly.Blocks.ONE_BASED_INDEXING ? '0' : '-1');
|
||||
this.setTooltip(tooltip);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user