Skip to content

"0 active installations" should say "Less than 10 active installations" #24842

Closed

Description

@dd32

Describe the bug
Currently the Block Installer only has a plural %s active installation(s) where as WordPress has 3 distinct states for plugins:

  • 0 = Fewer than 10
  • over 10 = %s active installation(s)
  • over 1 million = %d+ million active installation(s)

{ sprintf(
/* translators: %s: number of active installations. */
_n(
'%d active installation',
'%d active installations',
activeInstalls
),
activeInstalls
) }

Note: WordPress.org says "Fewer than" rather than "Less than".

To reproduce
Steps to reproduce the behavior:

  1. Search for a block that's brand new and installed nowhere (or on less than 10 sites).
  2. Admire "0 active installations"

Expected behavior
It should state something like "Less than 10 active installations"

Screenshots
searchResults
(Uh, the Emoji's work normally.. just don't work in the browser that screenshot came from..)

Editor version (please complete the following information):

  • WordPress version: 5.5
  • Does the website has Gutenberg plugin installed, or is it using the block editor that comes by default? default

Activity

  1. added
    [Feature] Block Directory
    on Aug 27, 2020
  2. added
    Good First Issue
    on Aug 28, 2020
  3. kartecianos commented on Sep 8, 2020

    @kartecianos

    Hi I would like to work on this issue, is it still open?

    I saw vcanales pull request but it seems to have a problem with values 1-9 because it seems that it should be printed 'Fewer than 10' instead of just the number of active installs.

  4. ryelle commented on Sep 22, 2020

    @ryelle
    Contributor

    This is fixed with #25084

    @kartecianos The API rounds to 10, so it should never return 1-9. Are you seeing any block plugins that return a value in 1-9?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First Issue[Feature] Block Directory

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions