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:

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 Summary:Support/About Blockly:Code.discard/en.

PLURAL support needed.

Shirayuki (talk)14:26, 8 August 2013

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.

McDutchie (talk)14:58, 14 August 2013

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