Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search: fix result counter #322

Merged
merged 1 commit into from
Dec 16, 2020
Merged

Conversation

zannkukai
Copy link
Contributor

When a search result only 1 result, the result counter used always a
plural string. This commit fixes this behavior and get a singular '1
result' string a search return only 1 result.

Closes #321

Co-Authored-by: Renaud Michotte renaud.michotte@gmail.com

Code review check list

  • Commit message template compliance.
  • Commit message without typos.
  • File names.
  • Functions names.
  • Functions docstrings.
  • Unnecessary commited files?
  • Extracted translations?

@zannkukai zannkukai self-assigned this Dec 10, 2020
@zannkukai zannkukai added this to the v1.0.0 milestone Dec 10, 2020
Copy link

@iGormilhit iGormilhit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit message proposition:

search: fix result counter

Adapts the text displaying the number of result when there's no result,
only one result or many results.

Closes rero/ng-core#321.

Adapts the text displaying the number of result when there's no result,
only one result or many results.

Closes rero#321.

Co-Authored-by: Renaud Michotte <renaud.michotte@gmail.com>
@sebdeleze sebdeleze merged commit 842d88a into rero:dev Dec 16, 2020
@zannkukai zannkukai deleted the zan-fix-issue-321 branch January 21, 2021 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

result counter use plural even if search return only 1 result
4 participants