About [[Blockly:Code.discard/en]]
Jump to navigation
Jump to search
Please summarize the below thread in the editing box. You may use any wikitext in your summary. When you finish, click "Publish changes".
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
Templates used on this page:
PLURAL support needed.
- Code.discard ("Delete all %1 blocks?")
It should first be confirmed that %1 refers to the number of blocks to be deleted (and not to some other adjective such as a colour or other category) and this should be documented.
Thanks. %1 is the number of blocks to be deleted, and seems to be 2 or more...
var count = Blockly.mainWorkspace.getAllBlocks().length; if (count < 2 || window.confirm(BlocklyApps.getMsg('discard').replace('%1', count))) {