When no results found, the facet summary block says "1 result found". In the facet-summary-count twig template the count variable isn't taken in account.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | facets_summary-summary_1_result_when_0-3252806-3.patch | 566 bytes | cgoffin |
Issue fork facets-3252806
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
cgoffin commentedThis is a problem in for example the french language. There 0 is rendered as a single value and not a plural as in english. To fix this, I also used the count variable in the single value part of the translation.
Comment #4
bramdriesenComment #5
bramdriesenComment #6
bramdriesenUsing this patch for a while now in a few projects.
Comment #7
smustgrave commentedThis would be good to be committed for both 2.x and 3.x
Comment #8
rajeshreeputraCan we expect this to be added in 2.0.8 release soon?
Comment #11
borisson_Thanks!
Comment #13
bbu23FYI this affects translations, meaning the existing sets would have to be added again.