I think it would be useful to have a token that displays "s" when there is more than one result for a view, allowing one to have e.g. "Found 1 node" vs. "Found 3 nodes" in the header. Patch forthcoming.

Comments

acrollet’s picture

Status: Active » Needs review
StatusFileSize
new1.44 KB

Status: Needs review » Needs work

The last submitted patch, views-result_summary_plural_token-1723012-1.patch, failed testing.

acrollet’s picture

Status: Needs work » Needs review
StatusFileSize
new1.61 KB

re-generated patch against 7.x-3.x-dev.

ygerasimov’s picture

Status: Needs review » Needs work

I believe for such cases you really need to use format_plural() function instead of adding 's'. The problem comes when the language is not English.

Even in English you have exceptions like "1 mouse" but "10 mice".

acrollet’s picture

Status: Needs work » Closed (duplicate)