About [[Blockly:Code.discard/en]]

Jump to navigation Jump to search

PLURAL support needed.

Shirayuki (talk)14:26, 8 August 2013

You do not have permission to edit this page, for the following reason:

The action you have requested is limited to users in the group: Users.


You can view and copy the source of this page.

Return to Thread:Support/About Blockly:Code.discard/en/reply.

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))) {
Shirayuki (talk)15:22, 14 August 2013

That it's 2 or more does not negate the need for PLURAL support. There are languages (the Slavic family comes to mind) with singular, dual and plural forms, where plural is 3 or more.

McDutchie (talk)15:59, 14 August 2013

This message is no longer supported, so close this?

Liuxinyu970226 (talk)09:17, 9 August 2015