Skip to content

The string "results" should be singular for a single result #716

Open

Description

@muffinresearch

As pointed out by @eviljeff in #714 (comment)

The string "results" will be incorrect if there's only one result.

Activity

  1. SaravgiYash commented on Oct 13, 2020

    @SaravgiYash
    Contributor

    Hi @muffinresearch I would like to work on this issue. Can you please guide me on what all changes do I need to make?

  2. muffinresearch commented on Oct 14, 2020

    @muffinresearch
    ContributorAuthor

    First would be to change "results" to "result" if the taglist.length is 1 and use "results" if it's greater than 1

    <h2 class="no-underline">{{ taglist.length }} results for tag “{{ tag }}”</h2>

    Second would be to update this part of the code:

    num + ' ' + $container.data('message') + ' "' + query + '"';

    So that this works in a similar way based on the result length.

    The "results for" comes from here:

    <div id="result-list" data-message="results for"></div>

  3. SaravgiYash commented on Oct 14, 2020

    @SaravgiYash
    Contributor

    @muffinresearch I have made some changes but in order to check them when I try to run yarn start I getting some error

    error

  4. added
    bug
    on Jun 3, 2023
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

    bug

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions